提交 1ee3f9dc 编写于 作者: M Matt Bierner 提交者: GitHub

Added command for selecting ts version (#19641)

* Added command for selecting the ts version

* Update name

* Update name
上级 d133a5e1
......@@ -31,7 +31,8 @@
"onLanguage:typescriptreact",
"onLanguage:jsx-tags",
"onCommand:typescript.reloadProjects",
"onCommand:javascript.reloadProjects"
"onCommand:javascript.reloadProjects",
"onCommand:typescript.selectTypeScriptVersion"
],
"main": "./out/typescriptMain",
"enableProposedApi": true,
......@@ -260,6 +261,10 @@
{
"command": "javascript.reloadProjects",
"title": "%javascript.reloadProjects.title%"
},
{
"command": "typescript.selectTypeScriptVersion",
"title": "%typescript.selectTypeScriptVersion.title%"
}
],
"breakpoints": [
......
......@@ -24,5 +24,6 @@
"format.placeOpenBraceOnNewLineForFunctions": "Defines whether an open brace is put onto a new line for functions or not.",
"format.placeOpenBraceOnNewLineForControlBlocks": "Defines whether an open brace is put onto a new line for control blocks or not.",
"javascript.validate.enable": "Enable/disable JavaScript validation.",
"typescript.referencesCodeLens.enabled": "Enable/disable the references code lens"
"typescript.referencesCodeLens.enabled": "Enable/disable the references code lens",
"typescript.selectTypeScriptVersion.title": "Select TypeScript version"
}
\ No newline at end of file
......@@ -84,7 +84,7 @@ export function activate(context: ExtensionContext): void {
clientHost.reloadProjects();
}));
context.subscriptions.push(commands.registerCommand('_typescript.onVersionStatusClicked', () => {
context.subscriptions.push(commands.registerCommand('typescript.selectTypeScriptVersion', () => {
client.onVersionStatusClicked();
}));
......
......@@ -37,5 +37,5 @@ export function setInfo(message: string, tooltip: string) {
versionBarEntry.text = message;
versionBarEntry.tooltip = tooltip;
versionBarEntry.color = 'white';
versionBarEntry.command = '_typescript.onVersionStatusClicked';
versionBarEntry.command = 'typescript.selectTypeScriptVersion';
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册