From 4f431097d486b60377aba50e0e9775a4265893a5 Mon Sep 17 00:00:00 2001 From: rockofox Date: Wed, 24 Apr 2024 20:17:18 +0200 Subject: [PATCH] Always set working directory when starting LSP --- build.gradle.kts | 2 +- .../HaskellLspServerSupportProvider.kt | 2 +- src/main/resources/META-INF/plugin.xml | 16 ++++++++++------ 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 7101acf..34b3800 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,7 +6,7 @@ plugins { } group = "boo.fox" -version = "1.2.0" +version = "1.2.1" repositories { mavenCentral() diff --git a/src/main/kotlin/boo/fox/haskelllsp/HaskellLspServerSupportProvider.kt b/src/main/kotlin/boo/fox/haskelllsp/HaskellLspServerSupportProvider.kt index a54973f..6b5561e 100644 --- a/src/main/kotlin/boo/fox/haskelllsp/HaskellLspServerSupportProvider.kt +++ b/src/main/kotlin/boo/fox/haskelllsp/HaskellLspServerSupportProvider.kt @@ -19,5 +19,5 @@ internal class HaskellLspServerSupportProvider : LspServerSupportProvider { private class HaskellLspServerDescriptor(project: Project) : ProjectWideLspServerDescriptor(project, "Haskell") { override fun isSupportedFile(file: VirtualFile) = file.extension == "hs" - override fun createCommandLine() = GeneralCommandLine("haskell-language-server-wrapper", "--lsp") + override fun createCommandLine() = GeneralCommandLine("haskell-language-server-wrapper", "--lsp").also { it.withWorkDirectory(project.basePath) } } \ No newline at end of file diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index eaaa6f7..df72a50 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -13,13 +13,9 @@ 1.0.0 +

1.2.1

-

1.1.0

-

1.2.0

+

1.1.0

+ +

1.0.0

+ ]]>
com.intellij.modules.ultimate