File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
server/src/test/kotlin/org/javacs/kt Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ abstract class LanguageServerTestFixture(relativeWorkspaceRoot: String) : Langua
12
12
val workspaceRoot = absoluteWorkspaceRoot(relativeWorkspaceRoot)
13
13
val languageServer = createLanguageServer()
14
14
15
- val diagnostics = mutableListOf <Diagnostic >()
15
+ var diagnostics = listOf <Diagnostic >()
16
16
val errors: List <Diagnostic >
17
17
get() = diagnostics.filter { it.severity == DiagnosticSeverity .Error }
18
18
val warnings: List <Diagnostic >
@@ -151,8 +151,7 @@ abstract class LanguageServerTestFixture(relativeWorkspaceRoot: String) : Langua
151
151
// LanguageClient functions
152
152
153
153
override fun publishDiagnostics (diagnostics : PublishDiagnosticsParams ) {
154
- this .diagnostics.clear()
155
- this .diagnostics.addAll(diagnostics.diagnostics)
154
+ this .diagnostics = diagnostics.diagnostics
156
155
}
157
156
158
157
override fun showMessageRequest (request : ShowMessageRequestParams ? ): CompletableFuture <MessageActionItem >? {
You can’t perform that action at this time.
0 commit comments