typehole
typehole copied to clipboard
VS Code Warning Underline won't go away if initial run fails
After an initial run failed the rest of session showed a typehole warning underline. The warning was persistent through opening and closing the file. The warning did go away by restarting VS Code.
Repro:
- Run where initial run fails (err that is caught), or possible if the response is accidentally a promise(I initially put it around the call not the awaited version)
- Continue and successfully generate an interface for the call
- Notice typehole warning underline continues to persist for the session.
Interesting, the warnings should clear on save. I wonder if, after that, your runtime had time to send one more warning to the editor, which added the warning back. I'll add some code to clear the warnings state when a file closes. Hopefully, that's enough of a fix for now even though it doesn't really fix the exact situation in your image. If you have ideas on how this could be solved better, please let me know.
Thanks for reporting the issue!