Skip to content

Commit

Permalink
Fixed fileUtils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nalbion authored Feb 13, 2024
1 parent b9d09aa commit 1d9e416
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/fileUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ export function getAbsolutePathInWorkspace(workspaceFolder: string, filePath: st
} else if (filePath.startsWith('/')) {
filePath = 'root' + filePath;
} else {
filePath = filePath.replace(/^[^:]+:/, 'root');
filePath = filePath.replace(/^[A-Za-z]:/, 'root');
}

let absolutePath = path.resolve(workspaceFolder, filePath);

return absolutePath;
Expand Down

0 comments on commit 1d9e416

Please sign in to comment.