File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
2626- Fixed equality comparison between enum items raising a type error
2727- Fixed autocompletion of properties with spaces not correctly being converted into a ` ["property"] ` index leading to a type error
2828- Fixed function stringification when using an expression index call such as ` data["property"]() `
29+ - Fixed workspace diagnostics not respecting ignore globs for dependent files
2930
3031## [ 1.4.0] - 2022-06-12
3132
Original file line number Diff line number Diff line change @@ -417,7 +417,8 @@ void LanguageServer::onDidChangeTextDocument(const lsp::DidChangeTextDocumentPar
417417 if (filePath)
418418 {
419419 auto uri = Uri::file (*filePath);
420- if (uri != params.textDocument .uri && !contains (diagnostics.relatedDocuments , uri.toString ()))
420+ if (uri != params.textDocument .uri && !contains (diagnostics.relatedDocuments , uri.toString ()) &&
421+ !workspace->isIgnoredFile (*filePath, config))
421422 {
422423 auto dependencyDiags = workspace->documentDiagnostics (lsp::DocumentDiagnosticParams{{uri}});
423424 diagnostics.relatedDocuments .emplace (uri.toString (),
You can’t perform that action at this time.
0 commit comments