Skip to content

Commit 3e5e171

Browse files
committed
fix glint when manually configured
1 parent 73c460f commit 3e5e171

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ class GlintLspServerDescriptor(private val myProject: Project) : LspServerDescri
139139

140140
fun getGlintVersion(): String? {
141141
val workingDir = lastDir!!
142-
val workDirectory = VfsUtilCore.virtualToIoFile(workingDir)
143142
var path = workingDir.findFileByRelativePath("node_modules/@glint/core/package.json") ?: return null
144143
return PackageJsonData.getOrCreate(path).version?.rawVersion
145144
}
@@ -152,7 +151,7 @@ class GlintLspServerDescriptor(private val myProject: Project) : LspServerDescri
152151
val pkg = config.getPackage()
153152
val pkgPath = pkg.`package`.constantPackage?.systemIndependentPath
154153
if (pkgPath != null && File(pkgPath).exists()) {
155-
path = File(pkgPath).parentFile.parentFile.path
154+
path = File(pkgPath).parentFile.parentFile.parentFile.path
156155
}
157156
path = path.replace("\\", "/")
158157
this.isWsl = false

0 commit comments

Comments
 (0)