From fe834f88b146a494e3775b871052249e0ba0c712 Mon Sep 17 00:00:00 2001 From: Patrick Pircher Date: Mon, 13 Oct 2025 10:33:15 +0200 Subject: [PATCH 1/2] fix detect glint --- src/main/kotlin/com/emberjs/glint/GlintLspSupportProvider.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/com/emberjs/glint/GlintLspSupportProvider.kt b/src/main/kotlin/com/emberjs/glint/GlintLspSupportProvider.kt index 91a44fab..0f5fb3e9 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 } From 7823d6fe4107ce2a29c93bbde0f9fc11bb8d4494 Mon Sep 17 00:00:00 2001 From: patrick Date: Mon, 13 Oct 2025 11:31:36 +0200 Subject: [PATCH 2/2] fix glint check --- src/main/kotlin/com/emberjs/glint/GlintLspSupportProvider.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/emberjs/glint/GlintLspSupportProvider.kt b/src/main/kotlin/com/emberjs/glint/GlintLspSupportProvider.kt index 0f5fb3e9..e9595d56 100644 --- a/src/main/kotlin/com/emberjs/glint/GlintLspSupportProvider.kt +++ b/src/main/kotlin/com/emberjs/glint/GlintLspSupportProvider.kt @@ -107,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