mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-27 13:16:59 +00:00
1.3 KiB
1.3 KiB
applyTo
| applyTo |
|---|
| **/*.ts |
VS Code Copilot Development Instructions for TypeScript
You MUST check compilation output before running ANY script or declaring work complete!
- ALWAYS check the "Core - Build" task output for compilation errors
- ALWAYS check the "Ext - Build" task output for compilation errors
- NEVER run tests if there are compilation errors
- NEVER use
npm run compileto compile TypeScript files, always check task output - FIX all compilation errors before moving forward
TypeScript compilation steps
Typescript compilation errors can be found by running the "Core - Build" and "Ext - Build" tasks:
- Core - Build: Compiles the main VS Code TypeScript sources
- Ext - Build: Compiles the built-in extensions
- These background tasks may already be running from previous development sessions
- If not already running, start them to get real-time compilation feedback
- The tasks provide incremental compilation, so they will automatically recompile when files change
TypeScript validation steps
- Use
scripts/test.sh(orscripts\test.baton Windows) for unit tests (add--grep <pattern>to filter tests) - Use
scripts/test-integration.sh(orscripts\test-integration.baton Windows) for integration tests - Use
npm run valid-layers-checkto check for layering issues