-
Notifications
You must be signed in to change notification settings - Fork 12.8k
QuickFix: Fix all detected spelling errors
not working
#50243
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
Comments
Simple repo: export function newFunction() {}
newFunctions(); // trigger here Here's the relevant request:
|
To me the problem (you can see it in the GIF) is that there are duplicate errors. Because there are multiple error spans, we will try to do the same change twice (which is nonsensical). @andrewbranch, were you investigating something related to duplicate errors caused by related spans? |
Yes, that must be the same problem 👀 I have no idea how we didn’t notice this sooner. I guess we need to change how we do related spans and/or deduplication. It kind of feels like the related span shouldn’t contribute to the equality of diagnostics in deduplication anyway—I can’t think of any time we would intentionally issue multiple errors at the same location with different related spans. Those would still feel like duplicates to me. |
Deeper root-cause analysis of the original bug here #49437 (comment) |
TS Template added by @mjbvz
TypeScript Version: 4.8.0-dev.20220809
Search Terms
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
Fix all detected spelling errors
From the debug console:

The text was updated successfully, but these errors were encountered: