-
Notifications
You must be signed in to change notification settings - Fork 140
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
[LS] Remove caching of checkers for imported programs #1572
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 07c27c2 Results
|
Codecov Report
@@ Coverage Diff @@
## master #1572 +/- ##
==========================================
- Coverage 74.69% 74.65% -0.04%
==========================================
Files 289 288 -1
Lines 55625 55364 -261
==========================================
- Hits 41549 41332 -217
+ Misses 12581 12535 -46
- Partials 1495 1497 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Closes #1571
Description
When LS is resolving the imports it uses a cached checker which doesn't include any changes to the imported program resulting in the current program not seeing those changes in diagnostics / code completions. This PR makes sure the checker is initialized every time, which arguably can be expensive but it's meant to be a quick patch on the blocking problem in production, a better way would be to have a "reversed" dependency tree and figure out which dependencies actually change and not just do a new re-init every time, this is been documented in an issue for future #1570.
master
branchFiles changed
in the Github PR explorer