| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
The work we do when producing diagnostics sometimes has side effects, like pushing things into caches, which can affect other calculations down the line, so I'm usually wary against produceDiagnostics checks that aren't immediately around an error call, as it can the a source of reeeeeaaally hard to track bugs where hover info and error info on a symbol don't match (hover data comes from a non-diagnostics producing checkers, while errors do). Specifically here, there's a nested conditional checkResolvedBlockScopedVariable that might toss something into a cache which now we'd avoid doing - it's probably fine until proven otherwise, since everything in the guarded branch is supposed to just be to generate an error message, I'd just keep it in mind in case something weird crops up in the future.
Sorry, something went wrong.
|
TypeScript Bot (@typescript-bot) cherry-pick this to release-4.5 |
Sorry, something went wrong.
|
Heya Andrew Branch (@andrewbranch), I've started to run the task to cherry-pick this into release-4.5 on this PR at 2064b74. You can monitor the build here. |
Sorry, something went wrong.
|
Hey Andrew Branch (@andrewbranch), I've opened #47005 for you. |
Sorry, something went wrong.
| excludeGlobals = false): Symbol | undefined { | ||
| return resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSymbol); | ||
| excludeGlobals = false, | ||
| getSpellingSuggstions = true): Symbol | undefined { |
There was a problem hiding this comment.
I'm obviously very late to this PR but is this argument ironically named? 😛
Sorry, something went wrong.
* Fix checker initialization crash * Move checks to a place that makes more sense
| Back | FazBrowse Home | New Git URL |
Fixes #46587
The auto import provider was trying to generate spelling suggestions for IArguments since it runs with noLib: true. Not sure why this happens only sometimes, but (a) there’s no point in trying to come up with spelling suggestions for global symbols, and (b) there’s no point in trying to come up with spelling suggestions for anything inside a non-diagnostics-producing checker.