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

Completing a rename after cancellation no longer successfully completes the operation in 1.40.0-insiders #83459

Closed
Colengms opened this issue Oct 28, 2019 · 2 comments
Assignees
Labels
*as-designed Described behavior is as designed

Comments

@Colengms
Copy link
Contributor

Colengms commented Oct 28, 2019

This looks directly related to the fix here: #82146

This fix break the Rename feature in the C/C++ Extension, due to VS Code no longer accepting results after a cancellation. We display UI to disambiguate symbols to be renamed. VS Code will attempt to cancel the Rename operation if the users clicks in the editor, or clicks on an item in our tree view (which selects the associated content in the editor). This was not an issue previously, as we could still complete the original Promise. VS Code no longer accepts that completed promise.

Alternatively, we could display the disambiguation UI outside of the lifecycle of the Rename operation. We could complete the initial rename request with no results then issue the final edits ourselves. However, the fix made due to #82146 was unnecessary, as it was in response to functionality that was working as designed (see notes in that issue). We would prefer to display the progress indicator when a rename operation is indeed still in progress.

Could we get the unnecessary fix in #82146 reverted? Or, should we work around it?

@jrieken
Copy link
Member

jrieken commented Oct 29, 2019

I believe that discarding an operation's results after cancelation is the correct thing to do. In the special case of #82146 even more so because it causes screen cheese with an out-of-context progress bar. We will not revert the fix for #82146.

The rename-solo of the c/cpp extension has already been discussed with @bobbrow. The right thing to do here is #77728 and you are invited to contribute.

@jrieken jrieken added the *as-designed Described behavior is as designed label Oct 29, 2019
@vscodebot
Copy link

vscodebot bot commented Oct 29, 2019

The described behavior is how it is expected to work. If you disagree, please explain what is expected and what is not in more detail. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Oct 29, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*as-designed Described behavior is as designed
Projects
None yet
Development

No branches or pull requests

2 participants