Skip to content

Commit 1b42eac

Browse files
committed
fix glint res
1 parent c150132 commit 1b42eac

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/kotlin/com/emberjs/glint/GlintLspSupportProvider.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,7 @@ class GlintLspServerDescriptor(private val myProject: Project) : LspServerDescri
7777
return true
7878
}
7979
}
80-
val glintPkg = NodeModuleManager.getInstance(project).collectVisibleNodeModules(workingDir).find { it.name == "@glint/core" }?.virtualFile
81-
if (glintPkg == null) {
82-
return false
83-
}
80+
val glintPkg = workingDir.findFileByRelativePath("node_modules/@glint/core") ?: return false
8481
glintPkg.findFileByRelativePath("bin/glint-language-server.js") ?: return false
8582
lastDir = workingDir
8683
return true

0 commit comments

Comments
 (0)