Repository navigation
Split the README into a user guide and AGENTS.md - #40
Conversation
| Build a `.vsix` as described in [Building](#building), then in VS Code run | ||
| **Extensions: Install from VSIX...** and select the generated file. |
There was a problem hiding this comment.
Just a note (nothing to do now): Eventually we'll change this to just point to the extension marketplace and move this to the "Development" section (called ## Building below). Looks good for now.
|
|
||
| ## Commands | ||
|
|
||
| Requirements: Node.js (>= 20) and npm. |
There was a problem hiding this comment.
FYI, we only test with Node.js v24 in CI. And v24 is the version I run locally, at least. So not sure if this is correct anymore.
There was a problem hiding this comment.
I'll update it to say 24.
| ## Contributing | ||
|
|
||
| See [CONTRIBUTING.md](CONTRIBUTING.md). Build and test with `npm run build` | ||
| and `npm run check`; [AGENTS.md](AGENTS.md) describes the implementation. |
| ```sh | ||
| npm ci # install dependencies from package-lock.json | ||
| npm run build # type check and bundle the extension into out/ | ||
| npm run check # type check and run the unit tests | ||
| npm run package # build and package simics-target-debug-<version>.vsix | ||
| npm ci # install dependencies | ||
| npm run build # type check and bundle the extension | ||
| npm run check # type check and run unit tests | ||
| npm run watch # rebuild on changes | ||
| npm run compile:production # minified bundle without source maps | ||
| npm run package # create a .vsix file | ||
| ``` |
There was a problem hiding this comment.
It's enough for a user to run
npm ci
npm run packageafter a user has cloned the repo for the first time.
The rest is really just development documentation, which you can get help from the AI to understand instead.
There was a problem hiding this comment.
Actually, this section (## Building) is about development. I'd move that to the end of the README (after "Contributing" is now). Most people will probably want to use the extension rather than start building it, and read about its features.
There was a problem hiding this comment.
But right now, before we provide a binary or add it to marketplace, users will have to build it in order to use it.
I agree with minimizing the amount of npm commands shown.
| Build a `.vsix` as described in [Building](#building), then in VS Code run | ||
| **Extensions: Install from VSIX...** and select the generated file. |
There was a problem hiding this comment.
I would change this section so it it doesn't need to point to another section. I think that is easier to read:
| Build a `.vsix` as described in [Building](#building), then in VS Code run | |
| **Extensions: Install from VSIX...** and select the generated file. | |
| Build the `.vsix` by running | |
| ```sh | |
| npm ci | |
| npm run package | |
| ``` | |
| Then in VS Code run | |
| **Extensions: Install from VSIX...** and select the generated file. |
There was a problem hiding this comment.
If I do this I can disregard the comment above about moving development last, right? Building is part of Installation until we can provide a package.
The README had grown to over 800 lines. Most of it explained how the extension works inside, which made it hard for users to find how to install, start and configure it. It is also the extension's Marketplace page. The README now covers only what users need. The source layout, the DAP to TCF mapping and the details of each feature move to AGENTS.md, which coding agents read by default and developers can read too. It also lists the build commands and the conventions of the repo. Signed-off-by: Andreas Ragnerstam <andreas.ragnerstam@intel.com>
b1b5dd6 to
330ae1b
Compare

The README had grown to over 800 lines. Most of it explained how the extension works inside, which made it hard for users to find how to install, start and configure it. It is also the extension's Marketplace page.
The README now covers only what users need. The source layout, the DAP to TCF mapping and the details of each feature move to AGENTS.md, which coding agents read by default and developers can read too. It also lists the build commands and the conventions of the repo.