Revert "undo update change for now, #1396"

This reverts commit 83053afc22.
This commit is contained in:
Johannes Rieken
2016-09-19 11:17:59 +02:00
parent 909d49529a
commit 468ea77686
3 changed files with 50 additions and 39 deletions

View File

@@ -9,7 +9,7 @@ import {illegalState} from 'vs/base/common/errors';
import Event, {Emitter} from 'vs/base/common/event';
import {WorkspaceConfiguration} from 'vscode';
import {ExtHostConfigurationShape, MainThreadConfigurationShape} from './extHost.protocol';
// import {ConfigurationTarget} from 'vs/workbench/services/configuration/common/configurationEditing';
import {ConfigurationTarget} from 'vs/workbench/services/configuration/common/configurationEditing';
export class ExtHostConfiguration extends ExtHostConfigurationShape {
@@ -52,11 +52,11 @@ export class ExtHostConfiguration extends ExtHostConfigurationShape {
result = defaultValue;
}
return result;
// },
// update: (key: string, value: any, global: boolean) => {
// key = section ? `${section}.${key}` : key;
// const target = global ? ConfigurationTarget.USER : ConfigurationTarget.WORKSPACE;
// return this._proxy.$updateConfigurationOption(target, key, value);
},
update: (key: string, value: any, global: boolean) => {
key = section ? `${section}.${key}` : key;
const target = global ? ConfigurationTarget.USER : ConfigurationTarget.WORKSPACE;
return this._proxy.$updateConfigurationOption(target, key, value);
}
};