Fix extra primary button in comments (#236325)
Fixes https://github.com/microsoft/vscode-pull-request-github/issues/6553pull/236331/head
parent
b426e026e1
commit
f78af53350
|
@ -658,7 +658,7 @@ export class CommentNode<T extends IRange | ICellRange> extends Disposable {
|
|||
|
||||
this._register(menu);
|
||||
this._register(menu.onDidChange(() => {
|
||||
this._commentEditorActions?.setActions(menu);
|
||||
this._commentEditorActions?.setActions(menu, true);
|
||||
}));
|
||||
|
||||
this._commentEditorActions = new CommentFormActions(this.keybindingService, this._contextKeyService, this.contextMenuService, container, (action: IAction): void => {
|
||||
|
|
|
@ -300,7 +300,7 @@ export class CommentReply<T extends IRange | ICellRange> extends Disposable {
|
|||
const editorMenu = this._commentMenus.getCommentEditorActions(this._contextKeyService);
|
||||
this._register(editorMenu);
|
||||
this._register(editorMenu.onDidChange(() => {
|
||||
this._commentEditorActions.setActions(editorMenu);
|
||||
this._commentEditorActions.setActions(editorMenu, true);
|
||||
}));
|
||||
|
||||
this._commentEditorActions = new CommentFormActions(this.keybindingService, this._contextKeyService, this.contextMenuService, container, async (action: IAction) => {
|
||||
|
|
Loading…
Reference in New Issue