Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/main/kotlin/com/emberjs/glint/GlintLspSupportProvider.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
Expand Down
Loading