Error: Cannot register two commands with the same id: workbench.action.focusCommentsPanel (#203331)

Third time's the charm
Fixes #202563
This commit is contained in:
Alex Ross 2024-01-24 13:49:08 +01:00 committed by GitHub
parent 4bc3583c4e
commit 5375e37481
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,21 +17,11 @@ import { IActivityService, NumberBadge } from 'vs/workbench/services/activity/co
import { COMMENTS_VIEW_ID } from 'vs/workbench/contrib/comments/browser/commentsTreeViewer';
import { CommentThreadState } from 'vs/editor/common/languages';
import { LifecyclePhase } from 'vs/workbench/services/lifecycle/common/lifecycle';
import { CommandsRegistry } from 'vs/platform/commands/common/commands';
import { IViewsService } from 'vs/workbench/services/views/common/viewsService';
import { MenuId, registerAction2 } from 'vs/platform/actions/common/actions';
import { CONTEXT_KEY_HAS_COMMENTS, CONTEXT_KEY_SOME_COMMENTS_EXPANDED, CommentsPanel } from 'vs/workbench/contrib/comments/browser/commentsView';
import { ViewAction } from 'vs/workbench/browser/parts/views/viewPane';
import { Codicon } from 'vs/base/common/codicons';
CommandsRegistry.registerCommand({
id: 'workbench.action.focusCommentsPanel',
handler: async (accessor) => {
const viewsService = accessor.get(IViewsService);
viewsService.openView(COMMENTS_VIEW_ID, true);
}
});
registerAction2(class Collapse extends ViewAction<CommentsPanel> {
constructor() {
super({