Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>GraphQL UnusedNew to Visual Studio Code? Get it now.
GraphQL Unused

GraphQL Unused

Oliver Raisz

| (0) | Free
Detect unused GraphQL operations and fragments in VS Code by reusing the GraphQL Unused CLI.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GraphQL Unused VS Code Extension

This extension reuses the graphql-unused CLI and publishes unused GraphQL operations and fragments as VS Code diagnostics.

Development

Install dependencies:

npm install

Compile:

npm run compile

Bundle the local CLI into the extension workspace:

npm run bundle-cli

Bundle all currently supported packaged CLI payloads into the extension workspace:

npm run bundle-cli:all

Create a .vsix package:

npm run package:vsix

Run tests:

npm test

Install the VSIX locally

After packaging, install the generated .vsix in VS Code:

  1. Open Extensions
  2. Click the ... menu
  3. Choose Install from VSIX...
  4. Select the generated graphql-unused-vscode-<version>.vsix

Release workflow

Current packaging flow:

  1. npm install
  2. npm run compile
  3. npm run bundle-cli:all
  4. npm run package:vsix
  5. Upload the generated .vsix to a GitHub release or distribute it directly

Notes:

  • the packaged extension currently bundles darwin-arm64, darwin-x64, and linux-x64
  • unsupported platforms can still use graphqlUnused.cliPath
  • the extension can still fall back to graphqlUnused.cliPath or a local development CLI build at runtime

Runtime

The extension resolves the CLI in this order:

  1. graphqlUnused.cliPath
  2. bundled executable under bundled-cli/<platform>/bin/
  3. local development build from ../build/install/graphql-unused/bin/
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft