diff --git a/src/common/file.ts b/src/common/file.ts index 4fb308a4..6a2e8e8b 100644 --- a/src/common/file.ts +++ b/src/common/file.ts @@ -215,7 +215,7 @@ export async function checkUriType(Uri: string) { } if (uri.startsWith('file://')) { let filePath: string; - const pathname = decodeURIComponent(new URL(uri).pathname); + const pathname = decodeURIComponent(new URL(uri).pathname + new URL(uri).hash); if (process.platform === 'win32') { filePath = pathname.slice(1); } else {