From 09aaf819e1d7c9146113959789a935c7f25c92a8 Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Tue, 17 Dec 2024 11:01:52 +0100 Subject: [PATCH] Fix extra primary button in comments Fixes https://github.com/microsoft/vscode-pull-request-github/issues/6553 --- src/vs/workbench/contrib/comments/browser/commentNode.ts | 2 +- src/vs/workbench/contrib/comments/browser/commentReply.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/comments/browser/commentNode.ts b/src/vs/workbench/contrib/comments/browser/commentNode.ts index 37958bce7d8b9..f90a81288a3f9 100644 --- a/src/vs/workbench/contrib/comments/browser/commentNode.ts +++ b/src/vs/workbench/contrib/comments/browser/commentNode.ts @@ -658,7 +658,7 @@ export class CommentNode 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 => { diff --git a/src/vs/workbench/contrib/comments/browser/commentReply.ts b/src/vs/workbench/contrib/comments/browser/commentReply.ts index 981a3513d5980..37bb741dc681b 100644 --- a/src/vs/workbench/contrib/comments/browser/commentReply.ts +++ b/src/vs/workbench/contrib/comments/browser/commentReply.ts @@ -300,7 +300,7 @@ export class CommentReply 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) => {