Skip to content

Commit

Permalink
fix #50727
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed May 30, 2018
1 parent 42ab601 commit 2163005
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { CommandsRegistry } from 'vs/platform/commands/common/commands';
import { localize } from 'vs/nls';
import { IViewsService, ViewLocation, ViewsRegistry, IViewDescriptor } from 'vs/workbench/common/views';
import { OutlinePanel } from './outlinePanel';
import { MenuRegistry } from 'vs/platform/actions/common/actions';

const _outlineDesc = <IViewDescriptor>{
id: 'code.outline',
Expand All @@ -25,3 +26,9 @@ CommandsRegistry.registerCommand('outline.focus', accessor => {
let viewsService = accessor.get(IViewsService);
return viewsService.openView(_outlineDesc.id, true);
});

MenuRegistry.addCommand({
id: 'outline.focus',
category: localize('category.focus', "File"),
title: localize('label.focus', "Focus on Outline")
});

0 comments on commit 2163005

Please sign in to comment.