Skip to content

Commit dc1ff7f

Browse files
committed
Fixed output display
Signed-off-by: Seb Julliand <[email protected]>
1 parent bad8881 commit dc1ff7f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/ui/actions.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,11 +541,17 @@ export async function runAction(instance: Instance, uris: vscode.Uri | vscode.Ur
541541
const now = new Date();
542542
const resultsPanel = new CustomUI();
543543
if (targets.length === 1) {
544-
resultsPanel.addParagraph(`<pre><code>${targets[0].output.join("")}</code></pre>`)
545-
.setOptions({ fullPage: true });
544+
resultsPanel.addParagraph(`<pre>${targets[0].output.join("")}</pre>`)
545+
.setOptions({ fullPage: true ,
546+
css: /* css */ `
547+
pre{
548+
background-color: transparent;
549+
}
550+
`
551+
});
546552
}
547553
else {
548-
resultsPanel.addBrowser("results", targets.filter(target => target.processed).map(target => ({ label: `${getTargetResultIcon(target)} ${path.basename(target.uri.path)}`, value: `<pre><code>${target.output.join("")}</code></pre>` } as TreeListItem)))
554+
resultsPanel.addBrowser("results", targets.filter(target => target.processed).map(target => ({ label: `${getTargetResultIcon(target)} ${path.basename(target.uri.path)}`, value: `<pre>${target.output.join("")}</pre>` } as TreeListItem)))
549555
.setOptions({
550556
fullPage: true,
551557
css: /* css */ `
@@ -557,6 +563,7 @@ export async function runAction(instance: Instance, uris: vscode.Uri | vscode.Ur
557563
558564
pre {
559565
margin: 1em;
566+
background-color: transparent;
560567
}
561568
`
562569
});

0 commit comments

Comments
 (0)