Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions apps/vscode-extension/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@
- Bubble charts rested their smallest bubble on the table and sank their axes up to 0.6 m into it. The lowest of the bubbles and the axes now rests on the table.
- Pie and donut charts stand up to 2 m tall (they were about 1.3 m), so their sectors and labels are readable from the controller position.
- A live re-analysis no longer undoes a remap you made while the charts were refreshing, and a second chart change made in project evolution while the first is applied is no longer ignored.
- **Long analyses can be cancelled, time out, and no longer block a mode for the rest of the session.** Project evolution, historical comparison and the dependency graph now run as jobs that can be stopped:
- A movie or a comparison that is generating can be stopped with **Cancel** (the Clear movie / Compare button while it runs). The Git and Python processes it started are killed, its result is discarded, and the previous movie or comparison is kept.
- **Clear movie** no longer races a generation: a running generation is cancelled and waited for, so a movie can no longer reappear right after it was cleared.
- **Leaving project evolution no longer deletes the movie** or stops a generation started by someone else in the room; only Cancel does.
- A revision whose analysis hangs is stopped after 5 minutes and left out of the movie; a single Git command is stopped after 3 minutes; a whole movie after 30 minutes, a comparison after 15 and a dependency analysis after 10. Before, one stuck revision kept the mode "already running" until VS Code was reloaded.
- A double click on Generate or Compare, or two participants starting at once, no longer shows an error to everyone while the first job runs: "already running" goes only to the person who asked. A participant who joins mid-job sees it running.
- A cancelled analysis is no longer recorded as "this revision has no data", which hid that commit from both Git pickers until the session ended.
- Git-history exports no longer wait forever on one file: a file analysis is stopped after 2 minutes and retried once, and a Python worker that is slow to start (antivirus on Windows) reduces the number of workers instead of failing the export.
- A source file of the XR chart-mapping runtime contained a raw control character typed into a string. Behaviour was correct, but the file was invisible to code search and review tools. It now uses the equivalent escape sequence; the runtime value is identical.

## [1.2.0] - 2026-07-30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,13 @@ Closing a comparison removes datasources, charts, listeners, controllers and
comparison geometry. The service deletes its temporary snapshots on disposal
and clears its in-memory cache.

A comparison is a job on the extension host (1.2.1) with a 15-minute deadline,
a 5-minute watchdog per side and a 3-minute one per Git command. While it runs,
the `Compare` button reads `Cancel`: it stops the comparison for the whole room,
kills its Git and Python processes and keeps the previous comparison. A second
start is answered `busy` to that participant only, and the live-refresh flag
follows the request that succeeded, not the one that was asked.

## Testing performed

Automated coverage checks:
Expand Down
21 changes: 21 additions & 0 deletions apps/vscode-extension/docs/features/PROJECT_EVOLUTION_XR.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,27 @@ Project Evolution entity, hides the movie chart, and resets every connected
client to the empty Project Evolution panel. It does not delete the normal
analysis `data.json`.

### Cancel, Clear and leaving the mode (1.2.1)

Generating a movie is a job on the extension host with an id, a state
(`queued`, `running`, `cancelled`, `failed`, `done`) and a 30-minute deadline;
each revision's analysis also has its own 5-minute watchdog, and each Git
command a 3-minute one. While a movie is being generated the `Clear movie`
button reads `Cancel`:

- **Cancel** stops the generation for the whole room: it kills the running Git
and Python processes, discards anything the job would still produce, and
keeps the movie generated before it.
- **Clear movie** deletes the current movie. If a generation is running, it is
cancelled and waited for first, so no late movie can appear after the clear.
- **Leaving the mode** changes nothing on the server: the generation goes on
for the room and its movie appears when it is ready.

A second Generate while one runs is answered `busy` to that participant only.
A participant who opens the panel mid-generation sees the room's job (the
references reply carries its state). A revision whose analysis times out is
discarded like any other unusable revision; the movie is built from the rest.

## Architecture

`ProjectEvolutionService` reuses the local Git snapshot materialization used by
Expand Down
2 changes: 1 addition & 1 deletion apps/vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@
"typecheck": "node ../../node_modules/typescript/bin/tsc --noEmit --incremental false -p tsconfig.check.json && node ../../node_modules/typescript/bin/tsc --incremental false -p tsconfig.tooling.json",
"compile-tests": "node -e \"require('fs').rmSync('out',{recursive:true,force:true})\" && node ../../node_modules/typescript/bin/tsc -p . --outDir out",
"watch-tests": "node ../../node_modules/typescript/bin/tsc -p . -w --outDir out",
"lint": "node ../../node_modules/eslint/bin/eslint.js src test scripts templates webpack.config.js eslint.config.mjs --max-warnings 155",
"lint": "node ../../node_modules/eslint/bin/eslint.js src test scripts templates webpack.config.js eslint.config.mjs --max-warnings 154",
"test": "npm run test:basic",
"test:basic": "npm run typecheck && npm run lint && npm run compile-tests && npm run test:unit",
"test:unit": "node test/runners/run-node-tests.cjs",
Expand Down
Loading
Loading