iljapostnovs / VSCodeUI5Plugin

Visual Studio Code Extension for UI5 Development
Apache License 2.0
61 stars 6 forks source link

Bug: JS Helper class is marked as unused if only consumed in XML View #387

Closed richardatsap closed 7 months ago

richardatsap commented 10 months ago

Describe the bug If one has a helper class defining static methods which are consumed only in an XML View, the helper class is marked as unused.

To Reproduce See Handler.js in attached project, which is only consumed in MainApplication.view.xml.

Expected behavior The use in XML Views should be recognized for the helper class. As well, the use of methods should in XML Views show up in the helper class.

Desktop (please complete the following information):

Project attachment ui5-minimal.zip

iljapostnovs commented 7 months ago

Please check if latest version (1.16.6) works for you.

richardatsap commented 7 months ago

The references show up, but the class is still marked as unused.

iljapostnovs commented 7 months ago

Good point. Please check v1.17.0

richardatsap commented 7 months ago

Works. Many thanks again!