File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
EmmyLua-LS/src/main/kotlin/com/tang/vscode Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -1071,14 +1071,12 @@ class LuaTextDocumentService(private val workspace: LuaWorkspaceService) : TextD
10711071
10721072 override fun diagnostic (params : DocumentDiagnosticParams ): CompletableFuture <DocumentDiagnosticReport > {
10731073 val file = workspace.findFile(params.textDocument.uri)
1074- return computeAsync { checker ->
1075- if (file is ILuaFile ) {
1076- val report = workspace.diagnoseFile(file, params.previousResultId, checker)
1077- report
1078- } else {
1079- val report = DocumentDiagnosticReport (RelatedUnchangedDocumentDiagnosticReport ())
1080- report
1081- }
1074+ return if (file is ILuaFile ) {
1075+ val report = workspace.diagnoseFile(file, params.previousResultId, null )
1076+ CompletableFuture .completedFuture(report)
1077+ } else {
1078+ val report = DocumentDiagnosticReport (RelatedUnchangedDocumentDiagnosticReport ())
1079+ CompletableFuture .completedFuture(report)
10821080 }
10831081 }
10841082
You can’t perform that action at this time.
0 commit comments