@@ -15,7 +15,7 @@ import { Codicon } from 'vs/base/common/codicons';
15
15
import { debounce } from 'vs/base/common/decorators' ;
16
16
import { Emitter , Event } from 'vs/base/common/event' ;
17
17
import { KeyCode , KeyMod } from 'vs/base/common/keyCodes' ;
18
- import { splitName } from 'vs/base/common/labels' ;
18
+ import { normalizeDriveLetter , splitName } from 'vs/base/common/labels' ;
19
19
import { Disposable , DisposableStore } from 'vs/base/common/lifecycle' ;
20
20
import { parseLinkedText } from 'vs/base/common/linkedText' ;
21
21
import { Schemas } from 'vs/base/common/network' ;
@@ -55,7 +55,7 @@ import { StandardKeyboardEvent } from 'vs/base/browser/keyboardEvent';
55
55
import { IProductService } from 'vs/platform/product/common/productService' ;
56
56
import { registerIcon } from 'vs/platform/theme/common/iconRegistry' ;
57
57
import { defaultButtonStyles , defaultInputBoxStyles } from 'vs/platform/theme/browser/defaultStyles' ;
58
- import { isMacintosh , isWindows } from 'vs/base/common/platform' ;
58
+ import { isMacintosh } from 'vs/base/common/platform' ;
59
59
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding' ;
60
60
import { ResolvedKeybinding } from 'vs/base/common/keybindings' ;
61
61
@@ -576,11 +576,7 @@ class TrustedUriPathColumnRenderer implements ITableRenderer<ITrustedUriItem, IT
576
576
577
577
private formatPath ( uri : URI ) : string {
578
578
if ( uri . scheme === Schemas . file ) {
579
- if ( hasDriveLetter ( uri . fsPath , isWindows ) ) {
580
- return uri . fsPath . charAt ( 0 ) . toUpperCase ( ) + uri . fsPath . substring ( 1 ) ;
581
- }
582
-
583
- return uri . fsPath ;
579
+ return normalizeDriveLetter ( uri . fsPath ) ;
584
580
}
585
581
586
582
// If the path is not a file uri, but points to a windows remote, we should create windows fs path
@@ -589,7 +585,7 @@ class TrustedUriPathColumnRenderer implements ITableRenderer<ITrustedUriItem, IT
589
585
const pathWithoutLeadingSeparator = uri . path . substring ( 1 ) ;
590
586
const isWindowsPath = hasDriveLetter ( pathWithoutLeadingSeparator , true ) ;
591
587
if ( isWindowsPath ) {
592
- return win32 . normalize ( pathWithoutLeadingSeparator ) ;
588
+ return normalizeDriveLetter ( win32 . normalize ( pathWithoutLeadingSeparator ) , true ) ;
593
589
}
594
590
}
595
591
0 commit comments