提交 f0d3c50a 编写于 作者: P Peng Lyu

menu.onDidChagne always returns undefined.

上级 25ecf585
......@@ -569,12 +569,8 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
const menu = this._commentMenus.getCommentThreadActions(commentThread, this._contextKeyService);
this._disposables.add(menu);
this._disposables.add(menu.onDidChange((newMenu) => {
if (newMenu) {
this._commentFormActions.setActions(newMenu);
} else {
this._disposables.add(menu.onDidChange(() => {
this._commentFormActions.setActions(menu);
}
}));
this._commentFormActions = new CommentFormActions(container, async (action: IAction) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册