Skip to content

Commit

Permalink
Fix extra primary button in comments (#236325)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexr00 authored Dec 17, 2024
1 parent b426e02 commit f78af53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/comments/browser/commentNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/comments/browser/commentReply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit f78af53

Please sign in to comment.