Skip to content

Visual Studio Code, rebuilt in Rust

Rust
38.2 KB
Raw Blame

Units: MainThread* shape (Rust side)

Part of the Units table, generated by bun port/tools/gen-ledger.ts; the status and gap legend is in port/ledger.md.

id area milestone status gaps evidence
mainthread/MainThreadGitExtension MainThread* shape (Rust side) M14 removed its only client, IGitService of workbench/contrib/git, serves chat and agent sessions (removed by decision); git's own API runs in the extension host
mainthread/MainThreadClipboard MainThread* shape (Rust side) M8 verified host_requests.rs answers $readText and $writeText with the system clipboard: api-tests MOCHA_GREP="vscode API - editors" (insert snippet with clipboard variables passes)
mainthread/MainThreadCommands MainThread* shape (Rust side) M9 verified api-tests vscode API - commands 6/0/0 in the port/tools/api-tests whole folder suite without removed features and notebooks (port/results/api-tests.md, milestone 20 sweep): api-command: vscode.open and vscode.diff pass with editor groups and _workbench.diff
mainthread/MainThreadComments MainThread* shape (Rust side) M13 verified every MainThreadCommentsShape method (workbench/comments.rs): controllers with their features, threads with CommentThreadChanges, commenting ranges, reveal and hide (cargo test -p app comment); replies run the context menu commands with the CommentThreadReply argument (workbench/comment_thread_widget.rs); ui-pair thread and Comments panel (port/results/language-features.md Comments). The ext host side $createCommentThreadTemplate and $setActiveComment belong to the add-comment flow of workbench/contrib/comments
mainthread/MainThreadAuthentication MainThread* shape (Rust side) removed no sign-in/AI by decision (port/notes.md); API stays inert: session.rs answers undefined, list getters []; exthost-probe 30/30 on Bun and Node
mainthread/MainThreadSecretState MainThread* shape (Rust side) M10 verified port/tools/settings-check secrets same as the reference; cargo test -p exthost main_thread_secret_state (on a throwaway keychain)
mainthread/MainThreadConfiguration MainThread* shape (Rust side) M10 verified api-tests configuration 3/3; port/tools/settings-check configuration (reference fires extra empty events)
mainthread/MainThreadDiagnostics MainThread* shape (Rust side) M13 verified main_thread_commands.rs $changeMany/$clear into markers.rs, $acceptMarkersChange back: api-tests vscode API - languages diagnostics, read & event passes (port/results/api-tests.md M13)
mainthread/MainThreadDiaglogs MainThread* shape (Rust side) M11 verified workbench/file_dialogs.rs: $showOpenDialog, $showSaveDialog (mainThreadDialogs.ts option conversion, default paths) on the native panels of file_dialog.rs; cargo test -p app file_dialog; verified: ui-pair messages.json open-dialog, dialogs.json save-dialog vs the reference (port/results/windows.md, milestone 11 verification): the same NSOpenPanel and NSSavePanel sheets
mainthread/MainThreadDecorations MainThread* shape (Rust side) M11 verified workbench/file_decorations.rs: $registerDecorationProvider, $unregisterDecorationProvider, $onDidChange; $provideDecorations batched per provider each frame; cargo test -p app decorations; verified: ui-pair messages.json vs the reference (port/results/windows.md, milestone 11 verification): the extension's red "P" decoration on package.json
mainthread/MainThreadDocumentContentProviders MainThread* shape (Rust side) M12 verified main_thread.rs keeps the registrations and opens provider URIs through $provideTextDocumentContent; host_requests.rs applies $onVirtualDocumentChange as one edit (no minimal edits): api-tests MOCHA_GREP="vscode API - workspace" 94/2/13, all 8 content provider tests pass; verified: api-tests MOCHA_GREP="vscode API - (workspace
mainthread/MainThreadDocuments MainThread* shape (Rust side) M8 verified host_sync.rs, host_requests.rs: port/tools/api-tests whole folder suite, MOCHA_GREP="vscode API - editors" 13/0/0, MOCHA_GREP="vscode API - workspace" 84/2/0 (the 2 upstream skips), workspace events 10/0/0 (port/results/api-tests.md, milestone 20 sweep); port/tools/settings-check preferences (vscode://defaultsettings and vscode://schemas documents)
mainthread/MainThreadBulkEdits MainThread* shape (Rust side) M12 verified file edits of workspace.applyEdit (api-tests: rename & ignoreIfExists, delete & ignoreIfNotExists, #111867 1/3 to 3/3, binary files pass); text edits and EOL changes through workbench/bulk_text_edits.rs, api-tests MOCHA_GREP="vscode API - workspace" 94/2/13 with every applyEdit test passing; cell edits go to the notebook models (api-tests notebook.document workspace edit API cases pass, milestone 17); an edit that needs confirmation waits in the Refactor Preview, false for no edits (port/resul [... omitted end of long line]; file edits of workspace.applyEdit (api-tests: rename & ignoreIfExists, delete & ignoreIfNotExists, #111867 1/3 to 3/3, binary files pass); text edits and EOL changes through workbench/bulk_text_edits.rs, api-tests MOCHA_GREP="vscode API - workspace" 94/2/13 with every applyEdit test passing; cell edits fail until milestone 13; an edit that needs confirmation waits in the Refactor Preview, false for no edits (port/results/refactor-preview.md)
mainthread/MainThreadTextEditors MainThread* shape (Rust side) M27 verified host_requests.rs, workbench/editor_view/quick_diff.rs: cargo test -p app the_host_sees_the_code_editors_of_the_rendered_cells cell_list_editors_follow_the_rendered_rows set_options_apply_the_cursor_style_and_line_numbers text_editor_show_and_hide quick_diff_contributed every_path_of_an_edit_tells_the_host_first; api-tests MOCHA_GREP="vscode API - editors" 13/0/0, MOCHA_GREP="vscode API - window" 40/0/0 (port/results/api-tests.md)
mainthread/MainThreadTreeViews MainThread* shape (Rust side) M11 verified workbench/tree_view.rs, workbench/view_containers.rs: cargo test -p app tree_view custom_tree; api-tests `MOCHA_GREP="vscode API - window
mainthread/MainThreadDownloadService MainThread* shape (Rust side) M18 verified _workbench.downloadResource copies a file, fetches a URL and rejects a 404 with the upstream message: port/tools/extensions-check; session.rs answers undefined
mainthread/MainThreadErrors MainThread* shape (Rust side) M6 verified main_thread_errors.rs: $onUnexpectedError goes through log.ts createUnexpectedErrorHandler (the stack, or toErrorMessage; the same text again within 1000 ms dropped) to the Window log; the session still prints it on stderr (cargo test -p app output::logger main_thread_errors: log.test.ts cases); session.rs writes $onUnexpectedError stacks to the port log (code-gpui stderr); seen in port/tools/api-tests api-folder.log
mainthread/MainThreadConsole MainThread* shape (Rust side) M6 verified main_thread_errors.rs: $logExtensionHostMessage as remoteConsoleUtil.ts: logRemoteEntryIfError (errors, [Extension Host] label) in a normal window, logRemoteEntry (every entry, no label) in an extension test run, to the Window log; console.rs prints it on stderr as the reference main process does (cargo test -p app main_thread_errors; api-tests editors run: renderer.log carries the mocha lines); console.rs formats $logExtensionHostMessage like util.format to the port log; cargo test -p exthost console tests; mocha spec output in port/tools/api-tests logs
mainthread/MainThreadLanguageFeatures MainThread* shape (Rust side) M13 verified language_features.rs: every $register* kept with its selector, $unregister, ordered by languageSelector.ts score (cargo test -p app language_features); $setLanguageConfiguration combines an extension's configuration key by key over the file one until $unregister (languages.rs combine_configurations; cargo test -p app extension_configurations_combine an_extension_language_configuration); the providers are called by their features' modules (workbench/*.rs); api-tests vscode API - languages 7 of 7 passing (port/results/api-tests.md, M13 language features). Not called yet: paste and drop edit providers (milestone 13 rows dropOrPasteInto), inline values and evaluatable expressions (milestone 16); new symbol names and multi-document highlights only serve Copilot rename suggestions and editor.multiDocumentOccurrencesHighlight
mainthread/MainThreadLanguages MainThread* shape (Rust side) M13 verified $acceptLanguageIds (host_sync.rs), $changeLanguage and $tokensAtPosition (workbench/host_requests.rs), $setLanguageStatus/$removeLanguageStatus (workbench/language_status.rs), $computeFullSyntaxHighlighting with getLanguageIdByLanguageName (workbench/host_requests.rs, languages.rs id_by_name) and $acceptSyntaxHighlightingThemeChanged on theme and customization changes (workbench/themes.rs, configuration.rs): cargo test -p app host_requests full_syntax_highlighting themes configuration; api-tests vscode API - languages 7/0/0 (port/results/api-tests.md M13)
mainthread/MainThreadMessageService MainThread* shape (Rust side) M11 verified main_thread_message.rs: $showMessage as a notification with the items as buttons and Manage Extension (answers the picked handle, undefined on close), modal messages as an NSAlert sheet with the close affordance or Cancel/OK last; cargo test -p app notifications_view; no urgent auth sources (no sign-in by decision); verified: ui-pair messages.json center, modal vs the reference (port/results/windows.md, milestone 11 verification): the notification with its buttons and source, the modal NSAlert sheet
mainthread/MainThreadOutputService MainThread* shape (Rust side) M15 verified main_thread_output.rs: $register, $update (append, replace and clear with till), $reveal, $close, $dispose; cargo test -p app output (extension channel file shown, appended, replaced and cleared in the Output view); api-tests MOCHA_GREP=rpc 17/0/0 with no rpc, createOutputChannel(...)
mainthread/MainThreadProgress MainThread* shape (Rust side) M11 verified main_thread_progress.rs: Notification and Window locations (cargo test -p app progress); Source Control location not shown (no SCM view); verified: ui-pair messages.json progress, center vs the reference (port/results/windows.md, milestone 11 verification): the notification progress toast and the window progress entry and center row
mainthread/MainThreadTerminalService MainThread* shape (Rust side) M15 verified workbench/terminal_host.rs; terminal link providers ($startLinkProvider, $provideLinks, $activateLink, the hover's link activating the link): workbench/terminal_links.rs, hover.rs, cargo test -p app extension_link_providers; contributed profiles ($registerProfileProvider, $createContributedProfileTerminal, editor location): cargo test -p app a_contributed_profile; terminal.test.ts in api-tests `vscode API - (terminal
mainthread/MainThreadTerminalShellIntegration MainThread* shape (Rust side) M15 verified workbench/terminal_host.rs, terminal/shell_integration.rs, terminal/injection.rs; terminal.shellIntegration.test.ts in api-tests `vscode API - (terminal
mainthread/MainThreadQuickOpen MainThread* shape (Rust side) M9 verified api-tests MOCHA_GREP="vscode API - quick input": 11 passing, 0 failing
mainthread/MainThreadStatusBar MainThread* shape (Rust side) M11 verified main_thread_status_bar.rs: $setEntry/$disposeEntry, static statusBarItems sent with $acceptStaticEntries (api-tests createStatusBar cases); verified: api-tests `MOCHA_GREP="vscode API - window
mainthread/MainThreadStorage MainThread* shape (Rust side) M10 verified api-tests globalState / workspaceState 2/2; port/tools/settings-check state (restart, state.vscdb rows) same as the reference
mainthread/MainThreadTelemetry MainThread* shape (Rust side) M19 verified port/tools/privacy-check (Bun and Node, 5/5 each: isTelemetryEnabled false, TelemetryLogger never calls its sender, inert @vscode/extension-telemetry and vscode-tas-client); $publicLog/$publicLog2 dropped as NullTelemetryService (no enableTelemetry in product.json)
mainthread/MainThreadEditorInsets MainThread* shape (Rust side) M17 verified workbench/editor_insets.rs (mainThreadCodeInsets.ts): view zone, webview, messages, dispose with the editor; FIXTURE=editor-inset-tests port/tools/webview-check 2/2 in reference and port. A zone partly scrolled out shows its visible part: a ClipView clips the webview to the zone's part inside the editor, as the editor clips the zone's iframe (test a_zone_partly_scrolled_out_shows_its_visible_part). The five MainThreadEditorInsetsShape methods are forwarded to the workbench (main.rs forward), $postMessage answers true
mainthread/MainThreadEditorTabs MainThread* shape (Rust side) M8 verified host_sync.rs sends $acceptTabOperation per tab change (cargo test -p app host_sync); $moveTab in a group (pins the tab, an index past the tabs moves it last) and across view columns at the host's index, a column past the last adding a group, $closeTab and $closeGroup through the save prompt, group by group in every named group, answering whether every tab closed (workbench/actions.rs): cargo test -p app the_host_moves_and_closes_tabs the_host_closes_tabs_and_groups_in_every_named_group; vscode API - window Tabs - Ensure tabs getter is correct passes with notebooks (port/results/api-tests.md, milestone 17); the upstream window.test.ts Move Tab and Close Tabs tests are commented out
mainthread/MainThreadWebviews MainThread* shape (Rust side) M17 verified api-tests MOCHA_GREP="vscode API - webview" webview.test passes as in the reference (625 local resources, postMessage both ways); cargo test -p app webview; FIXTURE=webview-tests port/tools/webview-check 7 upstream webview.test cases (ArrayBuffer and typed array messages, vscode: links) pass in reference and port
mainthread/MainThreadWebviewPanels MainThread* shape (Rust side) M17 verified workbench/webview_panels.rs: create and reveal by view column in editor groups, dispose, title, view states per group, release on hide, first-load message queue, WebviewEditorInput tab; FIXTURE=webview-tests port/tools/webview-check 7/7 in reference and port; api-tests MOCHA_GREP="vscode API - webview" 1 passing (625 local resources); cargo test -p app webview_panels; panels with a serializer persist in the editor state (webviewEditorInputSerializer.ts) and revive with onWebviewPanel: activation and $deserializeWebviewPanel once shown: cargo test -p app panels_with_a_serializer, ui-pair port/fixtures/ui-steps/webview-panel-restore.json (markdown preview after Cmd+Q and Reload Window, port/results/webviews.md)
mainthread/MainThreadCustomEditors MainThread* shape (Rust side) M17 verified workbench/custom_editors.rs, workbench/custom_documents.rs, outline_pane.rs: cargo test -p app custom_editors custom_documents a_custom_text_editor_s_navigation_drives_the_outline; FIXTURE=custom-editor-tests port/tools/webview-check 8/8 (upstream customEditor.test.ts); FIXTURE=custom-document-tests port/tools/webview-check 4/4; port/tools/custom-document-pair (Save As and hot exit restore as the reference). $captureCustomTextEditorViewState has no caller in the port (port/notes.md milestone 20)
mainthread/MainThreadWebviewViews MainThread* shape (Rust side) M17 verified workbench/webview_views.rs: $registerWebviewViewProvider, $unregisterWebviewViewProvider, title, description, $show, state in the view memento, <id>.focus; FIXTURE=webview-view-tests port/tools/webview-check 5/5 on the reference and the port. Views only in the Explorer container until view containers land (milestone 11)
mainthread/MainThreadManagedSockets MainThread* shape (Rust side) removed no remote or tunnels by decision (port/notes.md); one local extension host
mainthread/MainThreadBrowserTunnelProxy MainThread* shape (Rust side) removed no remote or tunnels by decision (port/notes.md); one local extension host
mainthread/MainThreadNotebook MainThread* shape (Rust side) M17 verified verified (session m17d): api-tests `MOCHA_GREP="Notebook
mainthread/MainThreadNotebookEditors MainThread* shape (Rust side) M17 verified verified (session m17d): api-tests `MOCHA_GREP="Notebook
mainthread/MainThreadNotebookDocuments MainThread* shape (Rust side) M17 verified $tryCreateNotebook, $tryOpenNotebook, $trySaveNotebook, cell edits of workspace edits (bulkCellEdits.ts), dirty and saved events: api-tests `MOCHA_GREP="Notebook
mainthread/MainThreadNotebookKernels MainThread* shape (Rust side) M17 verified workbench/notebook_editor.rs, workbench/kernel_picker.rs: api-tests `MOCHA_GREP="Notebook
mainthread/MainThreadNotebookRenderers MainThread* shape (Rust side) M17 verified verified (session m17d): onRenderer: activation before the first message (cargo test -p app renderer_messages_wait_for_the_renderer_activation); api-tests `MOCHA_GREP="Notebook
mainthread/MainThreadInteractive MainThread* shape (Rust side) M17 verified verified (session m17d): cargo test -p app the_interactive_window; api-tests `MOCHA_GREP="Notebook
mainthread/MainThreadSpeech MainThread* shape (Rust side) removed no AI or Microsoft services by decision (port/notes.md); API stays inert
mainthread/MainThreadBrowsers MainThread* shape (Rust side) M17 removed Artur: the integrated browser of 1.147 (WebContentsView, CDP proxy, Playwright, chat tools) serves the agent; Simple Browser stays on a webview panel
mainthread/MainThreadLanguageModels MainThread* shape (Rust side) removed no sign-in/AI by decision (port/notes.md); API stays inert: session.rs answers undefined, list getters []; exthost-probe 30/30 on Bun and Node
mainthread/MainThreadChatContext MainThread* shape (Rust side) removed no sign-in/AI by decision (port/notes.md); API stays inert: session.rs answers undefined, list getters []; exthost-probe 30/30 on Bun and Node
mainthread/MainThreadChatDebug MainThread* shape (Rust side) removed no sign-in/AI by decision (port/notes.md); API stays inert: session.rs answers undefined, list getters []; exthost-probe 30/30 on Bun and Node
mainthread/MainThreadEmbeddings MainThread* shape (Rust side) removed no AI or Microsoft services by decision (port/notes.md); API stays inert
mainthread/MainThreadChatAgents MainThread* shape (Rust side) removed no sign-in/AI by decision (port/notes.md); API stays inert: session.rs answers undefined, list getters []; exthost-probe 30/30 on Bun and Node
mainthread/MainThreadCodeMapper MainThread* shape (Rust side) removed no AI or Microsoft services by decision (port/notes.md); API stays inert
mainthread/MainThreadLanguageModelTools MainThread* shape (Rust side) removed no sign-in/AI by decision (port/notes.md); API stays inert: session.rs answers undefined, list getters []; exthost-probe 30/30 on Bun and Node
mainthread/MainThreadUrls MainThread* shape (Rust side) M12 verified $registerUriHandler, $unregisterUriHandler in workbench/url_handler.rs: a code-oss://<publisher.name>/ url (--open-url, or the app bundle's open-url event in the last active window: cargo test -p app a_url_the_system_hands_the_app_opens_in_the_last_active_window) reaches ExtHostUrls.$handleExternalUri after the "Allow '{0}' extension to open this URI?" prompt, buffered and onUri: activated when the handler is not registered yet; an extension not installed is offered from the gallery ("Would you like to install '{0}' extension from '{1}'?", Install Extension and Open URI) and the URI handled after the install; cargo test -p app url_handler install_prompt; $createAppUri in session.rs app_uri (cargo test -p exthost app_uri); vscode: links from webviews take the same path (cargo test -p app a_webview_link_reaches_the_handler_the_extension_registered; FIXTURE=webview-tests port/tools/webview-check). The install flow has no ui-pair: the reference installs from Microsoft's gallery
mainthread/MainThreadUriOpeners MainThread* shape (Rust side) M12 verified workbench/opener.rs: $registerUriOpener/$unregisterUriOpener, onOpenExternalUri: activation, $canOpenUri priorities, chooser prompt, failure notification with "Open using default opener"; cargo test -p app opener; verified at port-m12b-verify: cargo test -p app opener 4/4
mainthread/MainThreadChatOutputRenderer MainThread* shape (Rust side) removed no sign-in/AI by decision (port/notes.md); API stays inert: session.rs answers undefined, list getters []; exthost-probe 30/30 on Bun and Node
mainthread/MainThreadProfileContentHandlers MainThread* shape (Rust side) M10 removed its only caller is configuration-editing's GitHub gist export of profiles, which needs sign-in (no sign-in by decision); profiles export to a local .code-profile file (workbench/contrib/userDataProfile row)
mainthread/MainThreadWorkspace MainThread* shape (Rust side) M12 verified main_thread_workspace.rs, workspace_trust.rs, workbench/workspace_editing.rs, workbench/proxy_auth.rs, exthost/src/request/macos.rs: cargo test -p exthost request::; cargo test -p app workspace_editing; api-tests MOCHA_GREP="vscode API - workspace" api-folder 107/2/0, api-workspace 4/4 (findFiles, findFiles2, findTextInFiles 11/11); ui-pair port/fixtures/ui-pair/m12/workspace-folders.json
mainthread/MainThreadFileSystem MainThread* shape (Rust side) M12 verified vscode://defaultsettings reads and stats through workspace.fs ask the workbench for getDefaultSettingsContent (cargo test -p exthost settings_file_system, -p app the_extension_host_reads_default_settings_from_the_workbench). Provider calls wait for the reply as upstream (Session::request with no timeout). api-tests workspace.fs.test 12/12 passing (main_thread_files.rs over files::disk and extension providers)
mainthread/MainThreadFileSystemEventService MainThread* shape (Rust side) M12 verified FSEvents watcher of the folder, extension watchers and provider changes reach $onFileEvent (cargo test -p files); file operation participants with files.participants.timeout: workspace.event.test 6/10, the 4 others need text documents (milestone 8); the "wants to make refactoring changes" dialog, its profile memento and files.participants.resetChoice (cargo test -p app file_participants, ui-pair with a parti [... omitted end of long line]
mainthread/MainThreadLabelService MainThread* shape (Rust side) M12 removed only workspace.registerResourceLabelFormatter calls it, behind the resolvers proposal that only remote resolvers enable; no remote by decision (port/notes.md); the call answers undefined
mainthread/MainThreadSearch MainThread* shape (Rust side) M12 removed extension file and text search providers are proposed API (fileSearchProvider, textSearchProvider, aiTextSearchProvider); product.json enables no proposals, and the built-ins that declare them are removed (copilot) or the API test extension, whose tests never register one; workspace search runs in workbench/services/search
mainthread/MainThreadShare MainThread* shape (Rust side) removed no AI or Microsoft services by decision (port/notes.md); API stays inert
mainthread/MainThreadTask MainThread* shape (Rust side) M15 verified workbench/task_service.rs; workspace.tasks.test.ts in api-tests `vscode API - (terminal; session.rs answers undefined
mainthread/MainThreadExtensionService MainThread* shape (Rust side) M6 verified virtual workspaces: milestone 25; session.rs: $getExtension, $asBrowserUri, activation events, runtime errors on stderr; main_thread_errors.rs $onExtensionActivationError: logged, and a notification when developing an extension; a missing dependency offers Reload Window, Enable and Reload, or Install and Reload from the Open VSX gallery as _handleMissingInstalledDependency and _handleMissingNotInstalledDependency (cargo test -p app main_thread_errors, missing_dependencies_offer_reload_enable_or_install; a dependency Restricted Mode disables offers Manage Workspace Trust: a_dependency_restricted_mode_disables_offers_to_manage_trust); $activateExtension only serves extensions of another host, the port runs one; $setPerformanceMarks lists the host's marks as localExtHost (cargo test -p app perf::tests); $extensionTestsExecute result is code-gpui's exit code (api-workspace exits 1 with 4 failing, 0 with no test matched)
mainthread/MainThreadSCM MainThread* shape (Rust side) M14 verified scm.rs model of the $registerSourceControl/groups/resources/input calls, workbench/scm_view.rs view, badge and status entries: cargo test -p app scm; $onDidChangeHistoryProviderHistoryItemRefs refreshes the graph or shows its Outdated badge (cargo test -p app ref_changes_refresh); the artifact provider's groups and artifacts in the Repositories view's explorer mode, asked again on $onDidChangeArtifacts (cargo test -p app explorer_mode_lists_artifact_groups); session.rs answers undefined
mainthread/MainThreadQuickDiff MainThread* shape (Rust side) M14 verified primary, secondary and extension quick diff providers ($registerQuickDiffProvider, $provideOriginalResource), gutter bars and triangles, overview ruler and minimap marks, peek widget, hidden providers, $acceptSourceControlDiffInformation in workbench/editor_view/quick_diff.rs and quick_diff_widget.rs: cargo test -p app quick_diff; the source control quick diff ($provideOriginalResource, quickDiffModel/quickDiffDecorator: gutter bars and triangles, overview ruler marks) in workbench/editor_view/quick_diff.rs: cargo test -p app quick_diff; registerQuickDiffProvider of extensions not routed yet; session.rs answers undefined; session.rs answers undefined
mainthread/MainThreadAgentEditorComments MainThread* shape (Rust side) removed no sign-in/AI by decision (port/notes.md); API stays inert: session.rs answers undefined, list getters []; exthost-probe 30/30 on Bun and Node
mainthread/MainThreadDocumentDiff MainThread* shape (Rust side) M14 verified $computeDocumentDiff (workbench/editor_view/diff_editor_view.rs compute_document_diff) over the native/crates/diff port of editor/common/diff: cargo test -p diff (upstream fixtures of src/vs/editor/test/node/diffing, verifyLinesDiff); session.rs answers undefined
mainthread/MainThreadDebugService MainThread* shape (Rust side) M16 verified workbench/debug_service.rs: api-tests MOCHA_GREP="vscode API - debug" 3 passing, 2 pending (skipped upstream), as the reference; ui-pair port/fixtures/debug-node: js-debug stops at the app.js breakpoint and shows its locals; session.rs answers undefined
mainthread/MainThreadWindow MainThread* shape (Rust side) M11 verified $openUri through the opener service (openExternal), $asExternalUri for file system provider resources (code-oss://workspace?, no tunnels), $onDidChangeWindowFocus on window activation; $getInitialState isActive fixed true (no user activity service); api-tests env.asExternalUri pass; session.rs: $getInitialState fixed {isFocused,isActive}; rest undefined; verified: api-tests `MOCHA_GREP="vscode API - window
mainthread/MainThreadTunnelService MainThread* shape (Rust side) removed no remote or tunnels by decision (port/notes.md); one local extension host
mainthread/MainThreadTimeline MainThread* shape (Rust side) M14 verified $registerTimelineProvider/$unregisterTimelineProvider/$emitTimelineChangeEvent routed to timeline.rs and workbench/timeline_view.rs (main_thread_commands.rs): cargo test -p app timeline
mainthread/MainThreadRemoteAgentHosts MainThread* shape (Rust side) removed remote agent hosts serve the agent (no sign-in/AI by decision, port/notes.md); API stays inert: its two methods return void, session.rs answers undefined; exthost-probe 26/26 on Bun and Node (1.148.0)
mainthread/MainThreadChatArtifactIntegrations MainThread* shape (Rust side) removed no sign-in/AI by decision (port/notes.md); API stays inert: session.rs answers undefined, list getters []; exthost-probe 30/30 on Bun and Node
mainthread/MainThreadAiRelatedInformation MainThread* shape (Rust side) removed no sign-in/AI by decision (port/notes.md); API stays inert: session.rs answers undefined, list getters []; exthost-probe 30/30 on Bun and Node
mainthread/MainThreadAiSettingsSearch MainThread* shape (Rust side) removed no sign-in/AI by decision (port/notes.md); API stays inert: session.rs answers undefined, list getters []; exthost-probe 30/30 on Bun and Node
mainthread/MainThreadAiEmbeddingVector MainThread* shape (Rust side) removed no AI or Microsoft services by decision (port/notes.md); API stays inert
mainthread/MainThreadMeteredConnection MainThread* shape (Rust side) M19 verified metered_connection.rs: $initializeIsConnectionMetered and changes from Network.framework's path monitor; port/tools/shell-check (port/fixtures/extensions/shell-tests, 6/6): env.isMeteredConnection false on the Studio's wired network, onDidChangeMeteredConnection; cargo test -p app metered_connection; session.rs answers undefined
mainthread/MainThreadGitHub MainThread* shape (Rust side) M14 verified main_thread_github.rs: anonymous clients and $getGist over api.github.com (githubTransport.ts headers, toGistDto), every account method answers the unavailable-session error (no sign-in by decision): cargo test -p app gists_become_dtos; session.rs answers undefined
mainthread/MainThreadPower MainThread* shape (Rust side) M19 verified power.rs: idle state and time, thermal state, battery, power save blockers as IOPM assertions; port/tools/shell-check (port/fixtures/extensions/shell-tests, 6/6): idle time equals the session's CGEventSource idle time, idle state, thermal state name, battery matches pmset, prevent-display-sleep holds a NoDisplaySleepAssertion named Electron until disposed; cargo test -p app power; session.rs answers undefined
mainthread/MainThreadLogger MainThread* shape (Rust side) M6 verified main_thread_output.rs: $registerLogger, $deregisterLogger, $setVisibility keep the logger registry (a visible logger is a log channel); $createLogger, $log, $flush write the file through output/logger.rs LogFile with the logger level, always, donotUseFormatters, donotRotate, and fail for an uncreated logger as upstream (cargo test -p app output main_thread_errors created_loggers_write_through_their_level); main_thread_output.rs: $registerLogger, $deregisterLogger and $setVisibility keep the logger registry, a visible logger is a log channel (cargo test -p app output loggers_are_log_channels); $log lines still go to the port log (desktop file loggers are written by the host itself)
mainthread/MainThreadTheming MainThread* shape (Rust side) M7 verified host_sync.rs send_color_theme: $onColorThemeChange with the theme type at startup and on every theme change, from the picker, a settings.json edit or the system scheme (cargo test -p app themes configuration: the_picker_previews_the_focused_theme..., an_edit_of_settings_json_on_disk_reaches_the_host...); host_sync.rs sends $onColorThemeChange at startup; no runtime theme switch yet
mainthread/MainThreadLocalization MainThread* shape (Rust side) M18 verified both methods of mainThreadLocalization.ts in exthost/src/language_packs.rs: $fetchBuiltInBundleUri answers the active pack's translation file of a built-in or undefined, $fetchBundleContents the file's text and rejects for a file it cannot read (session.rs replies with the error): cargo test -p exthost language_packs (4)
mainthread/MainThreadMcp MainThread* shape (Rust side) removed no sign-in/AI by decision (port/notes.md); API stays inert: session.rs answers undefined, list getters []; exthost-probe 30/30 on Bun and Node
mainthread/MainThreadDataChannels MainThread* shape (Rust side) removed no AI or Microsoft services by decision (port/notes.md); API stays inert
mainthread/MainThreadTesting MainThread* shape (Rust side) M16 verified workbench/testing_service.rs: cargo test -p app testing::; ui-pair port/fixtures/debug-node with port/fixtures/extensions/tests-provider: Run All runs 3 tests, states and output reach the Testing view and Test Results
mainthread/MainThreadChatStatus MainThread* shape (Rust side) removed no sign-in/AI by decision (port/notes.md); API stays inert: session.rs answers undefined, list getters []; exthost-probe 30/30 on Bun and Node
mainthread/MainThreadChatQuota MainThread* shape (Rust side) removed no sign-in/AI by decision (port/notes.md); API stays inert: session.rs answers undefined, list getters []; exthost-probe 30/30 on Bun and Node
mainthread/MainThreadChatInputNotification MainThread* shape (Rust side) removed no sign-in/AI by decision (port/notes.md); API stays inert: session.rs answers undefined, list getters []; exthost-probe 30/30 on Bun and Node
mainthread/MainThreadChatSessions MainThread* shape (Rust side) removed no sign-in/AI by decision (port/notes.md); API stays inert: session.rs answers undefined, list getters []; exthost-probe 30/30 on Bun and Node