Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions lsp-sample/server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Diagnostic[]> {
// In this simple example we get the settings for every validate run.
const settings = await getDocumentSettings(textDocument.uri);
Expand Down