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
Search Terms:
fold call function parenthesis bracket
Code
declareconstf: (_: unknown)=>voidf({a: 3})f(3)
Expected behavior:
The function calls should fold like this:
f({// ...})f(// ...)
This was the behaviour for the first function call in 4.0.0 because of the object literal:
Actual behavior:
The function calls fold like this, including the last line with the closing parenthesis:
f({// ...f(// ...
Playground Link: I couldn't reproduce this in the playground, so I'm not sure if this is an issue with VSCode.
Related Issues: may have been caused by #39109 which fixes #38597 (it was the only relevant issue I found that was fixed for 4.0.1 and this bug doesn't occur in 4.0.0)
The text was updated successfully, but these errors were encountered:
TypeScript Version: 4.0.1-rc, 4.0.2, 4.1.0-dev.20200825
Search Terms:
fold call function parenthesis bracket
Code
Expected behavior:
The function calls should fold like this:
This was the behaviour for the first function call in 4.0.0 because of the object literal:

Actual behavior:
The function calls fold like this, including the last line with the closing parenthesis:
Playground Link: I couldn't reproduce this in the playground, so I'm not sure if this is an issue with VSCode.
Related Issues: may have been caused by #39109 which fixes #38597 (it was the only relevant issue I found that was fixed for 4.0.1 and this bug doesn't occur in 4.0.0)
The text was updated successfully, but these errors were encountered: