superbol-studio-oss icon indicating copy to clipboard operation
superbol-studio-oss copied to clipboard

Add number of references in hover of variables

Open engboris opened this issue 7 months ago • 1 comments

Closes #354

The formatting could be improved (it is naive) and is not well displayed for groups.

2025-06-02_15-33 2025-06-02_15-34

engboris avatar Jun 02 '25 13:06 engboris

Unfortunately, it's failing in some cases with a Request textDocument/hover failed. popup on VSCode.

For instance, when hovering EXPECT-ORDER in:

* IF   EXPECT-ORDER  =  'ASCII'
*    IF G NOT = "12345abcde"
* ELIF EXPECT-ORDER  =  'EBCDIC'

or P050-SEARCH, P050-00, +AM005* or even special case 1 in:

       program-id. test.
       procedure division.
      *---------------------------------------------------------------*
       P050-SEARCH SECTION.
       P050-00.
+AM005*    special case 1
+AM005     continue.
+AM005*
+AM005 P050-40.
           continue.
      *
       P050-99.
           EXIT.
      /

And more generally, the error occurs for every token having an associated reference codelens.

engboris avatar Jun 02 '25 13:06 engboris