From f7a08ef0ff6734ff023efe6a13a66df8ebec0e5b Mon Sep 17 00:00:00 2001 From: Patrick Roza Date: Wed, 2 Oct 2024 19:32:08 +0200 Subject: [PATCH] dx: add watch task to expose all compile errors to vscode, including not open files. --- .vscode/tasks.json | 30 ++++++++++++++++++++++++++++++ packages/platform/src/Headers.ts | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000000..bda5ef7b5c0 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,30 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Watch", + "type": "shell", + "command": "pnpm check -w", + "options": { + "cwd": "${workspaceRoot}" + }, + "group": { + "kind": "build", + "isDefault": true + }, + "isBackground": true, + "presentation": { + "group": "watch-build" + }, + "problemMatcher": [ + { + "base": "$tsc-watch", + "fileLocation": [ + "relative", + "${workspaceRoot}", + ], + } + ] + } + ] +} diff --git a/packages/platform/src/Headers.ts b/packages/platform/src/Headers.ts index 844c751552c..36129a76031 100644 --- a/packages/platform/src/Headers.ts +++ b/packages/platform/src/Headers.ts @@ -36,7 +36,7 @@ export const isHeaders = (u: unknown): u is Headers => Predicate.hasProperty(u, */ export interface Headers { readonly [HeadersTypeId]: HeadersTypeId - readonly [key: string]: string + readonly [key: string]: Redacted.Redacted | string } const Proto = Object.assign(Object.create(null), {