microsoft / vscode-debugadapter-node

Debug adapter protocol and implementation for VS Code.
Other
273 stars 79 forks source link

[Question] Call vscode API from a debug adapter #107

Closed maxfie1d closed 7 years ago

maxfie1d commented 7 years ago

I get exception of Cannot find module 'vscode' when I call directly vscode API(vscode.window.showInputBox()) from a debug adapter to get user input(like stdin).

I think it is possible to call vscode API by sending and hooking custom request or event that asks vscode extension to call the API, but Is that right?

weinand commented 7 years ago

@MaxfieldWalker you cannot use the VS Code API in debug adapters because they do not run in an extension host environment.

maxfie1d commented 7 years ago

OK, thank you for the explanation.