don't send diagnostics if intellisense is disabled (#133)

master
Brad Cornes 2020-06-23 20:55:35 +01:00
parent 6731af2688
commit 3f07842da3
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ documents.onDidClose((event) => {
documentSettings.delete(event.document.uri) documentSettings.delete(event.document.uri)
}) })
documents.onDidChangeContent((change) => { documents.onDidChangeContent((change) => {
if (!state.enabled) return
provideDiagnostics(state, change.document) provideDiagnostics(state, change.document)
}) })
documents.listen(connection) documents.listen(connection)