indentation: remove setIndentationOptions

This commit is contained in:
isidor
2016-02-23 10:49:08 +01:00
parent 8e1db5e351
commit 8a6d73895e
4 changed files with 1 additions and 14 deletions

View File

@@ -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);
}

View File

@@ -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,

View File

@@ -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
*/

View File

@@ -53,7 +53,7 @@ export abstract class Indent extends EditorAction {
public run(): TPromise<boolean> {
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)
});