mirror of
https://github.com/denoland/deno.git
synced 2025-07-29 08:04:00 +00:00
Respect NO_COLOR in TypeScript output (#1736)
This commit is contained in:
parent
fe8c5d358b
commit
1e837f3281
3 changed files with 9 additions and 4 deletions
|
@ -308,6 +308,9 @@ const tsMock = {
|
|||
createLanguageService() {
|
||||
return {} as any;
|
||||
},
|
||||
formatDiagnostics(diagnostics: ReadonlyArray<any>, _host: any): string {
|
||||
return JSON.stringify(diagnostics.map(({ messageText }) => messageText));
|
||||
},
|
||||
formatDiagnosticsWithColorAndContext(
|
||||
diagnostics: ReadonlyArray<any>,
|
||||
_host: any
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue