Add TSServer Log Collection Commands (#22914)

* Add TSServer Log Options

Adds support for collecting the TSServer log directly in VS Code

* Add enable logging option

* Handle case where user is on older version of TS

* Rename

* Activate on openTSServerLog command

* VSCode -> VS Code
This commit is contained in:
Matt Bierner
2017-03-20 17:16:01 -07:00
committed by GitHub
parent a11bed205c
commit 23aba8283a
5 changed files with 126 additions and 2 deletions

View File

@@ -34,6 +34,7 @@
"onCommand:typescript.selectTypeScriptVersion",
"onCommand:javascript.goToProjectConfig",
"onCommand:typescript.goToProjectConfig",
"onCommand:typescript.openTsServerLog",
"workspaceContains:jsconfig.json",
"workspaceContains:tsconfig.json"
],
@@ -114,6 +115,17 @@
"default": false,
"description": "%typescript.implementationsCodeLens.enabled%"
},
"typescript.tsserver.log": {
"type": "string",
"enum": [
"off",
"terse",
"normal",
"verbose"
],
"default": "off",
"description": "%typescript.tsserver.log%"
},
"typescript.tsserver.trace": {
"type": "string",
"enum": [
@@ -296,6 +308,11 @@
"command": "javascript.goToProjectConfig",
"title": "%javascript.goToProjectConfig.title%",
"category": "JavaScript"
},
{
"command": "typescript.openTsServerLog",
"title": "%typescript.openTsServerLog.title%",
"category": "TypeScript"
}
],
"menus": {