Skip to content

Commit c83dd9a

Browse files
committed
Analyze and lint current file when changing config
1 parent f9ee30a commit c83dd9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/src/server.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ export default class BashServer {
177177
if (configChanged && initialized) {
178178
this.connection.console.log('Configuration changed')
179179
this.startBackgroundAnalysis()
180-
// TODO: we should trigger the linter again for the current file
180+
if (currentDocument) {
181+
this.uriToCodeActions[currentDocument.uri] = undefined
182+
this.analyzeAndLintDocument(currentDocument)
183+
}
181184
}
182185
})
183186

0 commit comments

Comments
 (0)