diff --git a/lsp-sample/server/src/server.ts b/lsp-sample/server/src/server.ts index ae3dd30980..8a7880bcef 100644 --- a/lsp-sample/server/src/server.ts +++ b/lsp-sample/server/src/server.ts @@ -153,12 +153,6 @@ connection.languages.diagnostics.on(async (params) => { } }); -// The content of a text document has changed. This event is emitted -// when the text document first opened or when its content has changed. -documents.onDidChangeContent(change => { - validateTextDocument(change.document); -}); - async function validateTextDocument(textDocument: TextDocument): Promise { // In this simple example we get the settings for every validate run. const settings = await getDocumentSettings(textDocument.uri);