Skip to content

Commit b9b6fa9

Browse files
committed
fix glint wsl
1 parent 3190635 commit b9b6fa9

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
@@ -75,7 +75,6 @@ class GlintLspServerDescriptor(private val myProject: Project) : LspServerDescri
7575

7676
fun isAvailableFromDir(file: VirtualFile): Boolean {
7777
val workingDir = file
78-
var isWsl = false
7978
if (workingDir.path.contains("wsl.localhost") || workingDir.path.contains("wsl\$")) {
8079
isWsl = true
8180
}
@@ -108,7 +107,7 @@ class GlintLspServerDescriptor(private val myProject: Project) : LspServerDescri
108107
if (path != null) {
109108
val f = VfsUtil.findFile(Path(path), true)
110109

111-
if (f != null) {
110+
if (f != null && f.exists()) {
112111
return true
113112
}
114113
}

0 commit comments

Comments
 (0)