Skip to content

Commit cf120c2

Browse files
committed
Remove dead code
1 parent 32c5dda commit cf120c2

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lsp-sample/server/src/server.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,6 @@ connection.languages.diagnostics.on(async (params) => {
153153
}
154154
});
155155

156-
// The content of a text document has changed. This event is emitted
157-
// when the text document first opened or when its content has changed.
158-
documents.onDidChangeContent(change => {
159-
validateTextDocument(change.document);
160-
});
161-
162156
async function validateTextDocument(textDocument: TextDocument): Promise<Diagnostic[]> {
163157
// In this simple example we get the settings for every validate run.
164158
const settings = await getDocumentSettings(textDocument.uri);

0 commit comments

Comments
 (0)