-
Notifications
You must be signed in to change notification settings - Fork 134
Closed
Labels
Description
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