Skip to content

Change in formatting for anonymous generators #1914

@mjbvz

Description

@mjbvz

Format the code:

const a = {
	b: function* () { }
}

function* bar() { } 

Expected

Using stable TS, the formatting keeps the space after the * in b: function* () {}

Actual

Current tsgo removes the space:

const a = {
	b: function*() { }
}

function* bar() { } 

This makes it harder to use a mix of stable and tsgo in a codebase

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