Skip to content

Visual Studio Code, rebuilt in Rust

Rust

docs(port): close milestones 8 and 11

rokartura64d8b413cee
diff --git a/port/fixtures/ui-pair/m11/activity-focus.json b/port/fixtures/ui-pair/m11/activity-focus.json
new file mode 100644
index 00000000000..84ece80c8c1
--- /dev/null
+++ b/port/fixtures/ui-pair/m11/activity-focus.json
@@ -0,0 +1,12 @@
+[
+ {"wait": 15000},
+ {"hotkey": ["cmd", "shift", "p"], "foreground": true},
+ {"wait": 800},
+ {"type": "Focus Activity Bar"},
+ {"wait": 800},
+ {"key": "return", "foreground": true},
+ {"wait": 1000},
+ {"key": "down", "foreground": true},
+ {"wait": 1000},
+ {"shot": "activity-focus"}
+]
diff --git a/port/ledger.md b/port/ledger.md
index f62b2fc2a96..ac229b81e81 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -22,10 +22,10 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,
| Milestones | M5 edit and save | done | One cursor with selection, the `coreCommands.ts` cursor and delete commands, typing with IME through GPUI's input handler, undo/redo with `editStack.ts` stops, clipboard, save and dirty state; the host hears `$acceptModelChanged`, `$acceptDirtyStateChanged`, `$acceptModelSaved` and selection changes (`editor/cursor.rs`, `editor/edit.rs`, `workbench/text_input.rs`, `host_sync.rs`). | `cargo test -p app` passes with the cursor, edit and host sync tests (including `live_host_takes_edits_and_typescript_sees_the_new_text`); typing in `notes.txt` then Cmd+S writes the file and the tab loses its dirty dot; pixel-check of the three earlier windows unchanged. |
| Milestones | M6 API test harness | done | Run `extensions/vscode-api-tests` against the port, so every later milestone reports a pass count against the reference baseline (`port/results/api-tests-reference.md`: folder 356/46/0, workspace 4/0/0): `--extensionDevelopmentPath` / `--extensionTestsPath` in `code-gpui`, the test runner's exit code reaching the parent, host errors and console forwarded to the port's log, a `port/tools/api-tests` script on the Studio. Open gaps: the gaps column of its unit rows. | `port/tools/api-tests` prints passing/pending/failing per suite for the port and writes them to `port/results/api-tests.md`; the run finishes (failures allowed) without a hang. |
| Milestones | M7 syntax colors and themes | done | TextMate grammars from `contributes.grammars` (vscode-textmate's algorithm, Oniguruma regexes), token colors from the theme's `tokenColors` and `semanticTokenColors`, bracket pair colorization and matching, every built-in color theme including High Contrast Light, `firstLine` language detection. Open gaps: the gaps column of its unit rows. | `port/results/pixels.md` milestone 7 (main window in dark, light, hc and hclight); cargo test -p app syntax:: (colorize_fixtures_match_the_reference: every colorize-tests fixture's scopes and colors) |
-| Milestones | M8 editor viewport and editing commands | in progress | Scrolling (wheel, scrollbar, reveal), real `visibleRanges`, minimap, folding, sticky scroll, multi-cursor, find/replace widget, comment toggling, line operations, smart select, font zoom, the editor context menu. Open gaps: the gaps column of its unit rows. | api-tests `editor.test`, `window.test` (text editor parts) and `documents.test` pass as in the reference; pixel-check gains a scrolled long-file window with minimap and a folded region; `cargo test -p app` folding and multi-cursor tests. |
+| Milestones | M8 editor viewport and editing commands | done | Scrolling (wheel, scrollbar, reveal), real `visibleRanges`, minimap, folding, sticky scroll, multi-cursor, find/replace widget, comment toggling, line operations, smart select, font zoom, the editor context menu. Open gaps: the gaps column of its unit rows. | api-tests `editor.test`, `window.test` (text editor parts) and `documents.test` pass as in the reference; pixel-check gains a scrolled long-file window with minimap and a folded region; `cargo test -p app` folding and multi-cursor tests. |
| Milestones | M9 commands, keybindings, menus, quick input | done | Command registry shared by the workbench and `vscode.commands`, context keys and `when` clauses, keybinding resolution from `contributes.keybindings` and `keybindings.json`, the native macOS menu bar, context menus, hovers, Command Palette and Quick Open (files, symbols, commands, theme picker), title bar and activity bar clicks. Open gaps: the gaps column of its unit rows. | api-tests `commands.test` and `quickInput.test` pass as in the reference; Cmd+Shift+P runs a command contributed by an extension; Cmd+P opens a fixture file; `cargo test -p app` `when`-clause and keybinding resolution tests against upstream cases. |
| Milestones | M10 settings, storage, profiles | done | `settings.json` (user, workspace, folder, language overrides) feeding both the workbench and `vscode.workspace.getConfiguration`, configuration schema from `contributes.configuration`, the Settings editor and JSON settings with schema validation, global and workspace storage on disk, secret storage in the macOS Keychain, profiles, real `environment` in init data. Import from VS Code, Cursor and VSCodium (Artur, port feature with no upstream counterpart): a command and a first-run offer that read each installed editor's user data (`~/Library/Application Support/{Code,Cursor,VSCodium}/User`: settings.json, keybindings.json, snippets, the color and icon theme ids) and its extension list (`~/.vscode/extensions`, `~/.cursor/extensions`, `~/.vscode-oss/extensions`, installed again from Open VSX), show what will be imported, write it into the active profile and skip settings and extensions the port has removed (AI, sign-in, Microsoft services, telemetry, remote). Open gaps: the gaps column of its unit rows. | api-tests `configuration.test` and `state.test` pass as in the reference; a setting changed in `settings.json` reaches an extension's `onDidChangeConfiguration`; storage survives a restart; importing from a fixture VS Code, Cursor and VSCodium user data folder gives the same settings, keybindings, snippets and theme in the port. |
-| Milestones | M11 workbench layout and chrome | in progress | The part grid with sashes and hidden parts, panel and secondary side bar, view containers and collapsible views, tree views from extensions (with the Refactor Preview of workbench/contrib/bulkEdit, which file operation participants open), editor groups and splits, notifications, dialogs (native open/save), progress, banner, status bar entries from extensions, decorations, window lifecycle (close, quit, hot exit backup), multiple windows, focus and inactive look. Open gaps: the gaps column of its unit rows. | api-tests `window.test` (messages, progress, tree views, status bar) pass as in the reference; pixel-check gains a window with panel and split editor; hot exit restores an unsaved buffer after quit. |
+| Milestones | M11 workbench layout and chrome | done | The part grid with sashes and hidden parts, panel and secondary side bar, view containers and collapsible views, tree views from extensions (with the Refactor Preview of workbench/contrib/bulkEdit, which file operation participants open), editor groups and splits, notifications, dialogs (native open/save), progress, banner, status bar entries from extensions, decorations, window lifecycle (close, quit, hot exit backup), multiple windows, focus and inactive look. Open gaps: the gaps column of its unit rows. | api-tests `window.test` (messages, progress, tree views, status bar) pass as in the reference; pixel-check gains a window with panel and split editor; hot exit restores an unsaved buffer after quit. |
| Milestones | M12 files, explorer, search, workspace | done | File system service with watcher (FSEvents) and extension file system providers, Explorer file operations (new, rename, delete to Trash, drag and drop, copy/paste), Seti file icons, numeric name collation, workspace trust, multi-root `.code-workspace`, recent workspaces, text search through ripgrep, search view and search editor, bulk edits, local history, opener and URL handling. Open gaps: the gaps column of its unit rows. | api-tests `workspace.test`, `workspace.fs.test`, `workspace.event.test`, `workspace.tasks` excluded, and the api-workspace suite pass as in the reference; pixel-check folder window with Seti icons (reference captured without `workbench.iconTheme: null`); `cargo test -p app` sorting test with `file9`/`file10`. |
| Milestones | M13 language features | done | Everything `MainThreadLanguageFeatures` registers, drawn by the native editor: completion, hover, signature help, code actions and lightbulb, code lens, inlay hints, go to definition and peek, references, rename, formatting, document symbols and Outline, semantic tokens, semantic word highlight, links, color picker, linked editing, snippets, call and type hierarchy, inline completions from extensions; diagnostics with squiggles and the Problems panel; comments threads; Emmet; the language status item. Open gaps: the gaps column of its unit rows. | api-tests `languages.test`, `languagefeatures.test`-family and `comments` cases pass as in the reference; with `src/main.ts` open TypeScript completion, hover, go to definition and a diagnostic squiggle work (pixel-check window with a squiggle and the suggest widget). |
| Milestones | M14 source control and diff | done | SCM view and input box, quick diff gutter, the diff editor (side by side and inline), multi-file diff, merge editor and merge-conflict decorations, timeline, the git, git-base and github extensions fully working (no sign-in: github features that need a token stay off). Open gaps: the gaps column of its unit rows. | api-tests SCM cases pass as in the reference; with the fixture copied into a git repository the SCM view lists a changed file and opening it shows the diff (pixel-check window). |
diff --git a/port/results/windows.md b/port/results/windows.md
index cea14316fa2..cb0b1f3ffb4 100644
--- a/port/results/windows.md
+++ b/port/results/windows.md
@@ -27,3 +27,13 @@
- `dialogs.json`: `custom-modal` the custom dialog 450px wide with Close Dialog, the detail in `descriptionForeground` and Discard, Cancel, Save (dialog.ts `rearrangeButtons`; before: 480px, no close button, Cancel first); `save-dialog` the NSSavePanel sheet.
- api-tests `MOCHA_GREP="vscode API - window|vscode API - tree" SUITE_TIMEOUT=900 port/tools/api-tests`: api-folder 43 passing, 0 pending, 1 failing, api-workspace 0/0/0. The failing one is `Tabs - Ensure tabs getter is correct` (`openNotebookDocument`, notebooks are milestone 17).
- The Studio's display ran at 1x for part of these runs; ui-pair now reads the pixel scale from its first capture instead of assuming 2x.
+
+## Milestones 8 and 11 close (editor-layout-gaps)
+
+On top of 219f07f8e53, the Studio, release build:
+
+- api-tests `MOCHA_GREP="vscode API - window|vscode API - editor|vscode API - documents" SUITE_TIMEOUT=900 port/tools/api-tests`: api-folder 53 passing, 0 pending, 0 failing; api-workspace 0/0/0. 1.147.0 has no `documents.test.ts`; its document tests are in the window and editors suites.
+- `WINDOWS="folded split panel" THEMES=dark port/tools/pixel-check`: folded 11985, split 8549, panel 12186 different pixels. folded gives the same 11985 with 219f07f8e53's minimap, so the rise from 9729 above comes from earlier work: the port's minimap starts some lines lower than the reference's.
+- ui-pair `port/fixtures/ui-pair/m8/modal-all.json` with `SETTINGS='{"workbench.editor.useModal":"all"}'`: Quick Open's notes.txt opens in the modal part in both, with the same header, actions and size.
+- ui-pair `port/fixtures/ui-pair/m11/activity-focus.json`: Focus Activity Bar, then Down: the unchecked Search item is drawn in `activityBar.foreground` (215 at its brightest pixel in both) and Source Control in `activityBar.inactiveForeground` (134 in both).
+- ui-pair `port/fixtures/ui-steps/hot-exit.json` did not finish: a macOS consent prompt (UserNotificationCenter) on the Studio refused cua-driver's drag. Hot exit rests on the milestone 11 verification above and `cargo test -p app backup_tracker lifecycle` (passing in this run).