Skip to content

vscode auto-format (dangerously!) mangles code #1400

@joshlang

Description

@joshlang

Original code file a.ts:

class C {
    /**
     *
    */
    async x() {}
}

Press alt+shift+F and it becomes:

class C {
    /**
     *
     /
    async x() { }
} 

Press it again and it becomes:

class C {
/**
 *
 /
 sync x() { }

tsgo --version
Version 7.0.0-dev.20250712.1

Extension:

Identifier
typescriptteam.native-preview
Version
0.20250712.1

Metadata

Metadata

Assignees

Labels

Domain: EditorRelated to the LSP server, editor experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions