Skip to content

Incorrect formatting of JSDoc comment with tab indentation #1899

@mjbvz

Description

@mjbvz

For a file that uses tab indentation, try running format:

class Foo {
	/**
	 * @param {string} argument - This is a param description.
	 */
	example(argument) {
console.log(argument);
	}
}

Bug
This incorrectly moves the spaces to the start of the doc comment lines so you end up with space tab *.

class Foo {
	/**
 	* @param {string} argument - This is a param description.
 	*/
	example(argument) {
		console.log(argument);
	}
}

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