Skip to content

Commit

Permalink
Always set working directory when starting LSP
Browse files Browse the repository at this point in the history
  • Loading branch information
rockofox committed Apr 24, 2024
1 parent 472253d commit 4f43109
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "boo.fox"
version = "1.2.0"
version = "1.2.1"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
}
16 changes: 10 additions & 6 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,24 @@
</description>

<change-notes><![CDATA[
<h3>1.0.0</h3>
<h3>1.2.1</h3>
<ul>
<li>Initial release</li>
</ul>
<h3>1.1.0</h3>
<ul>
<li>Added support for HUnit/HSpec test frameworks</li>
<li>Fixed a bug that prevented LSP from starting</li>
</ul>
<h3>1.2.0</h3>
<ul>
<li>Improved syntax highlighting</li>
<li>Support for tasty + tasty-ant-xml as a test framework</li>
<li>Menu item to create Haskell files</li>
</ul>
<h3>1.1.0</h3>
<ul>
<li>Added support for HUnit/HSpec test frameworks</li>
</ul>
<h3>1.0.0</h3>
<ul>
<li>Initial release</li>
</ul>
]]>
</change-notes>
<depends>com.intellij.modules.ultimate</depends>
Expand Down

0 comments on commit 4f43109

Please sign in to comment.