returnTPromise.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 for the Current File"),autoFocus:{autoFocusIndex}}).then(pick=>{
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=>{
if(pick){
this.editor.updateOptions({
tabSize:parseInt(pick.label)
});
}
returntrue;
})
);
});
}
}
// 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 Indentation Size for Current File")));
CommonEditorRegistry.registerEditorAction(newEditorActionDescriptor(ChangeIndentationSizeAction,ChangeIndentationSizeAction.ID,nls.localize('changeIndentationSize',"Change Tab Size for Current File")));