更改项目菜单的默认语言为英文
This commit is contained in:
parent
cdd7765389
commit
2862ab14fb
|
@ -1,5 +1,6 @@
|
|||
import { localize } from 'vs/nls';
|
||||
import { MenuId, MenuRegistry } from 'vs/platform/actions/common/actions';
|
||||
//import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey';
|
||||
|
||||
|
||||
const commandCreateProject = "project.createProject";
|
||||
|
@ -14,55 +15,53 @@ MenuRegistry.appendMenuItem(MenuId.MenubarProjectMenu, {
|
|||
group: '1_project',
|
||||
command: {
|
||||
id: commandCreateProject,
|
||||
title: localize({ key: 'miDefault Template', comment: ['&& denotes a mnemonic'] }, "&&创建新的项目")
|
||||
title: localize({ key: 'miDefault Template', comment: ['&& denotes a mnemonic'] }, "&&Create New Project")
|
||||
},
|
||||
order: 1
|
||||
//when: ContextKeyExpr.has('extension.helloWorld')
|
||||
order: 1,
|
||||
// when: ContextKeyExpr.has('hasCreateProject')
|
||||
});
|
||||
MenuRegistry.appendMenuItem(MenuId.MenubarProjectMenu, {
|
||||
group: '1_project',
|
||||
command: {
|
||||
id: commandConfigProject,
|
||||
title: localize({ key: 'miDefault Template', comment: ['&& denotes a mnemonic'] }, "&&配置当前项目")
|
||||
title: localize({ key: 'miDefault Template', comment: ['&& denotes a mnemonic'] }, "&&Config Project")
|
||||
},
|
||||
order: 2
|
||||
//when: ContextKeyExpr.has('extension.helloWorld')
|
||||
order: 2,
|
||||
// when: ContextKeyExpr.has('hasCreateProject')
|
||||
});
|
||||
MenuRegistry.appendMenuItem(MenuId.MenubarProjectMenu, {
|
||||
group: '1_project',
|
||||
command: {
|
||||
id: commandBuidProject,
|
||||
title: localize({ key: 'miDefault Template', comment: ['&& denotes a mnemonic'] }, "&&构建")
|
||||
title: localize({ key: 'miDefault Template', comment: ['&& denotes a mnemonic'] }, "&&Build")
|
||||
},
|
||||
order: 3
|
||||
//when: ContextKeyExpr.has('extension.helloWorld')
|
||||
order: 3,
|
||||
// when: ContextKeyExpr.has('hasCreateProject')
|
||||
});
|
||||
MenuRegistry.appendMenuItem(MenuId.MenubarProjectMenu, {
|
||||
group: '1_project',
|
||||
command: {
|
||||
id: commandDebugProject,
|
||||
title: localize({ key: 'miDefault Template', comment: ['&& denotes a mnemonic'] }, "&&调试")
|
||||
title: localize({ key: 'miDefault Template', comment: ['&& denotes a mnemonic'] }, "&&Debug")
|
||||
},
|
||||
order: 4
|
||||
//when: ContextKeyExpr.has('extension.helloWorld')
|
||||
order: 4,
|
||||
// when: ContextKeyExpr.has('hasCreateProject')
|
||||
});
|
||||
MenuRegistry.appendMenuItem(MenuId.MenubarProjectMenu, {
|
||||
group: '1_project',
|
||||
command: {
|
||||
id: commandRunProject,
|
||||
title: localize({ key: 'miDefault Template', comment: ['&& denotes a mnemonic'] }, "&&运行")
|
||||
title: localize({ key: 'miDefault Template', comment: ['&& denotes a mnemonic'] }, "&&Run")
|
||||
},
|
||||
order: 5,
|
||||
//when: ContextKeyExpr.has('extension.vscode-create-project')
|
||||
// when: ContextKeyExpr.equals('hasCreateProject', true)
|
||||
});
|
||||
MenuRegistry.appendMenuItem(MenuId.MenubarProjectMenu, {
|
||||
group: '1_project',
|
||||
command: {
|
||||
id: commandPackageProject,
|
||||
title: localize({ key: 'miDefault Template', comment: ['&& denotes a mnemonic'] }, "&&打包")
|
||||
title: localize({ key: 'miDefault Template', comment: ['&& denotes a mnemonic'] }, "&&Pack")
|
||||
},
|
||||
order: 6
|
||||
//when: ContextKeyExpr.has('extension.helloWorld')
|
||||
order: 6,
|
||||
// when: ContextKeyExpr.has('hasCreateProject')
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue