dotnet / dotnet/fsharp

Expand selection skips F# module declarations

Open
#9,754 1 comment 1 reaction 0 assignees View on GitHub
Area-LangService-BlockStructure Feature Request
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/content/problem/1024299/expand-selection-skips-f-module-declarations.html)._

---
```
module Mod1 =
let x = 1

module Mod2 =
let x = 2 // start selection here
```

If we start the selection at the literal 2 and continue expanding it using the _ExpandSelection_ command I would expect the expansion to expand like this:

1. the literal `2`
1. the `let` declaration
1. the whole module declaration `Mod2`
1. the whole source file

However the selection expands like this:

1. the literal `2`
1. the `let` declaration
1. the line of the `let` declaration
1. the whole source file

---
### Original Comments

#### Feedback Bot on 5/9/2020, 03:31 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.

#### Feedback Bot on 6/18/2020, 07:45 PM:

I have detected that for the last 35 days, this issue didn't have much product team activity and a very small amount of new votes or comments. Based on this, its severity, and affected area, it’s my experience that this issue is very unlikely to be fixed.

---
### Original Solutions
(no solutions)

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.