-
Notifications
You must be signed in to change notification settings - Fork 336
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
How to tackle: Getting code actions from ESLint #1344
Comments
|
I recently switched to Pre-Release versions of |
I just removed this from
|
To help with setting the "eslint.runtime" setting: You can set it to the output of
To install additional specific runtimes, you can use nvm So the setting should look like
|
The cause of seeing that dialog can have many reasons. They are in almost all cases not related to the ESLint extension itself.
Typically reasons are:
Finding the reason
Before you file an issue please follow the following steps to narrow down the problem:
extensionHost
process. If that has high CPU load than it is very likely caused by an extension. Again use the bisect tool to identify the problematic extension."eslint.debug": true
and inspecting the timings in the ESLint output channel. In these scenarios eslint in the terminal is slow as well.deasync
to make async calls sync. This can lead to complete hangs of the VM especially when used in a Electron node runtime (which VS Code does). A workaround could be to set the node runtime used for ESLint to a locally installed node version using theeslint.runtime
setting.Some tips how to make the dialog less likely
"eslint.codeActionsOnSave.mode": "problems"
. This disables ESLints behavior were it runs the validation n times until the last run didn't compute any additional fixes. If that is set to "all" which is the default, ESLint will run n (n >= 2) validation passes for that single document on every save. The side effect of using problems however is that not all fixable problems might be fixed.eslint.codeActionsOnSave.rules
setting to explicitly specify rules that should be evaluated on save. This helps to exclude expensive rules that might not even produce fixes.Filing an issue
If you file an issue for this please open a separate issue with steps on how to reproduce it. Please don't add to existing issues since the cause of the hang is very likely unique.
The text was updated successfully, but these errors were encountered: