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
1818import { AbstractVariableResolverService } from '../../services/configurationResolver/common/variableResolver.js' ;
1919import * as vscode from 'vscode' ;
2020import { ExtHostConfigProvider , IExtHostConfiguration } from './extHostConfiguration.js' ;
21- import { Schemas } from '../../../base/common/network.js' ;
2221
2322export interface IExtHostVariableResolverProvider {
2423 readonly _serviceBrand : undefined ;
@@ -84,11 +83,7 @@ class ExtHostVariableResolverService extends AbstractVariableResolverService {
8483 getFilePath : ( ) : string | undefined => {
8584 const activeUri = getActiveUri ( ) ;
8685 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 ) ;
9287 }
9388 return undefined ;
9489 } ,
@@ -98,11 +93,7 @@ class ExtHostVariableResolverService extends AbstractVariableResolverService {
9893 if ( activeUri ) {
9994 const ws = workspaceService . getWorkspaceFolder ( activeUri ) ;
10095 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 ) ;
10697 }
10798 }
10899 }
You can’t perform that action at this time.
0 commit comments