returnTPromise.timeout(50/* quick open is sensitive to being opened so soon after another */).then(()=>
this.quickOpenService.pick(picks,{placeHolder:nls.localize('selectTabWidth',"Select Tab Size for Current File"),autoFocus:{autoFocusIndex}}).then(pick=>{
this.quickOpenService.pick(picks,{placeHolder:nls.localize('selectIndentationSize',"Select Indentation Size for Current File"),autoFocus:{autoFocusIndex}}).then(pick=>{
if(pick){
this.editor.updateOptions({
tabSize:parseInt(pick.label)
tabSize:parseInt(pick.label),
insertSpaces:this.insertSpaces
});
}
...
...
@@ -86,6 +86,30 @@ export class ChangeIndentationSizeAction extends EditorAction {
@@ -105,5 +129,6 @@ export class ToggleRenderWhitespaceAction extends EditorAction {
// register actions
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(ChangeIndentationSizeAction,ChangeIndentationSizeAction.ID,nls.localize('changeIndentationSize',"Change Tab Size for Current File")));
CommonEditorRegistry.registerEditorAction(newEditorActionDescriptor(IndentUsingSpaces,IndentUsingSpaces.ID,nls.localize('indentUsingSpaces',"Indent Using Spaces")));
CommonEditorRegistry.registerEditorAction(newEditorActionDescriptor(IndentUsingTabs,IndentUsingTabs.ID,nls.localize('indentUsingTabs',"Indent Using Tabs")));