You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not only the arguments but also the closing parentheses are being folded. There are several issues with this behavior:
Lack of the closing parenthesis makes code editing more difficult. For example, users have to unfold fmt.Println to add more code. This behavior is particularly frustrating when working with calls like t.Run.
It is inconsistent with the folding of function bodies and composite literals - } is always visible.
Current behavior
Expected behavior
The text was updated successfully, but these errors were encountered:
gopherbot
added
Tools
This label describes issues relating to any tools in the x/tools repository.
gopls
Issues related to the Go language server, gopls.
labels
Nov 20, 2024
Make folding ranges for function calls consistent with folding
ranges for function bodies and composite literals:
- keep the closing parenthesis visible
- do not generate a folding range if either the first or last
argument is on the same line as the opening or closing parenthesis
Fixesgolang/go#70467
gopls version:
gopls@e751756
(master
branch)Fold calls to
sort.Slice
andfmt.Println
in VSCode (or, likely, any other editor withLineFoldingOnly
set totrue
):Not only the arguments but also the closing parentheses are being folded. There are several issues with this behavior:
fmt.Println
to add more code. This behavior is particularly frustrating when working with calls liket.Run
.}
is always visible.The text was updated successfully, but these errors were encountered: