Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/vs/base/common/extpath.ts')
-rw-r--r--src/vs/base/common/extpath.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vs/base/common/extpath.ts b/src/vs/base/common/extpath.ts
index d938a8184f3..a0fe8ad76a8 100644
--- a/src/vs/base/common/extpath.ts
+++ b/src/vs/base/common/extpath.ts
@@ -317,9 +317,8 @@ export function isRootOrDriveLetter(path: string): boolean {
return pathNormalized === posix.sep;
}
-export function hasDriveLetter(path: string, continueAsWindows?: boolean): boolean {
- const isWindowsPath: boolean = ((continueAsWindows !== undefined) ? continueAsWindows : isWindows);
- if (isWindowsPath) {
+export function hasDriveLetter(path: string, isWindowsOS: boolean = isWindows): boolean {
+ if (isWindowsOS) {
return isWindowsDriveLetter(path.charCodeAt(0)) && path.charCodeAt(1) === CharCode.Colon;
}