mirror of
https://github.com/cline/cline.git
synced 2026-09-19 10:13:34 +08:00
The nightly CI 'Unit Tests with coverage - Linux' step (npm run test:unit) failed in ts-node compilation: state-keys.ts: Module 'vscode' has no exported member 'LanguageModelChatSelector' This surfaced as a misleading 'Cannot find package @shared/...' ERR_MODULE_NOT_FOUND: Mocha tried require() first (which threw the ts-node TSError), then fell back to import(), whose ESM resolver cannot resolve the @shared/* path alias. tsconfig.unit-test.json is driven by ts-node, which defaults to files:false and compiles modules on demand from their imports. The loose ambient augmentation in src/types/vscode-language-model.d.ts was therefore never loaded, so state-keys.ts failed to compile. Set ts-node.files=true and add src/types/**/*.d.ts to include so the augmentation is part of the unit-test program. Mirrors the earlier tsconfig.test.json fix for the separate build toolchain.
The file is empty.