-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
lint: add "promise-function-async" rule #28109
Comments
This rule requires type information which the current linter has no access to. We've recently landed support for JS plugins for our linter and aren't too far off from wiring up |
Aha. That sounds slow and expensive? Why wouldn't it get the type information from its own AST? |
To get type information you need to invoke |
I see. I'm just curious. Would this be possible to do in a performant way? I assume my IDE (Zed) is communicating with a long-running instance of the Deno LSP, but is it then rerunning the entire process of parsing the code, building an AST, passing to |
There is a bunch of code in place to avoid doing unnecessary work, although at some point you'll need to reparse the current file. I'm not too familiar with the LSP side of things, but I don't think it happens on every key stroke. |
The rule promise-function-async seems like something I would want to enable.
The text was updated successfully, but these errors were encountered: