From b6b6d0516eb3971bf55f869bb99dc919da5b97b6 Mon Sep 17 00:00:00 2001 From: Mine Starks Date: Mon, 10 Jul 2017 12:49:47 -0700 Subject: [PATCH] More detailed error logging in Fourslash --- src/harness/fourslash.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/harness/fourslash.ts b/src/harness/fourslash.ts index 04fc21e60e0..fc8299f57e9 100644 --- a/src/harness/fourslash.ts +++ b/src/harness/fourslash.ts @@ -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; }