diff --git a/src/main/kotlin/com/emberjs/glint/GlintLspSupportProvider.kt b/src/main/kotlin/com/emberjs/glint/GlintLspSupportProvider.kt index 91a44fab..e9595d56 100644 --- a/src/main/kotlin/com/emberjs/glint/GlintLspSupportProvider.kt +++ b/src/main/kotlin/com/emberjs/glint/GlintLspSupportProvider.kt @@ -94,6 +94,7 @@ class GlintLspServerDescriptor(private val myProject: Project) : LspServerDescri } val glintPkg = workingDir.findFileByRelativePath("node_modules/@glint/core") ?: return false glintPkg.findFileByRelativePath("bin/glint-language-server.js") ?: return false + glintCoreDir = glintPkg return true } @@ -106,7 +107,8 @@ class GlintLspServerDescriptor(private val myProject: Project) : LspServerDescri pkg.readOrDetect() val path = pkg.`package`.constantPackage?.systemIndependentPath if (path != null) { - val f = VfsUtil.findFile(Path(path), true) + var f = VfsUtil.findFile(Path(path), true) + f = f?.findFileByRelativePath("bin/glint-language-server.js") if (f != null) { return true