Skip to content

Commit 1423010

Browse files
committed
fix glint wsl
1 parent 79de2e5 commit 1423010

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,15 @@ class GlintLspServerDescriptor(private val myProject: Project) : LspServerDescri
219219

220220
override fun findLocalFileByPath(path: String): VirtualFile? {
221221
if (this.isWsl) {
222-
val uri = this.wslDistro + path
222+
val uri = this.wslDistro.replace("\\", "/") + path
223223
return super.findLocalFileByPath(uri)
224224
}
225225
return super.findLocalFileByPath(path)
226226
}
227227

228228
override fun findFileByUri(fileUri: String): VirtualFile? {
229229
if (this.isWsl) {
230-
val uri = fileUri.replace("file://", "file://${this.wslDistro}")
230+
val uri = fileUri.replace("file://", "file://${this.wslDistro.replace("\\", "/")}")
231231
return super.findFileByUri(uri)
232232
}
233233
return super.findFileByUri(fileUri)

0 commit comments

Comments
 (0)