tidev / vscode-titanium

Titanium SDK development tools and UI package for Visual Studio Code.
Apache License 2.0
38 stars 19 forks source link

Don't highlight lifecycle hooks as "declared but never read" #1178

Open OBrown92 opened 1 year ago

OBrown92 commented 1 year ago

VSCode mentioned lifecycle hooks as "declared but never read".

example

It would be nice if the lifecycle hooks would be properly handled and maybe autocompleted as well.

ewanharris commented 1 year ago

I think as those are from the TS language service in VS Code we can't touch them as it stands today.

I think the way we'd have to solve this is to write a TS language plugin and add that as part of the contribution points of the extension (docs), I'm not familiar with TS plugins but I guess we could then inform TS that the function is unused somewhere.