More detailed error logging in Fourslash

This commit is contained in:
Mine Starks
2017-07-10 12:49:47 -07:00
parent 0c40c18e98
commit b6b6d0516e
+1 -1
View File
@@ -2352,7 +2352,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.`);
this.raiseError(`Should find exactly one codefix, but ${actions ? actions.length : "none"} found. ${actions ? actions.map(a => `"${a.description}"`).join(", ") : "" }`);
}
index = 0;
}