Skip to content

Commit 99ac060

Browse files
committed
Use a color that is theme-specific for the worksheet output
This way we can be sure that our output is readable in all themes.
1 parent 0ec624a commit 99ac060

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vscode-dotty/src/worksheet.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,10 @@ class Worksheet implements Disposable {
193193
contentText: text,
194194
margin: `0px 0px 0px ${margin}ch`,
195195
fontStyle: "italic",
196-
color: "light gray",
196+
// It would make more sense to use the colors of commments in the
197+
// current theme, but there's no API to access this currently
198+
// (https://github.com/Microsoft/vscode/issues/32813).
199+
color: new vscode.ThemeColor("terminal.ansiGreen"),
197200
}
198201
})
199202
}

0 commit comments

Comments
 (0)