Details
-
Technical task
-
Resolution: Fixed
-
P2: Important
-
None
-
deaa1bf54 (dev), 718d41136 (dev)
Description
Implement find usages ( see https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_references ) for Qml Objects
List of stuff to implement: ( when finished and when WIP)
- QML objects via
-
- id
- parent.XXX no need to special case parent, it should be handled like a "normal" property, see https://doc.qt.io/qt-6/qml-qtquick-item.html#parent-prop
- QML properties (e.g. in binding/functions/scriptexpressions)
-
- TODO: can they be hidden, or found in different files?
- might require knowing the type of "owner", e.g. following usages of "myProp" are only usages depending on the type of myVar and myVar.myProp.myProp2.myProp "myVar.myProp.myProp2.myProp" (should be doable using the QQmlJSScope and previous bullet point)
- QML signals
- QML property bindings
- QML property signals + signal handler
-
- e.g., looking for a property p should also yield usages of pChanged and onPChanged