I am writing a TypeScript language plugin for GraphQL and I need to access the project root at some places. I want to use the workspaces API to make this workspace ready.
I tried including vscode
directly and that doesn't work
- I get the error
vscode
not found - I have to install
vscode
engine and that looks like the wrong API.
Is it possible to pass information like this from extension to language plugin or is there a way to access workspace API in language plugin?