File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
src/vs/workbench/api/common Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import { IConfigurationResolverService } from '../../services/configurationResol
18
18
import { AbstractVariableResolverService } from '../../services/configurationResolver/common/variableResolver.js' ;
19
19
import * as vscode from 'vscode' ;
20
20
import { ExtHostConfigProvider , IExtHostConfiguration } from './extHostConfiguration.js' ;
21
- import { Schemas } from '../../../base/common/network.js' ;
22
21
23
22
export interface IExtHostVariableResolverProvider {
24
23
readonly _serviceBrand : undefined ;
@@ -84,11 +83,7 @@ class ExtHostVariableResolverService extends AbstractVariableResolverService {
84
83
getFilePath : ( ) : string | undefined => {
85
84
const activeUri = getActiveUri ( ) ;
86
85
if ( activeUri ) {
87
- if ( activeUri . scheme === Schemas . file ) {
88
- return path . normalize ( activeUri . fsPath ) ;
89
- } else {
90
- return activeUri . toString ( ) ;
91
- }
86
+ return path . normalize ( activeUri . fsPath ) ;
92
87
}
93
88
return undefined ;
94
89
} ,
@@ -98,11 +93,7 @@ class ExtHostVariableResolverService extends AbstractVariableResolverService {
98
93
if ( activeUri ) {
99
94
const ws = workspaceService . getWorkspaceFolder ( activeUri ) ;
100
95
if ( ws ) {
101
- if ( activeUri . scheme === Schemas . file ) {
102
- return path . normalize ( ws . uri . fsPath ) ;
103
- } else {
104
- return ws . uri . toString ( ) ;
105
- }
96
+ return path . normalize ( ws . uri . fsPath ) ;
106
97
}
107
98
}
108
99
}
You can’t perform that action at this time.
0 commit comments