[ide-extension] 🐞 vscode-graphql-execution silently fails if packages are missing
- Dominant language
- TypeScript
- Stars
- 16.9k
- Forks
- 1.9k
- Avg merge
- 22h 45m
- Merged PRs (30d)
- 70
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current Behavior
```Markdown
I get errors like "command 'vscode-graphql-execution.contentProvider' not found"
```
### Expected Behavior
```Markdown
I install the GraphQL extensions and the execution features work
```
### Steps To Reproduce
```Markdown
1. Linux without any graphql packages installed
2. Install the extensions
3. GraphQL Exec commands fail
```
### Environment
```Markdown
- LSP Server Version: latest
- OS: Gentoo Linux
- LSP Client: vscode
```
### Anything else?
From the extension host log:
```
[2022-11-05 12:04:33.327] [exthost] [error] Activating extension GraphQL.vscode-graphql-execution failed due to an error:
[2022-11-05 12:04:33.327] [exthost] [error] Error: Cannot find module 'graphql-config'
Require stack:
- /home/ME/.vscode/extensions/graphql.vscode-graphql-execution-0.1.5/dist/providers/exec-content.js
- /home/ME/.vscode/extensions/graphql.vscode-graphql-execution-0.1.5/dist/extension.js
```
Clearly the extension requires `graphql-config` but it can't find it. I tried globally installing it but that did not work. I tried installing it my workspace (which isn't a real option since my workspace does not use Node at all) but that did not work.
Contributor guide
Assessment
This issue has not been assessed yet.