mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
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:
parent
4bc3583c4e
commit
5375e37481
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue