-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
import/resolver with rules from import/errors and using @typescript-esint/parser causes VSCode to hang while saving files #163
Comments
I don't understand why the issue is created here, this resolver has nothing to do with the editor, why you think this is caused by this resolver instead of the import plugin or vscode-eslint extension, or even VSCode itself? |
Sadly I can only confirm that disabling |
So there is nothing related to this resolver. |
I opened it here because I mistakenly thought this was the repo for the import plugin. Both are within import-js and I didn't notice, so that was my mistake. I did intend to open it in import-js/eslint-plugin-import. But also, in that microsoft/vscode-eslint#1344 issue I linked to, it very clearly explained that issues like this are more likely caused by slow eslint plugins, rather than VSCode or the extension itself. Would you prefer I reopen the issue within in import-js/eslint-plugin-import? |
@lachlanhunt I think there are already issues for performance problems, see https://github.com/import-js/eslint-plugin-import/issues?q=performance+ |
Given this .eslintrc.js
Then with with the ESLint extension for VSCode installed, and enabling this option in VSCode's settings.json
This causes VSCode to get stuck while trying to save, showing a dialog saying "Getting code actions from ESLint ...".
I have tried to diagnose this issue by following the advice in microsoft/vscode-eslint#1344, but I've only been able to narrow it down to this combination of settings. I don't actually know for sure if the bug is somewhere in these 3 rules, in typescript's parser or the ESLint plugin, or even somewhere else. But I've only had this issue occur with either of those 3 specific rules enabled.
I've only been able to workaround this by disabling the 3 rules:
import/no-unresolved
,import/named
andimport/namespace
.The text was updated successfully, but these errors were encountered: