Skip to content

C# Extract method selects wrong part of code #58971

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[regression] [worked-in:17.1 preview 2]
Reproduction:

  1. Open a C# code file
  2. Select something which can be extracted to a method
  3. Press Ctrl+R, Ctrl+M to launch the Extract Method command
  4. The method is extracted and entered the rename phase.
  5. The selection is wrong so we can't just type in the new method name.

Please see the following screenshot (it should have selected "NewMethod", however, it selected "wMethod()").

image


Original Comments

Feedback Bot on 1/17/2022, 00:42 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions