From 351c1a4b496f28c41aeb55052ac32fdfa77630c3 Mon Sep 17 00:00:00 2001 From: Takamasa Oshikiri Date: Wed, 2 Oct 2019 23:41:13 +0900 Subject: [PATCH] Fix invalid comments at lsp-sample --- lsp-sample/server/src/server.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lsp-sample/server/src/server.ts b/lsp-sample/server/src/server.ts index f2383ab6..f2033e5d 100644 --- a/lsp-sample/server/src/server.ts +++ b/lsp-sample/server/src/server.ts @@ -214,19 +214,19 @@ connection.onCompletionResolve( /* connection.onDidOpenTextDocument((params) => { // A text document got opened in VSCode. - // params.uri uniquely identifies the document. For documents store on disk this is a file URI. - // params.text the initial full content of the document. + // params.textDocument.uri uniquely identifies the document. For documents store on disk this is a file URI. + // params.textDocument.text the initial full content of the document. connection.console.log(`${params.textDocument.uri} opened.`); }); connection.onDidChangeTextDocument((params) => { // The content of a text document did change in VSCode. - // params.uri uniquely identifies the document. + // params.textDocument.uri uniquely identifies the document. // params.contentChanges describe the content changes to the document. connection.console.log(`${params.textDocument.uri} changed: ${JSON.stringify(params.contentChanges)}`); }); connection.onDidCloseTextDocument((params) => { // A text document got closed in VSCode. - // params.uri uniquely identifies the document. + // params.textDocument.uri uniquely identifies the document. connection.console.log(`${params.textDocument.uri} closed.`); }); */