Repository navigation
Fix code lens perf for interactive window #11142
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
18d8968
Eliminate first level of redundancy
rchiodo f02d847
Working with a cache
rchiodo 6be574a
Add test to verify no more generating cell ranges
rchiodo 82605b0
Add news entry
rchiodo 09c2b49
Clean up on closing
rchiodo d17058b
Make sure close and reopen works
rchiodo 1806922
Fix sonar errors
rchiodo 7d5a6dc
Fix restart
rchiodo 916d77b
Fix wrong IDisposable type
rchiodo f1e7138
Rename restartedKernel to onKernelRestarted
rchiodo 6c87fb1
Recompute when changing settings
rchiodo 18f7582
Clear out document close event when document closes
rchiodo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Recompute when changing settings
- Loading branch information
commit 6c87fb178c6042bb06c890f9a398cf2aa270b0c1
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it's on any settings change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is that .affectConfiguration function we should be using here. Or else we are clearing these out too much.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No there isn't. Not on the config settings. That's on the workspaceConfiguration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And the worst case is that the code lens are regenerated whenever you change your python settings. Meh.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can see where the configSettings uses that 'affectsConfiguration' in the configSettings.ts file (line 571 or so). It will only fire an onDidChangeSettings when the python settings change.
In reply to: 407782405 [](ancestors = 407782405)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably recompute the code lenses though. Otherwise the next execution will recompute them all.
In reply to: 407782955 [](ancestors = 407782955,407782405)