Repository: denoland/deno (language: rust)

Issue:
Feat: Strongly type `compilerOptions.lib`
Right now the schema types it as `string` so you get no autocompletion when adding a value to `compilerOptions.lib`, even though only specific strings are allowed.

```jsonc
{
  "compilerOptions": {
    "lib": ["deno.window", ] // <-- no autocompletion
  }
}
```


Discussion / hints:

Fix patch:
diff --git a/cli/schemas/config-file.v1.json b/cli/schemas/config-file.v1.json
index cf2ad3cb3ddb84..3bf53b3099769c 100644
--- a/cli/schemas/config-file.v1.json
+++ b/cli/schemas/config-file.v1.json
@@ -111,7 +111,35 @@
           "uniqueItems": true,
           "default": ["deno.window"],
           "items": {
-            "type": "string"
+            "type": "string",
+            "examples": [
+              "deno.ns",
+              "deno.window",
+              "deno.worker",
+              "deno.unstable",
+              "dom",
+              "dom.iterable",
+              "dom.asynciterable",
+              "webworker",
+              "webworker.importscripts",
+              "webworker.iterable",
+              "webworker.asynciterable",
+              "scripthost",
+              "decorators",
+              "decorators.legacy",
+              "es5",
+              "es2015",
+              "es2016",
+              "es2017",
+              "es2018",
+              "es2019",
+              "es2020",
+              "es2021",
+              "es2022",
+              "es2023",
+              "es2024",
+              "esnext"
+            ]
           },
           "markdownDescription": "Specify a set of bundled library declaration files that describe the target runtime environment.\n\nSee more: https://www.typescriptlang.org/tsconfig#lib"
         },


Test patch: