diff --git a/src/vs/editor/common/commonCodeEditor.ts b/src/vs/editor/common/commonCodeEditor.ts index a6fb1e06c96..f16c2ec47a8 100644 --- a/src/vs/editor/common/commonCodeEditor.ts +++ b/src/vs/editor/common/commonCodeEditor.ts @@ -213,10 +213,6 @@ export abstract class CommonCodeEditor extends EventEmitter implements IActionPr }; } - public setIndentationOptions(indentationOptions: editorCommon.IInternalIndentationOptions): void { - this._configuration.setIndentationOptions(indentationOptions); - } - public normalizeIndentation(str:string): string { return this._configuration.normalizeIndentation(str); } diff --git a/src/vs/editor/common/config/commonEditorConfig.ts b/src/vs/editor/common/config/commonEditorConfig.ts index add14f8dda2..9a483998f72 100644 --- a/src/vs/editor/common/config/commonEditorConfig.ts +++ b/src/vs/editor/common/config/commonEditorConfig.ts @@ -727,10 +727,6 @@ export abstract class CommonEditorConfiguration extends Disposable implements ed return this.editor.indentInfo; } - public setIndentationOptions(indentationOptions: editorCommon.IInternalIndentationOptions): void { - this.editor.indentInfo = indentationOptions; - } - private _normalizeIndentationFromWhitespace(str:string): string { let indentation = this.getIndentationOptions(), spacesCnt = 0, diff --git a/src/vs/editor/common/editorCommon.ts b/src/vs/editor/common/editorCommon.ts index e08c7afa542..63a0c58d5db 100644 --- a/src/vs/editor/common/editorCommon.ts +++ b/src/vs/editor/common/editorCommon.ts @@ -3078,11 +3078,6 @@ export interface ICommonCodeEditor extends IEditor { */ getIndentationOptions(): IInternalIndentationOptions; - /** - * Sets the indentation options of the editor. - */ - setIndentationOptions(IInternalIndentationOptions): void; - /** * Normalize whitespace using the editor's whitespace specific settings */ diff --git a/src/vs/editor/contrib/indentation/common/indentation.ts b/src/vs/editor/contrib/indentation/common/indentation.ts index c43d4d078a8..831932ed4a3 100644 --- a/src/vs/editor/contrib/indentation/common/indentation.ts +++ b/src/vs/editor/contrib/indentation/common/indentation.ts @@ -53,7 +53,7 @@ export abstract class Indent extends EditorAction { public run(): TPromise { return TPromise.timeout(50 /* quick open is sensitive to being opened so soon after another */).then(() => this.quickOpenService.pick(['1', '2', '3', '4', '5', '6', '7', '8'], { placeHolder: nls.localize('selectTabWidth', "Select Tab Width")}).then(pick => { - this.editor.setIndentationOptions({ + this.editor.updateOptions({ insertSpaces: this.insertSpaces, tabSize: parseInt(pick) });