forked from openkylin/kylin-code
移除帮助菜单下的编辑器功能菜单.
This commit is contained in:
parent
229f653c0d
commit
67aabf898b
|
@ -8,12 +8,13 @@ import { WalkThroughInput } from 'vs/workbench/contrib/welcomeWalkthrough/browse
|
|||
import { WalkThroughPart } from 'vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart';
|
||||
import { WalkThroughArrowUp, WalkThroughArrowDown, WalkThroughPageUp, WalkThroughPageDown } from 'vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughActions';
|
||||
import { WalkThroughSnippetContentProvider } from 'vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider';
|
||||
import { EditorWalkThroughAction, EditorWalkThroughInputSerializer } from 'vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough';
|
||||
// import { EditorWalkThroughAction, EditorWalkThroughInputSerializer } from 'vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough';
|
||||
import { EditorWalkThroughInputSerializer } from 'vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough';
|
||||
import { Registry } from 'vs/platform/registry/common/platform';
|
||||
import { EditorExtensions, IEditorFactoryRegistry } from 'vs/workbench/common/editor';
|
||||
import { SyncDescriptor } from 'vs/platform/instantiation/common/descriptors';
|
||||
import { IWorkbenchActionRegistry, Extensions, CATEGORIES } from 'vs/workbench/common/actions';
|
||||
import { SyncActionDescriptor, MenuRegistry, MenuId } from 'vs/platform/actions/common/actions';
|
||||
// import { IWorkbenchActionRegistry, Extensions, CATEGORIES } from 'vs/workbench/common/actions';
|
||||
// import { SyncActionDescriptor, MenuRegistry, MenuId } from 'vs/platform/actions/common/actions';
|
||||
import { IWorkbenchContributionsRegistry, Extensions as WorkbenchExtensions } from 'vs/workbench/common/contributions';
|
||||
import { IEditorPaneRegistry, EditorPaneDescriptor } from 'vs/workbench/browser/editor';
|
||||
import { LifecyclePhase } from 'vs/workbench/services/lifecycle/common/lifecycle';
|
||||
|
@ -27,10 +28,10 @@ Registry.as<IEditorPaneRegistry>(EditorExtensions.EditorPane)
|
|||
),
|
||||
[new SyncDescriptor(WalkThroughInput)]);
|
||||
|
||||
Registry.as<IWorkbenchActionRegistry>(Extensions.WorkbenchActions)
|
||||
.registerWorkbenchAction(
|
||||
SyncActionDescriptor.from(EditorWalkThroughAction),
|
||||
'Help: Interactive Editor Playground', CATEGORIES.Help.value);
|
||||
// Registry.as<IWorkbenchActionRegistry>(Extensions.WorkbenchActions)
|
||||
// .registerWorkbenchAction(
|
||||
// SyncActionDescriptor.from(EditorWalkThroughAction),
|
||||
// 'Help: Interactive Editor Playground', CATEGORIES.Help.value);
|
||||
|
||||
Registry.as<IEditorFactoryRegistry>(EditorExtensions.EditorFactory).registerEditorSerializer(EditorWalkThroughInputSerializer.ID, EditorWalkThroughInputSerializer);
|
||||
|
||||
|
@ -45,11 +46,11 @@ KeybindingsRegistry.registerCommandAndKeybindingRule(WalkThroughPageUp);
|
|||
|
||||
KeybindingsRegistry.registerCommandAndKeybindingRule(WalkThroughPageDown);
|
||||
|
||||
MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
|
||||
group: '1_welcome',
|
||||
command: {
|
||||
id: 'workbench.action.showInteractivePlayground',
|
||||
title: localize({ key: 'miPlayground', comment: ['&& denotes a mnemonic'] }, "Editor Playgrou&&nd")
|
||||
},
|
||||
order: 3
|
||||
});
|
||||
// MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
|
||||
// group: '1_welcome',
|
||||
// command: {
|
||||
// id: 'workbench.action.showInteractivePlayground',
|
||||
// title: localize({ key: 'miPlayground', comment: ['&& denotes a mnemonic'] }, "Editor Playgrou&&nd")
|
||||
// },
|
||||
// order: 3
|
||||
// });
|
||||
|
|
Loading…
Reference in New Issue