Adapt to TypeScript 7 (#325757)

* Adapt TypeScript 7

* Ensure that we always call TS7 from spawnTsgo

* Fix package lock file

* tsc - tsc6

* More tsc -> tsc6

* More TSGO conversion

* More moves from tsgo -> tsc

* Fix tsgo resolving in extension folder

* Call TS7 compiler directly

* Update package-lock.json

* Remove tsc:version again
This commit is contained in:
Dirk Bäumer
2026-07-14 12:34:04 +02:00
committed by GitHub
parent 4e6997ae07
commit 7e4e91cab4
31 changed files with 708 additions and 174 deletions
@@ -321,12 +321,12 @@ The default `VS Code - Build` task now runs three parallel watchers:
| Task | What it does | Script |
|------|-------------|--------|
| **Core - Transpile** | esbuild single-file TS→JS (fast, no type checking) | `watch-client-transpiled``node build/next/index.ts transpile --watch` |
| **Core - Typecheck** | tsgo `noEmit` watch (type errors only, no output) | `watch-clientd``gulp watch-client` (uses `watchTypeCheckTask`) |
| **Core - Typecheck** | tsc `noEmit` watch (type errors only, no output) | `watch-clientd``gulp watch-client` (uses `watchTypeCheckTask`) |
| **Ext - Build** | Extension compilation (unchanged) | `watch-extensionsd` |
### Key Changes
- **`build/lib/compilation.ts`**: `ICompileTaskOptions` gained `noEmit?: boolean`. `watchTypeCheckTask()` runs the tsgo type-checker in watch mode with `noEmit: true`.
- **`build/lib/compilation.ts`**: `ICompileTaskOptions` gained `noEmit?: boolean`. `watchTypeCheckTask()` runs the tsc type-checker in watch mode with `noEmit: true`.
- **`build/gulpfile.ts`**: `watchClientTask` is now `task.parallel(compilation.watchTypeCheckTask('src'), ...)` — no `rimraf('out')` (the transpiler owns that), no JS emit.
- **`build/next/index.ts`**: Watch mode emits `Starting transpilation...` / `Finished transpilation with N errors after X ms` for VS Code problem matcher.
- **`.vscode/tasks.json`**: Old "Core - Build" split into "Core - Transpile" + "Core - Typecheck" with separate problem matchers (owners: `esbuild` vs `typescript`).