diff --git a/server/src/utils/paths.ts b/server/src/utils/paths.ts index 4c349efe47..0374f8d68c 100644 --- a/server/src/utils/paths.ts +++ b/server/src/utils/paths.ts @@ -50,7 +50,7 @@ export function getFileFsPath(documentUri: string): string { export function getFilePath(documentUri: string): string { const IS_WINDOWS = platform() === 'win32'; if (IS_WINDOWS) { - // Windows have a leading slash like /C:/Users/pine + // Windows have a leading slash like /C:/Users/pine // vscode-uri use lower-case drive letter // https://github.com/microsoft/vscode-uri/blob/95e03c06f87d38f25eda1ae3c343fe5b7eec3f52/src/index.ts#L1017 return Uri.parse(documentUri).path.replace(/^\/[a-zA-Z]/, (s: string) => s.slice(1).toLowerCase());