提交 996d9041 编写于 作者: S Sandeep Somavarapu

Revert changes in preferences

上级 87aef92a
...@@ -561,9 +561,8 @@ export class FilteredMatchesRenderer extends Disposable implements HiddenAreasPr ...@@ -561,9 +561,8 @@ export class FilteredMatchesRenderer extends Disposable implements HiddenAreasPr
range, range,
options: { options: {
stickiness: editorCommon.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges, stickiness: editorCommon.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,
className: 'findMatch', className: 'findMatch'
}
},
}; };
} }
......
...@@ -119,7 +119,6 @@ export class PreferencesService extends Disposable implements IPreferencesServic ...@@ -119,7 +119,6 @@ export class PreferencesService extends Disposable implements IPreferencesServic
.then(preferencesEditorModel => preferencesEditorModel ? preferencesEditorModel.content : null); .then(preferencesEditorModel => preferencesEditorModel ? preferencesEditorModel.content : null);
} }
// vsode://DefaultSettings/1
createPreferencesEditorModel(uri: URI): TPromise<IPreferencesEditorModel<any>> { createPreferencesEditorModel(uri: URI): TPromise<IPreferencesEditorModel<any>> {
let promise = this.defaultPreferencesEditorModels.get(uri); let promise = this.defaultPreferencesEditorModels.get(uri);
if (promise) { if (promise) {
...@@ -251,7 +250,7 @@ export class PreferencesService extends Disposable implements IPreferencesServic ...@@ -251,7 +250,7 @@ export class PreferencesService extends Disposable implements IPreferencesServic
} }
private doOpenSettings(configurationTarget: ConfigurationTarget, resource: URI, options?: IEditorOptions, position?: EditorPosition): TPromise<IEditor> { private doOpenSettings(configurationTarget: ConfigurationTarget, resource: URI, options?: IEditorOptions, position?: EditorPosition): TPromise<IEditor> {
const openDefaultSettings = !!this.configurationService.lookup(DEFAULT_SETTINGS_EDITOR_SETTING).value; const openDefaultSettings = !!this.configurationService.getValue(DEFAULT_SETTINGS_EDITOR_SETTING);
return this.getOrCreateEditableSettingsEditorInput(configurationTarget, resource) return this.getOrCreateEditableSettingsEditorInput(configurationTarget, resource)
.then(editableSettingsEditorInput => { .then(editableSettingsEditorInput => {
if (!options) { if (!options) {
...@@ -261,7 +260,6 @@ export class PreferencesService extends Disposable implements IPreferencesServic ...@@ -261,7 +260,6 @@ export class PreferencesService extends Disposable implements IPreferencesServic
} }
if (openDefaultSettings) { if (openDefaultSettings) {
// get a new URI for default settings here
const defaultPreferencesEditorInput = this.instantiationService.createInstance(DefaultPreferencesEditorInput, this.getDefaultSettingsResource(configurationTarget)); const defaultPreferencesEditorInput = this.instantiationService.createInstance(DefaultPreferencesEditorInput, this.getDefaultSettingsResource(configurationTarget));
const preferencesEditorInput = new PreferencesEditorInput(this.getPreferencesEditorInputName(configurationTarget, resource), editableSettingsEditorInput.getDescription(), defaultPreferencesEditorInput, <EditorInput>editableSettingsEditorInput); const preferencesEditorInput = new PreferencesEditorInput(this.getPreferencesEditorInputName(configurationTarget, resource), editableSettingsEditorInput.getDescription(), defaultPreferencesEditorInput, <EditorInput>editableSettingsEditorInput);
this.lastOpenedSettingsInput = preferencesEditorInput; this.lastOpenedSettingsInput = preferencesEditorInput;
......
...@@ -244,9 +244,7 @@ export class SettingsEditorModel extends AbstractSettingsModel implements ISetti ...@@ -244,9 +244,7 @@ export class SettingsEditorModel extends AbstractSettingsModel implements ISetti
constructor(reference: IReference<ITextEditorModel>, private _configurationTarget: ConfigurationTarget, @ITextFileService protected textFileService: ITextFileService) { constructor(reference: IReference<ITextEditorModel>, private _configurationTarget: ConfigurationTarget, @ITextFileService protected textFileService: ITextFileService) {
super(); super();
this.settingsModel = reference.object.textEditorModel; this.settingsModel = reference.object.textEditorModel;
this._register(this.onDispose(() => { this._register(this.onDispose(() => reference.dispose()));
reference.dispose();
}));
this._register(this.settingsModel.onDidChangeContent(() => { this._register(this.settingsModel.onDidChangeContent(() => {
this._settingsGroups = null; this._settingsGroups = null;
})); }));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册