Skip to content

Commit 5375e37

Browse files
authored
Error: Cannot register two commands with the same id: workbench.action.focusCommentsPanel (microsoft#203331)
Third time's the charm Fixes microsoft#202563
1 parent 4bc3583 commit 5375e37

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/vs/workbench/contrib/comments/browser/comments.contribution.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,11 @@ import { IActivityService, NumberBadge } from 'vs/workbench/services/activity/co
1717
import { COMMENTS_VIEW_ID } from 'vs/workbench/contrib/comments/browser/commentsTreeViewer';
1818
import { CommentThreadState } from 'vs/editor/common/languages';
1919
import { LifecyclePhase } from 'vs/workbench/services/lifecycle/common/lifecycle';
20-
import { CommandsRegistry } from 'vs/platform/commands/common/commands';
21-
import { IViewsService } from 'vs/workbench/services/views/common/viewsService';
2220
import { MenuId, registerAction2 } from 'vs/platform/actions/common/actions';
2321
import { CONTEXT_KEY_HAS_COMMENTS, CONTEXT_KEY_SOME_COMMENTS_EXPANDED, CommentsPanel } from 'vs/workbench/contrib/comments/browser/commentsView';
2422
import { ViewAction } from 'vs/workbench/browser/parts/views/viewPane';
2523
import { Codicon } from 'vs/base/common/codicons';
2624

27-
CommandsRegistry.registerCommand({
28-
id: 'workbench.action.focusCommentsPanel',
29-
handler: async (accessor) => {
30-
const viewsService = accessor.get(IViewsService);
31-
viewsService.openView(COMMENTS_VIEW_ID, true);
32-
}
33-
});
34-
3525
registerAction2(class Collapse extends ViewAction<CommentsPanel> {
3626
constructor() {
3727
super({

0 commit comments

Comments
 (0)