@@ -10,7 +10,11 @@ import com.intellij.openapi.diagnostic.thisLogger
1010import com.intellij.openapi.project.Project
1111import com.intellij.openapi.vfs.VirtualFile
1212import com.intellij.platform.lsp.api.LspServerDescriptor
13- import com.intellij.platform.lsp.api.customization.LspDiagnosticsSupport
13+ import com.intellij.platform.lsp.api.customization.LspCompletionDisabled
14+ import com.intellij.platform.lsp.api.customization.LspCustomization
15+ import com.intellij.platform.lsp.api.customization.LspFormattingDisabled
16+ import com.intellij.platform.lsp.api.customization.LspGoToDefinitionDisabled
17+ import com.intellij.platform.lsp.api.customization.LspHoverDisabled
1418import org.eclipse.lsp4j.ClientCapabilities
1519import org.eclipse.lsp4j.ConfigurationItem
1620import org.eclipse.lsp4j.InitializeParams
@@ -80,15 +84,20 @@ class OxcLspServerDescriptor(
8084 }
8185 }
8286
83- override val lspGoToDefinitionSupport = false
87+ override val lspCustomization: LspCustomization
88+ get() {
89+ return object : LspCustomization () {
90+ override val goToDefinitionCustomizer = LspGoToDefinitionDisabled
8491
85- override val lspCompletionSupport = null
92+ override val completionCustomizer = LspCompletionDisabled
8693
87- override val lspFormattingSupport = null
94+ override val formattingCustomizer = LspFormattingDisabled
8895
89- override val lspHoverSupport = false
96+ override val hoverCustomizer = LspHoverDisabled
9097
91- override val lspDiagnosticsSupport: LspDiagnosticsSupport = OxcLspDiagnosticsSupport ()
98+ override val diagnosticsCustomizer = OxcLspDiagnosticsSupport ()
99+ }
100+ }
92101
93102 private fun createWorkspaceConfig (workspace : VirtualFile ): Map <String , Any ?> {
94103 val oxcPackage = OxcPackage (project)
0 commit comments