microsoft / microsoft/typespec

VS Code extension folding with multiple lines of decorators is broken

Open
#2,747 6 comments 0 reactions 1 assignee Claimed by @RodgeFu View on GitHub
ide triaged:core
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

Currently folding in VS Code hides too much of the folded item, so you can't identify it.
For example folding
```
@open
@complex model customSecurityAttributeValue {
}
```

shows the following:

image

Whereas folding:
```
@open
@complex model customSecurityAttributeValue {
dooo: int32;
hooo: int32;
vooo: int32;
gooo: int32;
mooo: int32;
zooo: int32;
booo: int32;
}
```
shows:
image

Expected:
In both cases, the content of the `model` should be folded

Actual:
Both cases are broken, albeit differently.

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.