Allow extensions to be able to make requests to the typescript extension's tsserver via commands (#138279)

* Allow extensions to be able to make requests to the typescript extension's tsserver via the command system

* Adds allowlisting the commands

Co-authored-by: Matt Bierner <matb@microsoft.com>
This commit is contained in:
Orta Therox
2021-12-07 22:42:47 +00:00
committed by GitHub
parent 21e0035bdb
commit fc4f41d9fc
4 changed files with 48 additions and 2 deletions

View File

@@ -63,10 +63,11 @@
"onCommand:javascript.goToProjectConfig",
"onCommand:typescript.goToProjectConfig",
"onCommand:typescript.openTsServerLog",
"onTaskType:typescript",
"onCommand:typescript.tsserverRequest",
"onCommand:_typescript.configurePlugin",
"onCommand:_typescript.learnMoreAboutRefactorings",
"onCommand:typescript.fileReferences",
"onTaskType:typescript",
"onLanguage:jsonc"
],
"main": "./out/extension",