mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-10 15:25:54 -06:00
format error message with newlines
This commit is contained in:
parent
003c28f1ef
commit
5fd16cae18
@ -2355,7 +2355,7 @@ namespace FourSlash {
|
||||
private applyCodeActions(actions: ts.CodeAction[], index?: number): void {
|
||||
if (index === undefined) {
|
||||
if (!(actions && actions.length === 1)) {
|
||||
this.raiseError(`Should find exactly one codefix, but ${actions ? actions.length : "none"} found. ${actions ? actions.map(a => `"${a.description}"`).join(", ") : "" }`);
|
||||
this.raiseError(`Should find exactly one codefix, but ${actions ? actions.length : "none"} found. ${actions ? actions.map(a => `\r\n "${a.description}"`) : "" }`);
|
||||
}
|
||||
index = 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user