Surface Basic Subgraph Linter diagnostics inside VS Code with the bundled language server.
Features
Diagnostics-only language server for The Graph mappings; highlights potential entity overwrites, unexpected nulls, unchecked loads/non-nulls, unsafe divisions, derived field issues, and helper return contract violations.
Auto-discovers subgraph.yaml in your workspace.
Runs automatically on save (configurable) and can be triggered manually from the Command Palette.
Respects your linter config and severity overrides, so diagnostics in VS Code match your project settings.
Usage
Open a workspace containing a subgraph manifest. The extension will locate it and start the analyzer.
Fix diagnostics inline; warnings and errors show in the Problems panel.
Run manually anytime via Basic Subgraph Linter: Run Analysis (basic-subgraph-linter.runAnalysis).
Settings (prefix basicSubgraphLinter)
manifestPaths: array of manifest paths to use instead of auto-discovery.
tsconfigPath: tsconfig.json to pass to the analyzer.
configPath: linter config path (defaults to basic-subgraph-linter.config.json in the workspace; supports severityOverrides).
runOnSave: boolean, run analysis when files are saved (default true).
How it works
The extension ships with the bundled language server.
Diagnostics are produced only; the extension does not modify code or generate fixes.
Severity shown in VS Code mirrors the linter’s configuration; warnings do not block builds.