Skip to content

Commit 17dbd73

Browse files
committed
diagnostic: Declare interFileDependencies = true
`lowering/unused-import` (and `lowering/unused-internal-global` in the future) both inspect references across the analysis unit, so editing one file can change the diagnostic set in another. Declaring `interFileDependencies = false` was incorrect and may cause clients to skip cross-file refreshes.
1 parent 577d885 commit 17dbd73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/diagnostic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1677,7 +1677,7 @@ const DIAGNOSTIC_REGISTRATION_METHOD = "textDocument/diagnostic"
16771677
function diagnostic_options()
16781678
return DiagnosticOptions(;
16791679
identifier = "JETLS/diagnostic",
1680-
interFileDependencies = false,
1680+
interFileDependencies = true,
16811681
workspaceDiagnostics = true)
16821682
end
16831683

0 commit comments

Comments
 (0)