提交 72a3e94a 编写于 作者: I isidor

convert indentation actions should also update insertSpaces option

fixes #3298
上级 062480dd
......@@ -23,6 +23,9 @@ export class IndentationToSpacesAction extends EditorAction {
const command = new IndentationToSpacesCommand(this.editor.getSelection(), this.editor.getIndentationOptions().tabSize);
this.editor.executeCommands(this.id, [command]);
this.editor.updateOptions({
insertSpaces: true
});
return TPromise.as(true);
}
......@@ -39,6 +42,9 @@ export class IndentationToTabsAction extends EditorAction {
const command = new IndentationToTabsCommand(this.editor.getSelection(), this.editor.getIndentationOptions().tabSize);
this.editor.executeCommands(this.id, [command]);
this.editor.updateOptions({
insertSpaces: false
});
return TPromise.as(true);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册