Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OBrown92 opened this issue Oct 18, 2023 · 1 comment
Open

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

OBrown92 opened this issue Oct 18, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@OBrown92
Copy link

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.

@OBrown92 OBrown92 added the enhancement New feature or request label Oct 18, 2023
@ewanharris
Copy link
Collaborator

ewanharris commented Oct 18, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants