Skip to content

References to QasmStd Items don't Support GoTo Def #2383

@ScottCarda-MS

Description

@ScottCarda-MS

Describe the bug

When trying to use the language server's go-to-definition feature of references to QasmStd items, an error occurs.

To Reproduce

import QasmStd.Convert.BoolAsBigInt;
operation Main() : Unit {
    BoolAsBigInt(true);
}

The try to use go-to-definition on BoolAsBigInt. It will try to open a readonly view of Convert.qs, as it would with any library item, but the view displays a generic "unexpected error" message.

Expected behavior

The go-to-definition feature should ideally open a readonly view of the definition of the QasmStd item, or at least use the more graceful "no definition found" error message the user would normally get when trying to go-to-def on invalid items.

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions