Skip to content

Revert changes from https://github.com/dotnet/roslyn/pull/49220/ to t…#49592

Merged
dibarbet merged 1 commit intodotnet:release/dev16.9from
dibarbet:razor_resolve_no_map
Nov 24, 2020
Merged

Revert changes from https://github.com/dotnet/roslyn/pull/49220/ to t…#49592
dibarbet merged 1 commit intodotnet:release/dev16.9from
dibarbet:razor_resolve_no_map

Conversation

@dibarbet
Copy link
Member

@dibarbet dibarbet commented Nov 24, 2020

…he code actions resolve handler

Issue:
Add @using code actions in razor local LSP do not work as C# hangs attempting to call the razor span mapping service.

Cause:
This was introduced by #49220 to support cross file rename in server scenarios to remap all workspace edits. As part of that PR I unified handling of workspace edits across all LSP functions which included code action resolve. However, calling razor to map during a code action will hang.

PR:
The change here is to revert the changes to codeAction/resolve workspace edit handling (the old implementation did not attempt to map spans). Cross file rename will still work since we are not reverting that part. Once the hang issue is fixed (tracked by https://github.com/dotnet/aspnetcore/issues/28102) we should revert this commit so that we have unified handling for workspace edits.

@dibarbet dibarbet requested a review from a team as a code owner November 24, 2020 01:19
@dibarbet dibarbet changed the base branch from master to release/dev16.9 November 24, 2020 01:23
@dibarbet
Copy link
Member Author

@jinujoseph I believe this will need approval since we just snapped

@TanayParikh
Copy link
Contributor

Thanks @dibarbet!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants