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.`); }); */