remove getEnvironmentService from IVariableAccessor

This commit is contained in:
Andre Weinand
2018-04-20 13:17:59 +02:00
parent 4cce36adf5
commit cf44fd6498
3 changed files with 10 additions and 7 deletions

View File

@@ -547,8 +547,8 @@ export class ExtHostVariableResolverService implements IConfigurationResolverSer
getConfigurationValue: (folderUri: URI, section: string) => {
return configuration.getConfiguration(undefined, folderUri).get<string>(section);
},
getEnvironmentService: (name: string): string => {
return undefined;
getExecPath: (): string | undefined => {
return undefined; // does not exist in EH
},
getFilePath: (): string | undefined => {
const activeEditor = editors.activeEditor();
@@ -561,7 +561,6 @@ export class ExtHostVariableResolverService implements IConfigurationResolverSer
return undefined;
},
getSelectedText: (): string | undefined => {
debugger;
const activeEditor = editors.activeEditor();
if (activeEditor && !activeEditor.selection.isEmpty) {
return activeEditor.document.getText(activeEditor.selection);