Skip to content

Test related diagnostics information #46564

Closed

Description

Test for #10271
Complexity: 2

Authors: Johannes Rieken (@jrieken), Sandeep Somavarapu (@sandy081)

We have added vscode.DiagnosticsRelatedInformation which is an extension to the existing diagnostics API. It allows diagnostics to point to other source locations helping to explain them better, e.g showing the first declaration of a symbol when having a duplicate symbol-name error. Write an extension that adds diagnostics with related information and test that you can see related information in the markers panel, the editor hover, and the F8 feature.

Activity

  1. jrieken commented on Mar 26, 2018

    @jrieken
    ContributorAuthor

    FYI - to test against the latest API do the following:

    • open your extensions package.json file
    • change the engine.vscode property to *
    • run npm run postinstall (assuming you have the vscode module as dev-dependency)
    • undo the engine-version change from step 2
  2. isidorn commented on Mar 27, 2018

    @isidorn

    Johannes Rieken (@jrieken) I find it a bit strange that the Diagnostic does not have an optional paramter in the constructor to provide relatedInformation, but only after construction I can set it.

  3. jrieken commented on Mar 27, 2018

    @jrieken
    ContributorAuthor

    The same as with source and code. The decision was that optional or rarely used fields aren't in the ctor.

  4. locked and limited conversation to collaborators on May 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions