mariuspopovici / starlimsvscode

STARLIMS VS Code Extension
MIT License
15 stars 3 forks source link

Go to item navigates to the wrong script #116

Closed mariuspopovici closed 1 year ago

mariuspopovici commented 1 year ago

When using Go to Item on this code: DoProc("ENTERPRISE_DATA_PROVIDERS.VersionProvider.GetAbsoluteVersionSelectString"); the system navigates to a different script, called ConversionProvider instead of **VersionProvider***

mariuspopovici commented 1 year ago

Found that go to item uses the searchForItems service which performs a "like" search on the server. In this case, we actually need to match the name exactly instead of doing a like search which is normally the case if you search for partial matches.

I will add a exactMatch parameter to the Search service (by default not enabled). This option will be enabled for all the Go To commands.

mariuspopovici commented 1 year ago

Fixed in #117

MrDoe commented 1 year ago

Yes, you are right. The 'like' was indented for the search in the navigation bar, i. e. to just enter 'biorep' to find anything with 'biorepository' in its name. For the 'go to' function we definitely need the exact match.