Add js/ts.implicitProjectConfig.strict setting for implicit projects

- Add strict property to ImplicitProjectConfiguration class
- Update inferredProjectCompilerOptions to handle strict setting
- Add configuration setting to package.json with default true
- Add localization string for the new setting
- Create unit tests for the new functionality

This enables strict mode by default in implicit JS/TS projects, aligning with TS 6.0.

Co-authored-by: mjbvz <12821956+mjbvz@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-14 00:35:19 +00:00
parent 5bccc90412
commit 822232673f
6 changed files with 139 additions and 0 deletions

View File

@@ -86,6 +86,7 @@
"configuration.implicitProjectConfig.experimentalDecorators": "Enable/disable `experimentalDecorators` in JavaScript files that are not part of a project. Existing `jsconfig.json` or `tsconfig.json` files override this setting.",
"configuration.implicitProjectConfig.strictNullChecks": "Enable/disable [strict null checks](https://www.typescriptlang.org/tsconfig#strictNullChecks) in JavaScript and TypeScript files that are not part of a project. Existing `jsconfig.json` or `tsconfig.json` files override this setting.",
"configuration.implicitProjectConfig.strictFunctionTypes": "Enable/disable [strict function types](https://www.typescriptlang.org/tsconfig#strictFunctionTypes) in JavaScript and TypeScript files that are not part of a project. Existing `jsconfig.json` or `tsconfig.json` files override this setting.",
"configuration.implicitProjectConfig.strict": "Enable/disable [strict mode](https://www.typescriptlang.org/tsconfig#strict) in JavaScript and TypeScript files that are not part of a project. Existing `jsconfig.json` or `tsconfig.json` files override this setting.",
"configuration.suggest.jsdoc.generateReturns": "Enable/disable generating `@returns` annotations for JSDoc templates.",
"configuration.suggest.autoImports": "Enable/disable auto import suggestions.",
"configuration.preferGoToSourceDefinition": "Makes `Go to Definition` avoid type declaration files when possible by triggering `Go to Source Definition` instead. This allows `Go to Source Definition` to be triggered with the mouse gesture.",