dotnet / dotnet/fsharp

Parenthesis completion should trigger more often

Open
#15,822 0 comments 1 reaction 0 assignees View on GitHub
Area-LangService-AutoComplete Feature Request
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

Given a match clause like `| SynExpr (SynExpr.ComputationExpr _) -> ()`, I want to remove the underscore and decompose the `ComputationExpr` union case. Place the caret to the right of `_`, press backspace and then `(`.

I see
`| SynExpr (SynExpr.ComputationExpr () -> ()`
but would like
`| SynExpr (SynExpr.ComputationExpr ()) -> ()`
with the caret placed inside, so that I can immediately start matching fields.

Given a method call like `System.String.Format("{0}")`, I want to pass an additional argument - `Some (a + b)`. Place the caret to the left of `)`, type `, Some ` and then `(`.

I see
`System.String.Format("{0}", Some ()`
but would like
`System.String.Format("{0}", Some ())`

**Additional context**

VS 17.8 Preview 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.