# AGENTS.md

Visual Studio Code

## Setup

```
npm ci
```

## Commands

```
npm run test                                 # run the test suite, must pass before any commit
npm run test-browser
npm run test-browser-no-install
npm run test-node
npm run test-extension
npm run test-build-scripts
npm run test-agent-host-e2e
npm run markdown-editor-package-json-check
```

## Layout

- `src/`        8750 source files
- `extensions/` 3962 source files
- `build/`      238 source files
- `test/`       148 source files
- `cli/`        84 source files
- `scripts/`    39 source files

## Conventions

- Tests live alongside the code they cover, following `.eslint-plugin-local/code-ensure-no-disposables-leak-in-test.ts`.
- CI defines what passing means. See `.github/workflows/chat-lib-package.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- Generated output is committed (`build/`). Search will return the compiled copy, so edit the source, not that.
- `extensions/vscode-colorize-perf-tests/test/colorize-fixtures/test-checker.ts` is 8192KB. It will not fit comfortably in context, so read it in parts.

---

Drafted by agentreadme.com from what is in this repository. Everything marked TODO
needs a human. Check it in as AGENTS.md at the root.
