Skip to content

Commit afdff30

Browse files
Vivek SoniVivek Soni
authored andcommitted
fix: use decodeURIComponent in openFile
1 parent 9faf28a commit afdff30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/integrations/misc/open-file.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ interface OpenFileOptions {
1212

1313
export async function openFile(filePath: string, options: OpenFileOptions = {}) {
1414
try {
15+
filePath = decodeURIComponent(filePath)
1516
const workspaceRoot = getWorkspacePath()
1617
const homeDir = os.homedir()
1718
const originalFilePathForError = filePath // Keep original for error messages

0 commit comments

Comments
 (0)