We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23a556a commit 3cae1eaCopy full SHA for 3cae1ea
server/src/main/kotlin/org/javacs/kt/KotlinTextDocumentService.kt
@@ -174,7 +174,11 @@ class KotlinTextDocumentService(
174
lintNow(file)
175
}
176
177
- override fun didSave(params: DidSaveTextDocumentParams) {}
+ override fun didSave(params: DidSaveTextDocumentParams) {
178
+ // Lint after saving to prevent inconsistent diagnostics
179
+ val file = params.textDocument.filePath
180
+ lintNow(file)
181
+ }
182
183
override fun signatureHelp(position: TextDocumentPositionParams): CompletableFuture<SignatureHelp?> = async.compute {
184
reportTime {
0 commit comments