From 1d9e4169c78b7bbf02c2002f1b738a485909db91 Mon Sep 17 00:00:00 2001 From: Nicholas Albion Date: Tue, 13 Feb 2024 14:09:20 +1100 Subject: [PATCH] Fixed fileUtils.ts --- src/utils/fileUtils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/fileUtils.ts b/src/utils/fileUtils.ts index 588e066..4410d0d 100644 --- a/src/utils/fileUtils.ts +++ b/src/utils/fileUtils.ts @@ -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;