chriscamicas / vscode-abl

An extension for VS Code which provides support for the Progress OpenEdge ABL language. https://marketplace.visualstudio.com/items?itemName=chriscamicas.openedge-abl
MIT License
50 stars 37 forks source link

Query using hover doesn't support multiple indexes #87

Closed danielbecroft closed 9 months ago

danielbecroft commented 9 months ago

When hovering over a FOR EACH, or OPEN QUERY block that references multiple indexes, only the first index is reported in the popup.

The example query is below. A COMPILE XREF (and the .xref file in .builder) reports it should be using three (3) indexes: Comments, CountryPost and Name. But only Comments is shown in the hover. Note if I remove the Comments contains clause, it reports CountryPost. It appears it is using only the first SEARCH line from the XREF, and not all of the items on the same line.

for each Customer
    where Customer.Country eq ""
    and Customer.PostalCode eq ""
    and Customer.Comments contains "Foo"
    and Customer.Name eq ""
    no-lock:

end. /* for each Customer */

XREF output:

example.p 1 COMPILE index-usage\example.p
example.p 1 CPINTERNAL utf-8
example.p 1 CPSTREAM UTF-8
example.p 1 STRING "Customer" 8 NONE UNTRANSLATABLE 
example.p 1 ACCESS sports2000.Customer Country 
example.p 1 ACCESS sports2000.Customer PostalCode 
example.p 1 ACCESS sports2000.Customer Comments 
example.p 1 ACCESS sports2000.Customer Name 
example.p 1 STRING "Foo" 3 NONE TRANSLATABLE 
example.p 1 SEARCH sports2000.Customer Comments
example.p 1 SEARCH sports2000.Customer CountryPost
example.p 1 SEARCH sports2000.Customer Name

Using v1.6.0 on VS Code v1.85.2.