iljapostnovs / VSCodeUI5Plugin

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

Bug: Event Handler not found #419

Closed zoukun-shin closed 1 month ago

zoukun-shin commented 1 month ago

Describe the bug The event handler exists in the controller but displayed as not present

To Reproduce Steps to reproduce the behavior:

1.Open Main.view.xml

  1. Locate any control with event
  2. Error will appear

Expected behavior No errors should occur

Screenshots event handler not found

Desktop (please complete the following information): -Windows 11 -SAP Business Application -SAPUI5 Extension v1.19.1

Additional context I have reviewed all the issues related to event handlers before, and one of them is the most similar to my problem, but it uses TS, while my project uses JS. I am not sure if it has any impact. #318 I also modified the package file in the root directory according to the method mentioned in the issue, but the problem has not been resolved Project attachment If applicable, Project example for issue reproduction test1.zip

zoukun-shin commented 1 month ago

Sorry, I solved it myself. The format controller file can solve the problem without modifying the package file. It may be due to indentation that the liner cannot find the corresponding function?