2
有兩個VSCode擴展名。
- extension1是註冊命令'exCommand1'。
- 擴展名2是註冊命令'exCommand2'。
是否可以在VSCode中的擴展之間調用命令?例如
VSCode擴展可以調用命令。
(參考:https://code.visualstudio.com/docs/extensionAPI/vscode-api)
executeCommand<T>(command: string, ...rest: any[]): Thenable<T | undefined>
如果API文檔是正確的,那麼..
extension1 can call extension2's 'exCommand2'. and
extension2 can call extension1's 'exCommand1'.
這可能嗎?
VSCode的擴展名是延遲加載...
如果間延伸的命令調用可能那麼如何才能加載擴展到另一分機?