Skip to content

Commit 2bbaace

Browse files
Fix reveal for file:// scheme (#56)
1 parent 383a895 commit 2bbaace

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/cold-worlds-hug.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"effect-vscode": patch
3+
---
4+
5+
Fix reveal file for file:// schemes

src/VsCode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,6 @@ export const revealFile = (
329329
selection?: vscode.Range
330330
) =>
331331
Effect.flatMap(
332-
thenable(() => vscode.workspace.openTextDocument(path)),
332+
thenable(() => vscode.workspace.openTextDocument(vscode.Uri.parse(path, false))),
333333
(doc) => thenable(() => vscode.window.showTextDocument(doc, { selection }))
334334
)

0 commit comments

Comments
 (0)