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

Fix extract function code action being triggered too early #209

Merged
merged 3 commits into from
Sep 5, 2021

Conversation

jmbockhorst
Copy link
Member

We were incorrectly running the extract method code action on the resolve request. The resolve request is just to fill in the edits, not to run the request. Instead we need to pass a command that will triggered after the code action is triggered. Most of the time, the code action was resolved when the code action was triggered, so it didn't cause any issues. But recently the Live Share extension changed it to eagerly resolve all code action when they are requested. This caused us to manually trigger the extract function every time a code action was requested, but not triggered.

Fixes #208.

@razzeee razzeee merged commit a522ee6 into main Sep 5, 2021
@jmbockhorst jmbockhorst deleted the fix-extract-function-code-action branch May 17, 2023 17:20
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.

"extract function" is triggered unexpectedly on versions from 2.0.0 to 2.2.1 when using with VSCode Live Share
2 participants