提交 00b7b2d8 编写于 作者: J Joao Moreno

fixes #39307

上级 9b0eee12
...@@ -277,8 +277,17 @@ class DirtyDiffWidget extends PeekViewWidget { ...@@ -277,8 +277,17 @@ class DirtyDiffWidget extends PeekViewWidget {
} }
protected _getActionBarOptions(): IActionBarOptions { protected _getActionBarOptions(): IActionBarOptions {
const actionRunner = new DiffActionRunner();
// close widget on successful action
actionRunner.onDidRun(e => {
if (!(e.action instanceof UIEditorAction) && !e.error) {
this.dispose();
}
});
return { return {
actionRunner: new DiffActionRunner(), actionRunner,
actionItemProvider: action => this.getActionItem(action), actionItemProvider: action => this.getActionItem(action),
orientation: ActionsOrientation.HORIZONTAL_REVERSE orientation: ActionsOrientation.HORIZONTAL_REVERSE
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册