Fix extra primary button in comments (#236325)

Fixes https://github.com/microsoft/vscode-pull-request-github/issues/6553
pull/236331/head
Alex Ross 2024-12-17 11:38:12 +01:00 committed by GitHub
parent b426e026e1
commit f78af53350
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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 => {

View File

@ -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) => {