Add restart TSServer command. Fixes #22335
This commit is contained in:
parent
50cc0f9067
commit
d167cf370f
3 changed files with 10 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue