Skip to content
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

Edit: Fix flickering code lens for users with autoSave enabled #1767

Merged
merged 3 commits into from
Nov 16, 2023

Conversation

umpox
Copy link
Contributor

@umpox umpox commented Nov 16, 2023

Description

Fixes #1762

If a user has autoSave set to a value like onFocusChange or afterDelay, then it is possible that the edit code lens will immediately be dismissed.

The best thing we can do here is just to avoid dismissing on save for these cases. The code lens will still be dismissed when a user clicks "Done" or if a user manually changes some code in the selection.

Test plan

  1. Set files.autoSave to something other than the default value
  2. Create a fixup and check the codelens doesn't immediately disappear

@umpox umpox merged commit 2c35e2e into main Nov 16, 2023
14 checks passed
@umpox umpox deleted the tr/fix-auto-save-flciker branch November 16, 2023 15:09
@umpox umpox self-assigned this Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Investigate why code lens fails to apply edits
2 participants