Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Jan 21, 2020
1 parent 240069e commit 9ac38c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/utils/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 9ac38c6

Please sign in to comment.