this.quickOpenService.pick(['1','2','3','4','5','6','7','8'],{placeHolder:nls.localize('selectTabWidth',"Select Tab Width for the Current File"),autoFocus:{autoFocusIndex}}).then(pick=>{
this.editor.updateOptions({
this.editor.updateOptions({
tabSize:parseInt(pick)
tabSize:parseInt(pick)
});
});
...
@@ -73,4 +74,4 @@ export class ChangeIndentationSizeAction extends EditorAction {
...
@@ -73,4 +74,4 @@ export class ChangeIndentationSizeAction extends EditorAction {
// register actions
// register actions
CommonEditorRegistry.registerEditorAction(newEditorActionDescriptor(IndentationToSpacesAction,IndentationToSpacesAction.ID,nls.localize('indentationToSpaces',"Convert Indentation to Spaces")));
CommonEditorRegistry.registerEditorAction(newEditorActionDescriptor(IndentationToSpacesAction,IndentationToSpacesAction.ID,nls.localize('indentationToSpaces',"Convert Indentation to Spaces")));
CommonEditorRegistry.registerEditorAction(newEditorActionDescriptor(IndentationToTabsAction,IndentationToTabsAction.ID,nls.localize('indentationToTabs',"Convert Indentation to Tabs")));
CommonEditorRegistry.registerEditorAction(newEditorActionDescriptor(IndentationToTabsAction,IndentationToTabsAction.ID,nls.localize('indentationToTabs',"Convert Indentation to Tabs")));
CommonEditorRegistry.registerEditorAction(newEditorActionDescriptor(ChangeIndentationSizeAction,ChangeIndentationSizeAction.ID,nls.localize('changeIndentationSize',"Change Indentation Size for Current File")));