ts-graphql-plugin | TypeScript Language Service Plugin for GraphQL developers | GraphQL library
kandi X-RAY | ts-graphql-plugin Summary
kandi X-RAY | ts-graphql-plugin Summary
TypeScript Language Service Plugin for GraphQL developers
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ts-graphql-plugin
ts-graphql-plugin Key Features
ts-graphql-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on ts-graphql-plugin
QUESTION
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?
...ANSWER
Answered 2018-Jul-27 at 02:22This is not possible. TypeScript server plugins run in a separate process from normal VS Code extensions and cannot access the normal VS code api.
This feature request would add a basic channel so that VS Code extensions to communicate with TS server plugins.
The other option that could work today is to open a communications pipe from your plugin to a vscode extension.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ts-graphql-plugin
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page