Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Diagnostics DocumentNew to Visual Studio Code? Get it now.
Diagnostics Document

Diagnostics Document

Robert Bilski

|
2 installs
| (0) | Free
Display Diagnostics in a Virtual Document
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Diagnostics Document

VSCode extension to display diagnostics within a Virtual Document.

Usage

This extension exposes 3 commands:

  • diagnostics-document.showDiagnostics - display all diagnostics. You can optionally pass in args ({ severity?: string[], title?: string }), to filter severities (allowed values: error, warning, information, hint) and to change the document's title
  • diagnostics-document.showErrors - display only errors
  • diagnostics-document.showProblems - display only errors and warnings

Each listed diagnostic contains a link, pointing to the location of that diagnostic.

Diagnostics are grouped by file and provide folding ranges, so each group can be individually collapsed.

Creating a keyboard shortcut

If you wanted to, for example, filter for only information diagnostics, you could create a keyboard shortcut with specific arguments:

  {
        "key": "ctrl+alt+e",
        "command": "diagnostics-document.showDiagnostics",
        "args": {
            "severity": [
                "Information"
            ],
            "title": "Information Diagnostics List"
        }
  }

Example output

## ./game/types.go (E: 2)
============================================================
[Error](https://git.sr.ht/~rbilski/diagnostics-document/tree/master/item/UndeclaredName) Ln 17, Col 9: undefined: id
[Error](https://git.sr.ht/~rbilski/diagnostics-document/tree/master/item/InvalidStructLit) Ln 25, Col 13: too few values in struct literal of type Unit
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft