From 655061e588c8a1bba4454568567df1f860ec1403 Mon Sep 17 00:00:00 2001 From: Chris Simon Date: Sat, 9 Mar 2024 17:57:58 +1100 Subject: [PATCH] Refactor command line setup --- .../contextive/ContextiveLspServerSupportProvider.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/intellij/contextive/src/main/kotlin/tech/contextive/contextive/ContextiveLspServerSupportProvider.kt b/src/intellij/contextive/src/main/kotlin/tech/contextive/contextive/ContextiveLspServerSupportProvider.kt index d422eac3..f17b8ee2 100644 --- a/src/intellij/contextive/src/main/kotlin/tech/contextive/contextive/ContextiveLspServerSupportProvider.kt +++ b/src/intellij/contextive/src/main/kotlin/tech/contextive/contextive/ContextiveLspServerSupportProvider.kt @@ -13,9 +13,5 @@ class ContextiveLspServerSupportProvider : LspServerSupportProvider { } private class ContextiveLspServerDescriptor(project: Project) : ProjectWideLspServerDescriptor(project, "Contextive") { override fun isSupportedFile(file: VirtualFile) = true - override fun createCommandLine(): GeneralCommandLine { - var cmd = GeneralCommandLine("Contextive.LanguageServer") - return cmd - } - + override fun createCommandLine(): GeneralCommandLine = GeneralCommandLine("Contextive.LanguageServer") } \ No newline at end of file