dotnet / dotnet/fsharp

[Visual Studio] 2022 editor selection expansion works incorrectly

Open
#12,760 1 comment 1 reaction 0 assignees View on GitHub
AI-thinks-windows-only Area-VS-Editor Bug Impact-Low
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

Please provide a succinct description of the issue.
There are commands:
* Expand selection (Shift + Alt + =)
* Contract selection (Shift + Alt + -)

The expansion and correspondingly contraction works incorrectly,

1. Open any F# file and place a cursor in a constant definition or let binding value
image
2. Press `Shift + Alt + =` until you select the whole statement
image
3. Press `Shift + Alt + =` again
image
4. See that instead of an outer block the whole line is selected.
5. If you press `Shift + Alt + =` again the whole file will be selected instead of a current module/type

**Expected behavior**

Expansion and contraction happens according to code block nesting

**Actual behavior**

Expansion only works on a single line level

**Related information**

* Visual Studio 2022 17.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.