RFC 0 / Strawman

vscode + graphql "extension pack"

Opened on
Updated on

At a glance

Project
GraphiQL
Identifier
ide-2381
Stage
RFC 0 / Strawman
Champion
@acao
Updated
2022-05-16
Latest activity
Top comment edited on
Source

Issue description

Utilizing the vscode "extension pack" feature, we can release an extension pack, or even perhaps turn graphql.vscode-graphql into an extension pack, which would be powerful considering it's expansive user base!

This could be a series of inter-related extensions that can re-use eachother's configuration and even APIs perhaps:

  • graphql.config: handles validation of the presence of graphql config, and provides an api to access normalized graphql config in any extension client. provides extension namespace of graphql-config that is currently configured via graphql.vscode-graphql
  • graphql.language: what graphql.vscode-graphql is right now as of creating this issue
  • joyce's graphql notebooks extension
  • graphql.inline-exec for executing operations inline using context menu, codelens (as before), shortcuts, etc
  • would love to include prettier extension for formatting, but I think our graphql language user base would be wide enough to make that requirement a little too frontend biased, so we can just expose formatting to the LSP server via prettier/core + the prettier graphql support (as we do in monaco-graphql, but with more than just full file support - range formatting/etc as well)

then, a framework could even ship it's own extension that includes this extension pack as an extensionDependency and could utilize APIs and configuration from a graphql-config extension, pre-configuration, custom tracing support, deployment, other observability tools, etc

Timeline