Visual Studio Code, rebuilt in Rust
Rust
docs(ledger): record the tests that fail under load as gaps
rokarturb552b8e1ae1d
diff --git a/README.md b/README.mdindex e775651ffee..b6804b156dd 100644--- a/README.md+++ b/README.md@@ -11,8 +11,8 @@ Coverage of VS Code 1.147.0, from [port/ledger.md](port/ledger.md) (584 rows). V```mermaidpie showData- "verified" : 418- "ported" : 12+ "verified" : 415+ "ported" : 15"removed" : 126"n/a" : 28```@@ -20,18 +20,18 @@ pie showData| area | verified | ported | removed | n/a | verified of in scope ||---|---:|---:|---:|---:|---|| src/vs/platform | 69 | 0 | 30 | 13 | `████████████████████ 100%` |-| workbench contribution | 66 | 2 | 30 | 3 | `███████████████████░ 97%` |+| workbench contribution | 65 | 3 | 30 | 3 | `███████████████████░ 96%` || built-in extension | 88 | 1 | 6 | 0 | `████████████████████ 99%` || MainThread* shape (Rust side) | 58 | 1 | 30 | 0 | `████████████████████ 98%` || workbench service | 59 | 6 | 23 | 7 | `██████████████████░░ 91%` |-| src/vs/editor/contrib | 54 | 0 | 2 | 1 | `████████████████████ 100%` |+| src/vs/editor/contrib | 52 | 2 | 2 | 1 | `███████████████████░ 96%` || workbench part | 10 | 1 | 2 | 0 | `██████████████████░░ 91%` || extension host seam | 7 | 0 | 0 | 0 | `████████████████████ 100%` || cross-cutting check | 5 | 0 | 0 | 0 | `████████████████████ 100%` || src/vs/editor | 1 | 1 | 1 | 1 | `██████████░░░░░░░░░░ 50%` || src/vs/base | 0 | 0 | 2 | 3 | `████████████████████ 100%` || port feature | 1 | 0 | 0 | 0 | `████████████████████ 100%` |-| **all** | **418** | **12** | **126** | **28** | `███████████████████░ 97%` |+| **all** | **415** | **15** | **126** | **28** | `███████████████████░ 97%` |<!-- coverage:end -->`removed` are parts left out by decision: AI features, Microsoft services, telemetry, remote and tunnels ([port/notes.md](port/notes.md)). `n/a` are upstream test infrastructure and the Electron process, IPC and DOM layers the native architecture replaces.diff --git a/port/ledger.md b/port/ledger.mdindex 8849895d4f3..fd1b58f0b2b 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -321,7 +321,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| editor/contrib/insertFinalNewLine | src/vs/editor/contrib | M8 | verified | | `OpenEditor::insert_final_new_line` in `editor/indentation.rs`, `editor.action.insertFinalNewLine` (writable): cargo test -p app insert_final_new_line; ui-pair notes.txt through the Command Palette || editor/contrib/lineSelection | src/vs/editor/contrib | M8 | verified | | Expand Line Selection (Cmd+L, palette): cargo test -p app expand_line_selection (lineSelection.test.ts); ui-pair notes.txt Cmd+L twice and on the last line || editor/contrib/linesOperations | src/vs/editor/contrib | M8 | verified | | `editor/lines_operations.rs`: copy, move, duplicate, sort, delete duplicates, reverse, delete, indent/outdent, insert line above/below, delete all left/right, join, transpose and the seven case transforms, with their keys, Selection menu rows and palette entries; cargo test -p app editor::lines_operations line_operation_keys (copyLinesCommand, moveLinesCommand, sortLinesCommand and linesOperations tests); ui-pair Alt+Down, Shift+Alt+Down, Ctrl+J match the reference; moved lines reindent by the indentation and onEnter rules (`editor.autoIndent`) |-| editor/contrib/linkedEditing | src/vs/editor/contrib | M13 | verified | | `editor.linkedEditing` / `editor.renameOnType`, the providers' ranges at the cursor with `editor.linkedEditingBackground` (an empty range a 1px box, `min-width: 1px`), typing in the reference range mirrored into the others in the same undo group, the word pattern check, Shift+Cmd+F2, Escape, `_executeLinkedEditingProvider`, the delay learned from the providers' answer times (languageFeatureDebounce.ts as language_feature_debounce.rs) (workbench/linked_editing.rs): cargo test -p app linked_editing language_feature_debounce (8); ui-pair a.html `<div></div>`, Right Right, type x: both tags `dxiv` with the red background as the reference |+| editor/contrib/linkedEditing | src/vs/editor/contrib | M13 | ported | [3 S] linked_editing/tests.rs:113: the_delay_follows_the_providers_answer_time fails under load in large workbench:: runs (passes alone, 3 of 3 reruns) | `editor.linkedEditing` / `editor.renameOnType`, the providers' ranges at the cursor with `editor.linkedEditingBackground` (an empty range a 1px box, `min-width: 1px`), typing in the reference range mirrored into the others in the same undo group, the word pattern check, Shift+Cmd+F2, Escape, `_executeLinkedEditingProvider`, the delay learned from the providers' answer times (languageFeatureDebounce.ts as language_feature_debounce.rs) (workbench/linked_editing.rs): cargo test -p app linked_editing language_feature_debounce (8); ui-pair a.html `<div></div>`, Right Right, type x: both tags `dxiv` with the red background as the reference || editor/contrib/links | src/vs/editor/contrib | M13 | verified | | links of every provider plus the worker link computer, underline, active link color and pointer with the trigger modifier, click and middle click open, hover message, `editor.action.openLink`, `_executeLinkProvider` (workbench/links.rs): cargo test -p app links::; ui-pair d.md: the `https://example.com` link underlined in the link color as in the reference (port/results/language-features.md Links) || editor/contrib/longLinesHelper | src/vs/editor/contrib | M8 | verified | | `stopRenderingLineAfter` (10000) cuts a line with the "Show more (N)" span (viewLineRenderer.ts, editor.rs `line_overflow`); a press at or past the cut renders every line whole (editor_view.rs `show_long_line`); reveal past the cut, the span's scroll width and the content width of a fully drawn file (`_updateLineWidths`): cargo test -p app long_lines, cargo test -p app show_more_span; ui-pair long.txt End, click on the span || editor/contrib/message | src/vs/editor/contrib | M8 | verified | | `workbench/editor_message.rs`: message box with links above or below the cursor, its close rules and Escape (`leaveEditorMessage`); the message reaches the alert live region; messageController.test.ts covers Markdown images, which the port's plain messages do not have; cargo test -p app readonly; ui-pair ro.txt type, Escape, Delete, Down |@@ -332,7 +332,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| editor/contrib/placeholderText | src/vs/editor/contrib | M8 | n/a | | the workbench text editor never sets `placeholder` and it is not a setting; only embedded editors do (comment reply, chat, SCM input), the port has none (port/notes.md milestone 8) || editor/contrib/quickAccess | src/vs/editor/contrib | M9 | verified | | gotoLineQuickAccess and editorNavigationQuickAccess (`workbench/quick_access/goto_line.rs`): cargo test -p app go_to_line positions_parse (both gotoLineQuickAccess.test.ts cases, relative line numbers shown as on while open); gotoSymbolQuickAccess (`workbench/quick_access/goto_symbol.rs`): cargo test -p app quick_access::goto_symbol; `gotoLocation` opens to the side on Alt, Cmd with pinned editors, or the Open to the Side item button (cargo test -p app alt_enter_and_the_side_button_open_the_position_to_the_side) and reads `Line {0}, column {1}: {2}` to the aria status live region (go_to_line_previews_the_line_and_restores_the_view_on_escape) || editor/contrib/readOnlyMessage | src/vs/editor/contrib | M8 | verified | | a cursor edit in a read-only editor shows the reason (session, settings, permissions) with its `command:` links; cargo test -p app readonly; ui-pair ro.txt matches the reference |-| editor/contrib/rename | src/vs/editor/contrib | M13 | verified | | F2 with `$resolveRenameLocation`, rename input, `$provideRenameEdits` with provider fallback, `_executeDocumentRenameProvider`, `_executePrepareRename` (workbench/rename.rs): cargo test -p app rename:: (7); ui-pair F2, type, Enter on a.ts matches the reference input and the renamed text and caret. `acceptRenameInputWithPreview` (Cmd+Enter, `editor.rename.enablePreview`) and edits that need confirmation go through the Refactor Preview; the workspace edit's text, file and cell edits run in order in one undo group (`BulkEdit.perform`): cargo test -p app cmd_enter_previews_the_edit_and_apply_runs_its_file_and_text_edits; ui-pair F2 on src/main.ts: the `Enter to Rename, ⌘Enter to Preview` label and the 210x50.2 box match the reference (287 px differ at 10% fuzz in a 700x140 crop, anti-aliasing) |+| editor/contrib/rename | src/vs/editor/contrib | M13 | ported | [3 S] rename/tests.rs: no_result_falls_back_to_the_next_provider_then_an_info_notification fails under load in large editor:: workbench:: runs (passes alone) | F2 with `$resolveRenameLocation`, rename input, `$provideRenameEdits` with provider fallback, `_executeDocumentRenameProvider`, `_executePrepareRename` (workbench/rename.rs): cargo test -p app rename:: (7); ui-pair F2, type, Enter on a.ts matches the reference input and the renamed text and caret. `acceptRenameInputWithPreview` (Cmd+Enter, `editor.rename.enablePreview`) and edits that need confirmation go through the Refactor Preview; the workspace edit's text, file and cell edits run in order in one undo group (`BulkEdit.perform`): cargo test -p app cmd_enter_previews_the_edit_and_apply_runs_its_file_and_text_edits; ui-pair F2 on src/main.ts: the `Enter to Rename, ⌘Enter to Preview` label and the 210x50.2 box match the reference (287 px differ at 10% fuzz in a 700x140 crop, anti-aliasing) || editor/contrib/sectionHeaders | src/vs/editor/contrib | M8 | verified | | `findSectionHeaders` with the upstream tests (editor/section_headers.rs): cargo test -p app section_headers; minimap labels with the `editor.minimap` showRegionSectionHeaders, showMarkSectionHeaders, markSectionHeaderRegex, sectionHeaderFontSize and sectionHeaderLetterSpacing settings (workbench/minimap_view.rs); found on the UI thread per model version, not in the editor worker (port/notes.md milestone 8) || editor/contrib/semanticTokens | src/vs/editor/contrib | M13 | verified | | token classification, theme `semanticTokenColors` and `semanticHighlighting`, `editor.semanticTokenColorCustomizations`, DTO decoding and deltas (semantic_tokens.rs: cargo test -p app semantic_tokens, the tokenStyleResolving, semanticTokensDto and semanticTokensProviderStyling tests); document and viewport providers, `editor.semanticHighlighting.enabled`, styles over the TextMate tokens, the `_provide*SemanticTokens*` commands, both debounces learned from the answer times (semantic_tokens::tests::the_document_delay_follows_the_providers_answer_time), the reset on a language change and a theme-only refetch (a_language_change_drops_the_tokens_and_asks_again, a_setting_change_that_keeps_coloring_on_keeps_the_tokens) (workbench/semantic_tokens.rs: cargo test -p app workbench::semantic_tokens); ui-pair f.ts: the readonly `value` is #4FC1FF in both (TextMate alone gives #9CDCFE) (port/results/language-features.md Semantic tokens and language status); the tokens live on each text model, a hidden model keeps them and is not asked (a_model_shown_again_keeps_its_tokens) || editor/contrib/smartSelect | src/vs/editor/contrib | M8 | verified | [scheduling L] minimap.rs:87; minimap_view.rs:432; unicode_highlight.rs:63; indentation.rs:43; comment.rs:45; smart_select.rs:292: sticky minimap sampling, worker section headers and unicode highlights, tokenizeIfCheap, the 30 ms smart select yield. Accepted as "Scheduling differences" only with a measured same result and typing on a 50k-line TS file under 16 ms per edit; otherwise class 3. Audit inputs at 5e5b1b0a915. | Expand and Shrink Selection (Ctrl+Shift+Right/Left, Selection menu, palette, `editor.smartSelect.*`) over the word and bracket providers: cargo test -p app smart_select (19, all 14 smartSelect.test.ts cases, #73850 on the whitespace step alone; `getWordAtText` with its 15-char windows and 1000-char cut: the_pattern_word_at); extension `SelectionRangeProvider`s replace the bracket ranges and `_executeSelectionRangeProvider` (workbench/selection_ranges.rs): cargo test -p app selection_ranges (2) |@@ -537,7 +537,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| workbench/contrib/sessionChanges | workbench contribution | | removed | | no AI or Microsoft services by decision (port/notes.md); API stays inert || workbench/contrib/sessions | workbench contribution | | removed | | no sign-in/AI by decision (port/notes.md); not ported || workbench/contrib/share | workbench contribution | | removed | | no AI or Microsoft services by decision (port/notes.md); API stays inert |-| workbench/contrib/snippets | workbench contribution | M13 | verified | | SnippetBodyInsights: `codeSnippet` turns unknown variables into placeholders, `isBogous` logs `badVariableUse` when developing extensions (cargo test -p app bogus_variables_become_placeholders_in_the_code_snippet, snippetsRewrite.test.ts). snippets.rs (snippetsFile.ts, snippetsService.ts filtering and extension contributions, snippetCompletionProvider.ts) and workbench/snippet_completions.rs: extension, user and workspace snippet files in the suggest widget, usage timestamps; workbench/snippet_actions.rs: Insert Snippet (by name, body or picker with the Hide from IntelliSense buttons), Surround with Snippet..., Fill File with Snippet, Configure Snippets with the new-file name input, the Surround With and file template code actions with `editor.snippets.codeActions.enabled`; workbench/tab_completion.rs: `editor.tabCompletion` `onlySnippets` with `hasSnippetCompletions`: cargo test -p app -- snippet tab_completion suggest (87 passed). the `vscode://schemas/snippets` and `global-snippets` schemas (config json_schema.rs): ui-pair a.code-snippets `Incorrect type. Expected one of string, array.` as in the reference (port/results/language-features.md Snippets file schema) |+| workbench/contrib/snippets | workbench contribution | M13 | ported | [3 S] snippet_actions/tests.rs: snippets_insert_by_name_or_body_and_surround_the_selection fails under load in large editor:: workbench:: runs (passes alone) | SnippetBodyInsights: `codeSnippet` turns unknown variables into placeholders, `isBogous` logs `badVariableUse` when developing extensions (cargo test -p app bogus_variables_become_placeholders_in_the_code_snippet, snippetsRewrite.test.ts). snippets.rs (snippetsFile.ts, snippetsService.ts filtering and extension contributions, snippetCompletionProvider.ts) and workbench/snippet_completions.rs: extension, user and workspace snippet files in the suggest widget, usage timestamps; workbench/snippet_actions.rs: Insert Snippet (by name, body or picker with the Hide from IntelliSense buttons), Surround with Snippet..., Fill File with Snippet, Configure Snippets with the new-file name input, the Surround With and file template code actions with `editor.snippets.codeActions.enabled`; workbench/tab_completion.rs: `editor.tabCompletion` `onlySnippets` with `hasSnippetCompletions`: cargo test -p app -- snippet tab_completion suggest (87 passed). the `vscode://schemas/snippets` and `global-snippets` schemas (config json_schema.rs): ui-pair a.code-snippets `Incorrect type. Expected one of string, array.` as in the reference (port/results/language-features.md Snippets file schema) || workbench/contrib/speech | workbench contribution | | removed | | no AI or Microsoft services by decision (port/notes.md); API stays inert || workbench/contrib/splash | workbench contribution | M19 | n/a | | partsSplash.ts stores the parts' layout and colors so Electron can paint them before the workbench loads; the GPUI window's first frame is the workbench, drawn from the theme || workbench/contrib/surveys | workbench contribution | | removed | | no AI or Microsoft services by decision (port/notes.md); API stays inert |diff --git a/port/notes.md b/port/notes.mdindex 5a0af0a961c..81adc6c621d 100644--- a/port/notes.md+++ b/port/notes.md@@ -901,7 +901,7 @@ Scope as in the M19 Work row of port/ledger.md.- `code --status` (platform/diagnostics): the running instance answers `getMainDiagnostics` over the launch socket (`{"status": true}`): its pid and arguments, each window's id, title and folders, the extension hosts as `extension-host [n]` numbered in pid order (the port does not keep a host's pid per window), and whether VoiceOver is attached. The second instance prints `getDiagnostics` (diagnostics.rs: environment, process tree from ps.rs, workspace stats of each folder with the upstream file type, config file and launch configuration counts) or, with no instance, the upstream warning. No GPU status lines: GPUI has no Chromium GPU feature list, so `GPU Status:` is empty as `expandGPUFeatures({})` prints. cargo test -p app diagnostics::tests launch::.- vscode-api-tests, whole folder suite without the suites of removed features and notebooks (`MOCHA_GREP='^(?!(chat|lm |vscode API - browser|Notebook|ipynb|Interactive Window))'`): 274 passing, 17 pending, 7 failing in 252 s; api-workspace 4/0/0. The suite now runs to its end. Failing: `env.remoteName` (asserts `vscode.github-authentication` is installed, a sign-in extension removed by decision), `Tabs - Ensure tabs getter is correct` (notebooks, session m17b), the two `network proxy support` tests (`$loadCertificates`, `$lookupAuthorization` not answered), and three CustomExecution task tests that time out in the full run.- Proxy requests of MainThreadWorkspace (workbench/proxy_auth.rs): `$loadCertificates` answers the keychain certificates of `security find-certificate -a -p` (proxy-agent's `readMacCaCertificates`) without the expired ones (`filterExpiredCertificates`; the host asks only with `http.systemCertificatesNode` off, else it reads them itself), `$lookupAuthorization` answers auth.ts's credentials: an extension test run's realm, else the `http.proxy` or proxy variable user info until the proxy rejects it. Not ported: the proxy login dialog and its stored credentials (shortcut in the file). `vscode API - network proxy support`: basic auth passes on Bun and Node; custom root certificate passes on both: Bun 1.4.5's `tls.connect` builds its secure context without calling `tls.createSecureContext`, where proxy-agent adds the `_vscodeAdditionalCaCerts` of `http.systemCertificates` (and the tests' `testCertificates`), so on Bun the host's patched `tls.connect` builds that context itself (proxyResolver.ts `addBunSecureContext`, gated on `process.versions.bun`).-- Flaky under load, open, not diagnosed: `workbench::snippet_actions::tests::snippets_insert_by_name_or_body_and_surround_the_selection` and `workbench::rename::tests::no_result_falls_back_to_the_next_provider_then_an_info_notification` failed once each in large `editor:: workbench::` runs and pass alone and in repeated filtered runs. The accessibility test with the same symptom read the wall clock (`c58d7539460`); look for timing in these first. They belong to milestone 20's verification.+- Tests that fail under load are ledger gaps on their rows. The accessibility test with the same symptom read the wall clock (`c58d7539460`); look for timing in them first.- `workbench.action.tasks.runTask` with a name or identifier the tasks resolve runs the task directly (`_runTaskCommand` calls `this.run(task)` without `attachProblemMatcher`); the port showed the problem matcher picker for a name, which left the CustomExecution tests started by `runTask` waiting.- MainThread* methods answering `undefined` (exthost/session.rs fallback and the forwarded proxies' `_ =>` arms), audited against extHost.protocol.ts 1.147.0: the ones an extension observes are gap entries of their MainThread* rows in port/ledger.md. The rest by reason: proposals no built-in enables (`$createNotebookExecution`, `$beginNotebookExecution`, `$completeNotebookExecution`, kernel detection tasks and source actions, `$variablesUpdated`, debug visualizers, structural diff, new symbol names, inline completion model and option events); consumers removed by decision (canonical URI and edit session identity providers: edit sessions, Authentication, GitHub accounts, chat, language models, MCP, speech, AI search, share, tunnels, browsers, git extension service, label formatters of remote resolvers, profile content handlers, search providers); one extension host (`$activateExtension` of a host extension); the session evaluates `workspaceContains` itself (`$checkExists`); telemetry (`$logResolveTreeNodeFailure`, `$handleTelemetry`); tracked by views rows (`$setWebviewViewBadge`: workbench/contrib/webviewView; `$emitInlineValuesEvent`, evaluatable expressions: workbench/contrib/debug).- workbench/services/sharedProcess and workbench/services/utilityProcess: the port has no shared process and no utility process workers; each channel a kept feature opened to them runs in the app process, checked in its own row. `ISharedProcessService.getChannel`: `extensions` (NativeExtensionManagementService) is exthost/src/extension_management.rs (platform/extensionManagement, port/tools/extensions-check), `extensionGalleryManifest` is the Open VSX gallery (gallery/open-vsx), `extensionTipsService` is app/src/extension_recommendations.rs (platform/extensionRecommendations), `languagePacks` is exthost/src/language_packs.rs (platform/languagePacks), `checksum` is n/a (platform/checksum); `telemetryAppender`, `customEndpointTelemetry`, `userDataSync*`, `userDataAutoSync`, `mcpManagement`, `mcpGalleryManifest`, `remoteTunnel`, `sharedProcessTunnel`, `localGit`, `playwright` and `sharedWebContentExtractor` serve removed features. `IUtilityProcessWorkerWorkbenchService.createWorker`: its one kept client, the universal file watcher of diskFileSystemProvider.ts, is files/src/watcher.rs on an FSEvents thread (platform/files, api-tests `vscode API - workspace-watcher`); localTranscription is AI (removed). `notifyRestored`'s barrier (connect after the Restored phase or 2 s) has nothing to delay: no process starts.