提交 2890b5d8 编写于 作者: M Matt Bierner 提交者: Dirk Baeumer

Add restart TSServer command. Fixes #22335

上级 59e7fbc2
......@@ -345,6 +345,11 @@
"command": "typescript.openTsServerLog",
"title": "%typescript.openTsServerLog.title%",
"category": "TypeScript"
},
{
"command": "typescript.restartTsServer",
"title": "%typescript.restartTsServer%",
"category": "TypeScript"
}
],
"menus": {
......
......@@ -32,6 +32,7 @@
"typescript.referencesCodeLens.enabled": "Enable/disable references CodeLens in TypeScript files. Requires TypeScript >= 2.0.6.",
"typescript.implementationsCodeLens.enabled": "Enable/disable implementations CodeLens. Requires TypeScript >= 2.2.0.",
"typescript.openTsServerLog.title": "Open TS Server log",
"typescript.restartTsServer": "Restart TS server",
"typescript.selectTypeScriptVersion.title": "Select TypeScript Version",
"jsDocCompletion.enabled": "Enable/disable auto JSDoc comments",
"javascript.implicitProjectConfig.checkJs": "Enable/disable semantic checking of JavaScript files. Existing jsconfig.json or tsconfig.json files override this setting. Requires TypeScript >=2.3.1.",
......
......@@ -109,6 +109,10 @@ export function activate(context: ExtensionContext): void {
client.openTsServerLogFile();
}));
context.subscriptions.push(commands.registerCommand('typescript.restartTsServer', () => {
client.restartTsServer();
}));
const goToProjectConfig = (isTypeScript: boolean) => {
const editor = window.activeTextEditor;
if (editor) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册