Skip to content

VSCode: code folding ranges #2771

@lukeed

Description

@lukeed

The collapsible ranges in typescript-native w/ TypeScript (Native Preview) extension are different (and far worse) than the current stable versions

Steps to reproduce

if (EMPTY_TAGs.has(tag)) {
  output += "/>";
} else {
  output += ">";

  if (!html && kidcount > 0) {
    //
  }
}

export function use<T>(ctx: Value<T>): T | undefined {
  // 
}

Behavior with typescript@6.0

Image Image

Behavior with tsgo

Image Image

Versions

typescriptteam.native-preview @ 0.20260212.1
@typescript/native-preview @ 7.0.0-dev.20260212.1

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions