Skip to content

Visual Studio Code, rebuilt in Rust

Rust

docs(readme): color the coverage pie green, amber and gray

rokartur6b76246f910d
diff --git a/README.md b/README.md
index f8b70d8abf9..1de7d759bca 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,7 @@ Not a fork of VS Code's TypeScript: this repository holds the port only. Upstrea
**414 of the 433 parts of VS Code 1.147.0 the port covers match upstream 1:1 (95%).** The other 19 work, with open gaps listed below. 154 more are left out on purpose. A part is one upstream folder: a feature, a service or a built-in extension, counted from [port/ledger.md](port/ledger.md).
```mermaid
+%%{init: {"theme": "base", "themeVariables": {"pie1": "#2da44e", "pie2": "#d4a72c", "pie3": "#8c959f", "pieStrokeColor": "#ffffff", "pieOuterStrokeColor": "#ffffff", "pieSectionTextColor": "#ffffff", "pieLegendTextColor": "#8c959f", "pieTitleTextColor": "#8c959f"}}}%%
pie showData
"Matches VS Code 1:1" : 414
"Works, with open gaps" : 19
diff --git a/port/tools/readme-coverage.ts b/port/tools/readme-coverage.ts
index 4ac0ce557bb..fef5f1bd72e 100755
--- a/port/tools/readme-coverage.ts
+++ b/port/tools/readme-coverage.ts
@@ -62,6 +62,7 @@ const lines = [
`**${total.verified} of the ${inScope(total)} parts of VS Code 1.147.0 the port covers match upstream 1:1 (${percent(total)}%).** The other ${inScope(total) - total.verified} work, with open gaps listed below. ${leftOut(total)} more are left out on purpose. A part is one upstream folder: a feature, a service or a built-in extension, counted from [port/ledger.md](port/ledger.md).`,
'',
'```mermaid',
+ `%%{init: {"theme": "base", "themeVariables": {"pie1": "#2da44e", "pie2": "#d4a72c", "pie3": "#8c959f", "pieStrokeColor": "#ffffff", "pieOuterStrokeColor": "#ffffff", "pieSectionTextColor": "#ffffff", "pieLegendTextColor": "#8c959f", "pieTitleTextColor": "#8c959f"}}}%%`,
'pie showData',
` "Matches VS Code 1:1" : ${total.verified}`,
` "Works, with open gaps" : ${inScope(total) - total.verified}`,