Visual Studio Code, rebuilt in Rust
Rust
feat(extensions): report the commands point's collector messages
rokartur5be28b28ed06
diff --git a/native/crates/app/src/command_palette.rs b/native/crates/app/src/command_palette.rsindex c26e4f372fa..1ac445761e4 100644--- a/native/crates/app/src/command_palette.rs+++ b/native/crates/app/src/command_palette.rs@@ -12,6 +12,7 @@ use crate::commands::Commands;use crate::contextkey::{Context, Expr};use crate::filters::{Matches, matches_base_contiguous_sub_string, matches_words, try_normalize_to_base};use crate::keybindings::ExtensionSource;+use crate::notifications::Severity;use crate::tf_idf::{Document, TfIdfCalculator, normalize_scores};const TFIDF_THRESHOLD: f64 = 0.5;@@ -255,7 +256,22 @@ pub fn menu(extensions: &[ScannedExtension]) -> Vec<MenuItem> {let category = Some(crate::product::name_short().to_owned());items.push(MenuItem { id: "update.showCurrentReleaseNotes".into(), title: "Show Release Notes".into(), category, description: None, when: None, precondition: None, source: None });}- let commands: Vec<MenuItem> = extensions.iter().flat_map(contributed_commands).collect();+ let mut commands: Vec<MenuItem> = Vec::new();+ for extension in extensions {+ for command in contributed_commands(extension) {+ // menusExtensionPoint.ts `handleCommand`: an id `MenuRegistry.getCommand` already knows.+ let owner = commands.iter().rev().find(|known| known.id == command.id).and_then(|known| known.source.as_ref()).and_then(|source| extensions.iter().find(|owner| owner.id == source.id));+ let message = match owner {+ Some(owner) => Some(format!("Command `{}` already registered by {} ({})", command.id, owner.description["displayName"].as_str().or(owner.description["name"].as_str()).unwrap_or_default(), owner.id)),+ None if REFERENCE["menuCommands"].as_array().expect("an array").iter().any(|id| *id == command.id) => Some(format!("Command `{}` already registered", command.id)),+ None => None,+ };+ if let Some(message) = message {+ crate::perf::extension_point_message(&extension.id, Severity::Info, message);+ }+ commands.push(command);+ }+ }for extension in extensions {for entry in extension.description["contributes"]["menus"]["commandPalette"].as_array().into_iter().flatten() {// menusExtensionPoint.ts skips entries of commands nobody contributes.@@ -276,13 +292,17 @@ pub fn menu(extensions: &[ScannedExtension]) -> Vec<MenuItem> {pub fn contributed_commands(extension: &ScannedExtension) -> Vec<MenuItem> {let commands = match &extension.description["contributes"]["commands"] {Value::Array(commands) => commands.iter().collect(),- command @ Value::Object(_) => vec![command],- _ => Vec::new(),+ Value::Null => Vec::new(),+ command => vec![command],};let localized = |value: &Value| value.as_str().or_else(|| value["value"].as_str()).map(str::to_string);let mut items = Vec::new();for command in commands {- let (Some(id), Some(title)) = (command["command"].as_str(), localized(&command["title"])) else { continue };+ if let Err(message) = validate_command(command) {+ crate::perf::extension_point_message(&extension.id, Severity::Error, message);+ continue;+ }+ let (Some(id), Some(title)) = (command["command"].as_str(), localized(&command["title"])) else { unreachable!("validate_command checked both") };items.push(MenuItem {id: id.to_string(),title,@@ -296,6 +316,45 @@ pub fn contributed_commands(extension: &ScannedExtension) -> Vec<MenuItem> {items}+/// menusExtensionPoint.ts `isValidCommand`; JSON null stands for undefined.+fn validate_command(command: &Value) -> Result<(), String> {+ let falsy_or_whitespace = |value: &Value| value.as_str().is_none_or(|text| text.trim().is_empty());+ let truthy = |value: &Value| match value {+ Value::Null | Value::Bool(false) => false,+ Value::Number(number) => number.as_f64() != Some(0.),+ Value::String(text) => !text.is_empty(),+ _ => true,+ };+ let localized_string = |value: &Value, property: &str| match value {+ Value::Null => Err(format!("property `{property}` is mandatory and must be of type `string` or `object`")),+ Value::String(_) if falsy_or_whitespace(value) => Err(format!("property `{property}` is mandatory and must be of type `string`")),+ Value::String(_) => Ok(()),+ _ if falsy_or_whitespace(&value["original"]) || falsy_or_whitespace(&value["value"]) => Err(format!("properties `{property}.value` and `{property}.original` are mandatory and must be of type `string`")),+ _ => Ok(()),+ };+ if !truthy(command) {+ return Err("expected non-empty value.".into());+ }+ if falsy_or_whitespace(&command["command"]) {+ return Err("property `command` is mandatory and must be of type `string`".into());+ }+ localized_string(&command["title"], "title")?;+ if truthy(&command["shortTitle"]) {+ localized_string(&command["shortTitle"], "shortTitle")?;+ }+ if truthy(&command["enablement"]) && !command["enablement"].is_string() {+ return Err("property `precondition` can be omitted or must be of type `string`".into());+ }+ if truthy(&command["category"]) {+ localized_string(&command["category"], "category")?;+ }+ let icon = &command["icon"];+ if !icon.is_null() && !icon.is_string() && !(icon["dark"].is_string() && icon["light"].is_string()) {+ return Err("property `icon` can be omitted or must be either a string or a literal like `{dark, light}`".into());+ }+ Ok(())+}+/// `getGlobalCommandPicks`: the items whose `when` holds and that are enabled, labelled "Category: Title"./// A workbench item shows only when the port registers its command.pub fn enabled_commands(menu: &[MenuItem], context: &dyn Context, commands: &Commands) -> Vec<CommandPick> {diff --git a/native/crates/app/src/command_palette/reference-commands.json b/native/crates/app/src/command_palette/reference-commands.jsonindex abc78ab2f6d..994e2babe7c 100644--- a/native/crates/app/src/command_palette/reference-commands.json+++ b/native/crates/app/src/command_palette/reference-commands.json@@ -11864,6 +11864,980 @@"~remote.forwardedPorts.focus","~remote.forwardedPorts.open"],+ "menuCommands": [+ "_manageAccountPreferencesForExtension",+ "_manageTrustedExtensionsForAccount",+ "_manageTrustedMCPServersForAccount",+ "_notebook.selectKernel",+ "_workbench.extensions.action.cleanUpExtensionsFolder",+ "accessibility.announcement.help",+ "agentSession.exitAgentSessionProjection",+ "agentSessions.hideAgentSessionsSidebar",+ "agentSessions.showAgentSessionsSidebar",+ "agentSessions.toggleAgentSessionsSidebar",+ "agentsVoice.disconnect",+ "agentsVoice.openSettings",+ "agentsVoice.pushToTalk",+ "agentsVoice.resetOnboarding",+ "agentsVoice.showOnboarding",+ "agentsVoice.showTranscripts",+ "agentsVoice.simulateConnection",+ "agentsVoice.toggleMute",+ "aiCustomization.generateDebugReport",+ "aiCustomization.openManagementEditor",+ "breadcrumbs.copyPath",+ "breadcrumbs.focus",+ "breadcrumbs.focusAndSelect",+ "chat.configureToolSets",+ "chat.pet.changeColor",+ "chat.pet.developer.resetAchievements",+ "chat.pet.developer.resetSize",+ "chat.pet.developer.unlockAllAchievements",+ "chatEditing.viewChanges",+ "chatEditing.viewPreviousEdits",+ "chatEditor.action.accept",+ "chatEditor.action.acceptAllEdits",+ "chatEditor.action.acceptHunk",+ "chatEditor.action.navigateNext",+ "chatEditor.action.navigatePrevious",+ "chatEditor.action.reject",+ "chatEditor.action.showAccessibleDiffView",+ "chatEditor.action.undoHunk",+ "debug.action.toggleDisassemblyViewSourceCode",+ "debug.addConfiguration",+ "debug.toggleExceptionBreakpoints",+ "decreaseSearchEditorContextLines",+ "developer.onboarding.copyTryoutLink",+ "developer.showCurrentFileAsReleaseNotes",+ "diffEditor.collapseAllUnchangedRegions",+ "diffEditor.revert",+ "diffEditor.showAllUnchangedRegions",+ "diffEditor.switchSide",+ "editor.action.accessibleDiffViewer.next",+ "editor.action.accessibleDiffViewer.prev",+ "editor.action.announceCursorPosition",+ "editor.action.defineKeybinding",+ "editor.action.goToImplementation",+ "editor.action.goToReferences",+ "editor.action.goToTypeDefinition",+ "editor.action.inlineSuggest.cancelSnooze",+ "editor.action.inlineSuggest.snooze",+ "editor.action.insertSnippet",+ "editor.action.measureExtHostLatency",+ "editor.action.peekDeclaration",+ "editor.action.peekDefinition",+ "editor.action.peekImplementation",+ "editor.action.peekTypeDefinition",+ "editor.action.quickFix",+ "editor.action.referenceSearch.trigger",+ "editor.action.revealDeclaration",+ "editor.action.revealDefinition",+ "editor.action.revealDefinitionAside",+ "editor.action.startDebugTextMate",+ "editor.action.surroundWithSnippet",+ "editor.action.toggleColumnSelection",+ "editor.action.toggleMinimap",+ "editor.action.toggleOvertypeInsertMode",+ "editor.action.toggleRenderControlCharacter",+ "editor.action.toggleRenderWhitespace",+ "editor.action.toggleScreenReaderAccessibilityMode",+ "editor.action.toggleTabFocusMode",+ "editor.debug.action.toggleBreakpoint",+ "editor.detectLanguage",+ "editor.inlayHints.Reset",+ "editor.showCallHierarchy",+ "editor.showTypeHierarchy",+ "extension.bisect.next",+ "extension.bisect.start",+ "extension.bisect.stop",+ "files.participants.resetChoice",+ "hideCustomTitleBar",+ "hideCustomTitleBarInFullScreen",+ "imagePreview.reopenAsPreview",+ "imagePreview.reopenAsText",+ "imagePreview.selectZoomLevel",+ "imagePreview.zoomIn",+ "imagePreview.zoomOut",+ "increaseSearchEditorContextLines",+ "inlayHints.startReadingLineWithHint",+ "inlayHints.stopReadingLineWithHint",+ "inlineChat.askInChat",+ "inlineChat.focus",+ "inlineChat.start",+ "inlineChat2.close",+ "inlineChat2.keep",+ "list.resizeColumn",+ "menu.resetHiddenStates",+ "merge.acceptAllInput1",+ "merge.acceptAllInput2",+ "merge.dev.copyContentsJson",+ "merge.dev.loadContentsFromFolder",+ "merge.dev.openContentsJson",+ "merge.dev.openSelectionInTemporaryMergeEditor",+ "merge.dev.saveContentsToFolder",+ "merge.goToNextUnhandledConflict",+ "merge.goToPreviousUnhandledConflict",+ "merge.openBaseEditor",+ "merge.toggleActiveConflictInput1",+ "merge.toggleActiveConflictInput2",+ "mergeEditor.acceptAllCombination",+ "mergeEditor.acceptMerge",+ "mergeEditor.compareInput1WithBase",+ "mergeEditor.compareInput2WithBase",+ "mergeEditor.resetCloseWithConflictsChoice",+ "mergeEditor.resetResultToBaseAndAutoMerge",+ "mergeEditor.toggleBetweenInputs",+ "multiDiffEditor.collapseAll",+ "multiDiffEditor.expandAll",+ "multiDiffEditor.focusFileList",+ "multiDiffEditor.goToNextChange",+ "multiDiffEditor.goToPreviousChange",+ "multiDiffEditor.openLayoutDebug",+ "multiDiffEditor.toggleFileList",+ "notebook.clearNotebookEdtitorTypeCache",+ "notebook.clearNotebookKernelsMRUCache",+ "notebook.developer.addViewZones",+ "notebook.fold",+ "notebook.format",+ "notebook.inlineChat.acceptChangesAndRun",+ "notebook.inspectLayout",+ "notebook.saveMimeTypeOrder",+ "notebook.toggleLayoutTroubleshoot",+ "notebook.toggleLineNumbers",+ "notebook.toggleLineNumbersFromEditorTitle",+ "notebook.unfold",+ "perf.event.profiling",+ "perf.insta.printAsyncCycles",+ "perf.insta.printTraces",+ "perfview.show",+ "planReviewFeedback.action.clearAll",+ "planReviewFeedback.action.navigateNext",+ "planReviewFeedback.action.navigatePrevious",+ "refactorPreview",+ "resetGettingStartedProgress",+ "search.action.cancel",+ "search.action.clearHistory",+ "search.action.clearSearchResults",+ "search.action.collapseSearchResults",+ "search.action.expandSearchResults",+ "search.action.focusFilesToExclude",+ "search.action.focusFilesToInclude",+ "search.action.focusNextSearchResult",+ "search.action.focusPreviousSearchResult",+ "search.action.focusQueryEditorWidget",+ "search.action.focusSearchList",+ "search.action.openEditor",+ "search.action.openInEditor",+ "search.action.openNewEditor",+ "search.action.openNewEditorToSide",+ "search.action.refreshSearchResults",+ "search.action.searchWithAI",+ "search.action.viewAsList",+ "search.action.viewAsTree",+ "search.searchEditor.action.deleteFileResults",+ "selectAllSearchEditorMatches",+ "settings.action.clearSearchResults",+ "settings.action.focusLevelUp",+ "settings.action.focusTOC",+ "settings.action.search",+ "settings.action.showContextMenu",+ "settings.action.toggleAiSearch",+ "showCustomTitleBar",+ "signals.sounds.help",+ "testing.configureProfile",+ "testing.goToNextMessage",+ "testing.goToPreviousMessage",+ "testing.goToRelatedCode",+ "testing.goToRelatedTest",+ "testing.peekRelatedCode",+ "testing.peekRelatedTest",+ "testing.toggleTestingPeekHistory",+ "toggleSearchEditorCaseSensitive",+ "toggleSearchEditorContextLines",+ "toggleSearchEditorRegex",+ "toggleSearchEditorWholeWord",+ "tree.toggleStickyScroll",+ "update.checkForUpdate",+ "update.downloadUpdate",+ "update.installUpdate",+ "update.restartToUpdate",+ "update.showUpdateInfo",+ "voiceTranscripts.focus",+ "welcome.goBack",+ "welcome.showAllWalkthroughs",+ "welcome.showNewFileEntries",+ "workbench.action.addRootFolder",+ "workbench.action.agentsLauncher",+ "workbench.action.alignPanelCenter",+ "workbench.action.alignPanelJustify",+ "workbench.action.alignPanelLeft",+ "workbench.action.alignPanelRight",+ "workbench.action.askVScode",+ "workbench.action.browseColorThemesInMarketplace",+ "workbench.action.browser.addAreaScreenshotToChat",+ "workbench.action.browser.addConsoleLogsToChat",+ "workbench.action.browser.addElementCommentToChat",+ "workbench.action.browser.addElementToChat",+ "workbench.action.browser.addFullPageScreenshotToChat",+ "workbench.action.browser.addScreenshotToChat",+ "workbench.action.browser.clearAgentStorage",+ "workbench.action.browser.clearEphemeralStorage",+ "workbench.action.browser.clearGlobalStorage",+ "workbench.action.browser.clearWorkspaceStorage",+ "workbench.action.browser.closeAll",+ "workbench.action.browser.closeAllInGroup",+ "workbench.action.browser.focusUrlInput",+ "workbench.action.browser.goBack",+ "workbench.action.browser.goForward",+ "workbench.action.browser.hardReload",+ "workbench.action.browser.managePermissions",+ "workbench.action.browser.newTab",+ "workbench.action.browser.open",+ "workbench.action.browser.openExternal",+ "workbench.action.browser.openFile",+ "workbench.action.browser.pickDevicePreset",+ "workbench.action.browser.quickOpen",+ "workbench.action.browser.reload",+ "workbench.action.browser.resetEmulation",+ "workbench.action.browser.resetZoom",+ "workbench.action.browser.setUserAgent",+ "workbench.action.browser.showFind",+ "workbench.action.browser.showHistory",+ "workbench.action.browser.toggleDevTools",+ "workbench.action.browser.toggleDeviceEmulation",+ "workbench.action.browser.toggleFavorite",+ "workbench.action.browser.toggleMobileEmulation",+ "workbench.action.browser.zoomIn",+ "workbench.action.browser.zoomOut",+ "workbench.action.chat.addPluginMarketplace",+ "workbench.action.chat.agentHost.otel.exportAgentTracesDB",+ "workbench.action.chat.agentHostNetworkDiagnostics",+ "workbench.action.chat.archiveAllAgentSessions",+ "workbench.action.chat.attachAppWindowScreenshot",+ "workbench.action.chat.attachFile",+ "workbench.action.chat.attachPinnedEditors",+ "workbench.action.chat.attachSelection",+ "workbench.action.chat.clearHistory",+ "workbench.action.chat.clearInputHistory",+ "workbench.action.chat.configure.customagents",+ "workbench.action.chat.configure.hooks",+ "workbench.action.chat.configure.instructions",+ "workbench.action.chat.configure.prompts",+ "workbench.action.chat.configure.skills",+ "workbench.action.chat.connectMissionControlEnvironment",+ "workbench.action.chat.createPlugin",+ "workbench.action.chat.debugAgentHostInDevTools",+ "workbench.action.chat.editToolApproval",+ "workbench.action.chat.export",+ "workbench.action.chat.exportAgentDebugLog",+ "workbench.action.chat.exportAgentHostDebugLogs",+ "workbench.action.chat.exportAsZip",+ "workbench.action.chat.find",+ "workbench.action.chat.focusAgentSessionsViewer",+ "workbench.action.chat.focusConfirmation",+ "workbench.action.chat.focusQuestionCarousel",+ "workbench.action.chat.focusQuestionCarouselTerminal",+ "workbench.action.chat.focusTip",+ "workbench.action.chat.focusTodosView",+ "workbench.action.chat.generateAgent",+ "workbench.action.chat.generateAgentInstructions",+ "workbench.action.chat.generateHook",+ "workbench.action.chat.generateOnDemandInstructions",+ "workbench.action.chat.generatePrompt",+ "workbench.action.chat.generateSkill",+ "workbench.action.chat.hideSetup",+ "workbench.action.chat.import",+ "workbench.action.chat.importAgentDebugLog",+ "workbench.action.chat.inlineVoiceChat",+ "workbench.action.chat.insertCodeBlock",+ "workbench.action.chat.insertForkConversationCommand",+ "workbench.action.chat.insertIntoNewFile",+ "workbench.action.chat.insertTroubleshootCommand",+ "workbench.action.chat.inspectAgentHostSubscriptions",+ "workbench.action.chat.inspectChatModel",+ "workbench.action.chat.inspectChatModelReferences",+ "workbench.action.chat.installPluginFromSource",+ "workbench.action.chat.localModel.cancel",+ "workbench.action.chat.localModel.makeActive",+ "workbench.action.chat.localModel.remove",+ "workbench.action.chat.localModel.resume",+ "workbench.action.chat.localModel.retry",+ "workbench.action.chat.localModel.setUp",+ "workbench.action.chat.localModel.start",+ "workbench.action.chat.localModel.stop",+ "workbench.action.chat.localModel.update",+ "workbench.action.chat.logChatIndex",+ "workbench.action.chat.logInputHistory",+ "workbench.action.chat.manage",+ "workbench.action.chat.manageAdditionalSpend",+ "workbench.action.chat.manageLanguageModelAuthentication",+ "workbench.action.chat.managePluginMarketplaces",+ "workbench.action.chat.managePlugins",+ "workbench.action.chat.manageSettings",+ "workbench.action.chat.manageTrustedCA",+ "workbench.action.chat.markAllAgentSessionsRead",+ "workbench.action.chat.newChat",+ "workbench.action.chat.nextCodeBlock",+ "workbench.action.chat.nextFileTree",+ "workbench.action.chat.nextQuestion",+ "workbench.action.chat.nextUserPrompt",+ "workbench.action.chat.open",+ "workbench.action.chat.openAgentDebugPanel",+ "workbench.action.chat.openAgentHostSettings",+ "workbench.action.chat.openCopilotCliStateFile",+ "workbench.action.chat.openFeatureSettings",+ "workbench.action.chat.openInEditor",+ "workbench.action.chat.openInNewWindow",+ "workbench.action.chat.openInSidebar",+ "workbench.action.chat.openSkillAtCursor",+ "workbench.action.chat.openStorageFolder",+ "workbench.action.chat.openagent",+ "workbench.action.chat.openask",+ "workbench.action.chat.openedit",+ "workbench.action.chat.pickAppWindowScreenshot",+ "workbench.action.chat.previousCodeBlock",+ "workbench.action.chat.previousFileTree",+ "workbench.action.chat.previousQuestion",+ "workbench.action.chat.previousUserPrompt",+ "workbench.action.chat.profileAgentHost",+ "workbench.action.chat.quickVoiceChat",+ "workbench.action.chat.redoEdit",+ "workbench.action.chat.redoEdit2",+ "workbench.action.chat.resetCopilotHarnessIntroduction",+ "workbench.action.chat.resetDismissedTips",+ "workbench.action.chat.resetGrowthSession",+ "workbench.action.chat.resetPermissionWarningDialogs",+ "workbench.action.chat.resetSpeechToTextIntroduction",+ "workbench.action.chat.resetTrustedTools",+ "workbench.action.chat.restartLocalAgentHost",+ "workbench.action.chat.restoreLastCheckpoint",+ "workbench.action.chat.run.prompt",+ "workbench.action.chat.runInTerminal",+ "workbench.action.chat.selectSpeechToTextMicrophone",+ "workbench.action.chat.showContextUsage",+ "workbench.action.chat.showExtensionsUsingCopilot",+ "workbench.action.chat.showSpeechToTextIntroduction",+ "workbench.action.chat.showUpdateRequired",+ "workbench.action.chat.simulateEntitlement",+ "workbench.action.chat.startVoiceChat",+ "workbench.action.chat.stopAgentHostProfile",+ "workbench.action.chat.stopListening",+ "workbench.action.chat.stopListeningAndSubmit",+ "workbench.action.chat.switchToNextModel",+ "workbench.action.chat.switchToNextPinnedModel",+ "workbench.action.chat.toggleAgentMode",+ "workbench.action.chat.toggleThinkingContentAccessibleView",+ "workbench.action.chat.triggerSetup",+ "workbench.action.chat.undoEdit",+ "workbench.action.chat.upgradePlan",+ "workbench.action.chat.voiceChatInChatView",+ "workbench.action.chat.voiceInputMode.simulate.clear",+ "workbench.action.chat.voiceInputMode.simulate.connecting",+ "workbench.action.chat.voiceInputMode.simulate.dictating",+ "workbench.action.chat.voiceInputMode.simulate.idle",+ "workbench.action.chat.voiceInputMode.simulate.listening",+ "workbench.action.chat.voiceInputMode.simulate.off",+ "workbench.action.chat.voiceInputMode.simulate.speaking",+ "workbench.action.chat.voiceInputMode.simulate.step",+ "workbench.action.chat.voiceInputMode.simulate.walkthrough.buttonHold",+ "workbench.action.chat.voiceInputMode.simulate.walkthrough.clickToggle",+ "workbench.action.chat.voiceInputMode.simulate.walkthrough.handsFree",+ "workbench.action.chat.voiceInputMode.simulate.walkthrough.keyboardHold",+ "workbench.action.clearCommandHistory",+ "workbench.action.clearEditorHistory",+ "workbench.action.clearEditorHistoryWithoutConfirm",+ "workbench.action.clearRecentFiles",+ "workbench.action.closeAllEditors",+ "workbench.action.closeAllGroups",+ "workbench.action.closeAuxiliaryBar",+ "workbench.action.closeEditorInAllGroups",+ "workbench.action.closeEditorsInOtherGroups",+ "workbench.action.closeEditorsToTheLeft",+ "workbench.action.closeFolder",+ "workbench.action.closeModalEditor",+ "workbench.action.closeOtherWindows",+ "workbench.action.closePanel",+ "workbench.action.closeSidebar",+ "workbench.action.closeWindow",+ "workbench.action.configureLanguageBasedSettings",+ "workbench.action.configureMeteredConnection",+ "workbench.action.configureRuntimeArguments",+ "workbench.action.copyEditorGroupToNewWindow",+ "workbench.action.copyEditorToNewWindow",+ "workbench.action.createTerminalEditor",+ "workbench.action.createTerminalEditorSide",+ "workbench.action.customizeLayout",+ "workbench.action.debug.configure",+ "workbench.action.debugExtensionHostAndRenderer",+ "workbench.action.debugRenderer",+ "workbench.action.decreaseViewHeight",+ "workbench.action.decreaseViewSize",+ "workbench.action.decreaseViewWidth",+ "workbench.action.duplicateActiveEditorGroupDown",+ "workbench.action.duplicateActiveEditorGroupLeft",+ "workbench.action.duplicateActiveEditorGroupRight",+ "workbench.action.duplicateActiveEditorGroupUp",+ "workbench.action.duplicateWorkspaceInNewWindow",+ "workbench.action.editor.changeEOL",+ "workbench.action.editor.changeEncoding",+ "workbench.action.editor.changeLanguageMode",+ "workbench.action.editorActionsDefault",+ "workbench.action.editorActionsTitleBar",+ "workbench.action.editorDictation.start",+ "workbench.action.editorDictation.stop",+ "workbench.action.editorLayoutSingle",+ "workbench.action.editorLayoutThreeColumns",+ "workbench.action.editorLayoutThreeRows",+ "workbench.action.editorLayoutTwoByTwoGrid",+ "workbench.action.editorLayoutTwoColumns",+ "workbench.action.editorLayoutTwoColumnsBottom",+ "workbench.action.editorLayoutTwoRows",+ "workbench.action.editorLayoutTwoRowsRight",+ "workbench.action.evenEditorWidths",+ "workbench.action.exportLogs",+ "workbench.action.files.openFile",+ "workbench.action.files.openFileFolder",+ "workbench.action.files.openFolder",+ "workbench.action.files.openFolderViaWorkspace",+ "workbench.action.files.resetActiveEditorReadonlyInSession",+ "workbench.action.files.saveAll",+ "workbench.action.files.setActiveEditorReadonlyInSession",+ "workbench.action.files.setActiveEditorWriteableInSession",+ "workbench.action.files.showOpenedFileInNewWindow",+ "workbench.action.files.toggleActiveEditorReadonlyInSession",+ "workbench.action.findInFiles",+ "workbench.action.firstEditorInGroup",+ "workbench.action.focusAboveGroup",+ "workbench.action.focusActiveEditorGroup",+ "workbench.action.focusActivityBar",+ "workbench.action.focusAuxiliaryBar",+ "workbench.action.focusBanner",+ "workbench.action.focusBelowGroup",+ "workbench.action.focusCommentOnCurrentLine",+ "workbench.action.focusFirstEditorGroup",+ "workbench.action.focusFirstSideEditor",+ "workbench.action.focusLastEditorGroup",+ "workbench.action.focusLeftGroup",+ "workbench.action.focusNextGroup",+ "workbench.action.focusNextPart",+ "workbench.action.focusOtherSideEditor",+ "workbench.action.focusPanel",+ "workbench.action.focusPreviousGroup",+ "workbench.action.focusPreviousPart",+ "workbench.action.focusRightGroup",+ "workbench.action.focusSecondSideEditor",+ "workbench.action.focusSideBar",+ "workbench.action.focusStatusBar",+ "workbench.action.focusTitleBar",+ "workbench.action.focusWindow",+ "workbench.action.generateColorTheme",+ "workbench.action.getStartedWithAccessibilityFeatures",+ "workbench.action.gotoLine",+ "workbench.action.gotoOffset",+ "workbench.action.gotoSymbol",+ "workbench.action.hideEditorActions",+ "workbench.action.hideEditorTabs",+ "workbench.action.importLog",+ "workbench.action.increaseViewHeight",+ "workbench.action.increaseViewSize",+ "workbench.action.increaseViewWidth",+ "workbench.action.inspectContextKeys",+ "workbench.action.inspectKeyMappings",+ "workbench.action.inspectKeyMappingsJSON",+ "workbench.action.installCommandLine",+ "workbench.action.joinAllGroups",+ "workbench.action.joinEditorInGroup",+ "workbench.action.joinTwoGroups",+ "workbench.action.lastEditorInGroup",+ "workbench.action.localHistory.create",+ "workbench.action.localHistory.deleteAll",+ "workbench.action.localHistory.restoreViaPicker",+ "workbench.action.lockEditorGroup",+ "workbench.action.logStorage",+ "workbench.action.logWorkingCopies",+ "workbench.action.manageAccounts",+ "workbench.action.maximizeAuxiliaryBar",+ "workbench.action.maximizeEditorHideSidebar",+ "workbench.action.minimizeOtherEditors",+ "workbench.action.minimizeOtherEditorsHideSidebar",+ "workbench.action.moveActiveEditorGroupDown",+ "workbench.action.moveActiveEditorGroupLeft",+ "workbench.action.moveActiveEditorGroupRight",+ "workbench.action.moveActiveEditorGroupUp",+ "workbench.action.moveEditorGroupToNewWindow",+ "workbench.action.moveEditorIntoNewPartAbove",+ "workbench.action.moveEditorIntoNewPartBelow",+ "workbench.action.moveEditorIntoNewPartLeft",+ "workbench.action.moveEditorIntoNewPartRight",+ "workbench.action.moveEditorLeftInGroup",+ "workbench.action.moveEditorRightInGroup",+ "workbench.action.moveEditorToAboveGroup",+ "workbench.action.moveEditorToBelowGroup",+ "workbench.action.moveEditorToEnd",+ "workbench.action.moveEditorToFirstGroup",+ "workbench.action.moveEditorToLastGroup",+ "workbench.action.moveEditorToLeftGroup",+ "workbench.action.moveEditorToNewWindow",+ "workbench.action.moveEditorToNextGroup",+ "workbench.action.moveEditorToPart",+ "workbench.action.moveEditorToPreviousGroup",+ "workbench.action.moveEditorToRightGroup",+ "workbench.action.moveEditorToStart",+ "workbench.action.moveFocusedView",+ "workbench.action.moveModalEditorToMain",+ "workbench.action.moveModalEditorToWindow",+ "workbench.action.movePanelToSecondarySideBar",+ "workbench.action.movePartDown",+ "workbench.action.movePartLeft",+ "workbench.action.movePartRight",+ "workbench.action.movePartUp",+ "workbench.action.moveSecondarySideBarToPanel",+ "workbench.action.moveView",+ "workbench.action.navigateBack",+ "workbench.action.navigateBackInEditLocations",+ "workbench.action.navigateBackInNavigationLocations",+ "workbench.action.navigateDown",+ "workbench.action.navigateEditorGroups",+ "workbench.action.navigateForward",+ "workbench.action.navigateForwardInEditLocations",+ "workbench.action.navigateForwardInNavigationLocations",+ "workbench.action.navigateLast",+ "workbench.action.navigateLeft",+ "workbench.action.navigatePreviousInEditLocations",+ "workbench.action.navigatePreviousInNavigationLocations",+ "workbench.action.navigateRight",+ "workbench.action.navigateToLastEditLocation",+ "workbench.action.navigateToLastNavigationLocation",+ "workbench.action.navigateUp",+ "workbench.action.newChatWindow",+ "workbench.action.newEmptyEditorWindow",+ "workbench.action.newGroupAbove",+ "workbench.action.newGroupBelow",+ "workbench.action.newGroupLeft",+ "workbench.action.newGroupRight",+ "workbench.action.newWindow",+ "workbench.action.nextAuxiliaryBarView",+ "workbench.action.nextEditor",+ "workbench.action.nextEditorInGroup",+ "workbench.action.nextPanelView",+ "workbench.action.nextSideBarView",+ "workbench.action.onboarding.resetShownState",+ "workbench.action.openAgentsWindow",+ "workbench.action.openChat",+ "workbench.action.openChatToSide",+ "workbench.action.openExtensionLogsFolder",+ "workbench.action.openGlobalSettings",+ "workbench.action.openLanguageModelsJson",+ "workbench.action.openLicenseUrl",+ "workbench.action.openLogsFolder",+ "workbench.action.openNextRecentlyUsedEditor",+ "workbench.action.openNextRecentlyUsedEditorInGroup",+ "workbench.action.openPreviousEditorFromHistory",+ "workbench.action.openPreviousRecentlyUsedEditor",+ "workbench.action.openPreviousRecentlyUsedEditorInGroup",+ "workbench.action.openProcessExplorer",+ "workbench.action.openQuickChat",+ "workbench.action.openRawDefaultSettings",+ "workbench.action.openRecent",+ "workbench.action.openSettings2",+ "workbench.action.openSettingsJson",+ "workbench.action.openSnippets",+ "workbench.action.openSurvey",+ "workbench.action.openView",+ "workbench.action.openWalkthrough",+ "workbench.action.openWorkspace",+ "workbench.action.openWorkspaceConfigFile",+ "workbench.action.openWorkspaceInAgentsWindow",+ "workbench.action.output.addCompoundLog",+ "workbench.action.output.remove",+ "workbench.action.output.toggleOutput",+ "workbench.action.pauseSocketWriting",+ "workbench.action.populateFileFromSnippet",+ "workbench.action.positionPanelBottom",+ "workbench.action.positionPanelLeft",+ "workbench.action.positionPanelRight",+ "workbench.action.positionPanelTop",+ "workbench.action.previousAuxiliaryBarView",+ "workbench.action.previousEditor",+ "workbench.action.previousEditorInGroup",+ "workbench.action.previousPanelView",+ "workbench.action.previousSideBarView",+ "workbench.action.problems.focus",+ "workbench.action.quickOpen",+ "workbench.action.quickOpenLeastRecentlyUsedEditor",+ "workbench.action.quickOpenLeastRecentlyUsedEditorInGroup",+ "workbench.action.quickOpenNavigateNext",+ "workbench.action.quickOpenNavigatePrevious",+ "workbench.action.quickOpenPreviousRecentlyUsedEditor",+ "workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup",+ "workbench.action.quickOpenSelectNext",+ "workbench.action.quickOpenSelectPrevious",+ "workbench.action.quickOpenTerm",+ "workbench.action.quickTextSearch",+ "workbench.action.reloadWindow",+ "workbench.action.reloadWindowWithExtensionsDisabled",+ "workbench.action.remote.close",+ "workbench.action.remote.showMenu",+ "workbench.action.removeDynamicAuthenticationProviders",+ "workbench.action.removeLargeStorageDatabaseEntries",+ "workbench.action.removeRootFolder",+ "workbench.action.reopenClosedEditor",+ "workbench.action.reopenTextEditor",+ "workbench.action.replaceInFiles",+ "workbench.action.reportPerformanceIssueUsingReporter",+ "workbench.action.resetFocusedViewLocation",+ "workbench.action.resetViewLocations",+ "workbench.action.restartExtensionHost",+ "workbench.action.restoreAuxiliaryBar",+ "workbench.action.restoreEditorsToMainWindow",+ "workbench.action.revealUserDataFolder",+ "workbench.action.revertAndCloseActiveEditor",+ "workbench.action.saveWorkspaceAs",+ "workbench.action.selectIconTheme",+ "workbench.action.selectProductIconTheme",+ "workbench.action.selectTheme",+ "workbench.action.setLogLevel",+ "workbench.action.showAboutDialog",+ "workbench.action.showAgentSessionsQuickAccess",+ "workbench.action.showAllEditors",+ "workbench.action.showAllEditorsByMostRecentlyUsed",+ "workbench.action.showAllSymbols",+ "workbench.action.showCommands",+ "workbench.action.showCommandsQuickAccess",+ "workbench.action.showContentTracing",+ "workbench.action.showEditorActions",+ "workbench.action.showEditorTab",+ "workbench.action.showEditorsInActiveGroup",+ "workbench.action.showFilesQuickAccess",+ "workbench.action.showGPUInfo",+ "workbench.action.showInteractivePlayground",+ "workbench.action.showMultipleEditorTabs",+ "workbench.action.showOutputChannels",+ "workbench.action.showPolicyDiagnostics",+ "workbench.action.showRuntimeExtensions",+ "workbench.action.showTelemetry",+ "workbench.action.showWindowLog",+ "workbench.action.snapshotTrackedDisposables",+ "workbench.action.speech.stopReadAloud",+ "workbench.action.splitEditor",+ "workbench.action.splitEditorDown",+ "workbench.action.splitEditorInGroup",+ "workbench.action.splitEditorLeft",+ "workbench.action.splitEditorOrthogonal",+ "workbench.action.splitEditorRight",+ "workbench.action.splitEditorToAboveGroup",+ "workbench.action.splitEditorToBelowGroup",+ "workbench.action.splitEditorToFirstGroup",+ "workbench.action.splitEditorToLastGroup",+ "workbench.action.splitEditorToLeftGroup",+ "workbench.action.splitEditorToNextGroup",+ "workbench.action.splitEditorToPreviousGroup",+ "workbench.action.splitEditorToRightGroup",+ "workbench.action.splitEditorUp",+ "workbench.action.startHeapTracing",+ "workbench.action.startTracing",+ "workbench.action.startTrackDisposables",+ "workbench.action.stopTracing",+ "workbench.action.stopTrackDisposables",+ "workbench.action.switchToMainWindow",+ "workbench.action.switchWindow",+ "workbench.action.syncAccountPolicy",+ "workbench.action.terminal.accessibleBufferGoToNextCommand",+ "workbench.action.terminal.accessibleBufferGoToPreviousCommand",+ "workbench.action.terminal.attachToSession",+ "workbench.action.terminal.changeColor",+ "workbench.action.terminal.changeIcon",+ "workbench.action.terminal.chat.addTerminalSelection",+ "workbench.action.terminal.chat.close",+ "workbench.action.terminal.chat.insertCommand",+ "workbench.action.terminal.chat.insertFirstCommand",+ "workbench.action.terminal.chat.runCommand",+ "workbench.action.terminal.chat.runFirstCommand",+ "workbench.action.terminal.chat.start",+ "workbench.action.terminal.chat.viewHiddenChatTerminals",+ "workbench.action.terminal.chat.viewInChat",+ "workbench.action.terminal.clear",+ "workbench.action.terminal.clearPreviousSessionHistory",+ "workbench.action.terminal.clearSelection",+ "workbench.action.terminal.copyAndClearSelection",+ "workbench.action.terminal.copyLastCommand",+ "workbench.action.terminal.copyLastCommandAndLastCommandOutput",+ "workbench.action.terminal.copyLastCommandOutput",+ "workbench.action.terminal.copySelection",+ "workbench.action.terminal.copySelectionAsHtml",+ "workbench.action.terminal.detachSession",+ "workbench.action.terminal.findNext",+ "workbench.action.terminal.findPrevious",+ "workbench.action.terminal.focus",+ "workbench.action.terminal.focusFind",+ "workbench.action.terminal.focusHover",+ "workbench.action.terminal.focusNext",+ "workbench.action.terminal.focusNextPane",+ "workbench.action.terminal.focusPrevious",+ "workbench.action.terminal.focusPreviousPane",+ "workbench.action.terminal.focusTabs",+ "workbench.action.terminal.fontZoomIn",+ "workbench.action.terminal.fontZoomOut",+ "workbench.action.terminal.fontZoomReset",+ "workbench.action.terminal.goToRecentDirectory",+ "workbench.action.terminal.hideFind",+ "workbench.action.terminal.join",+ "workbench.action.terminal.joinActiveTab",+ "workbench.action.terminal.kill",+ "workbench.action.terminal.killAll",+ "workbench.action.terminal.killEditor",+ "workbench.action.terminal.moveIntoNewWindow",+ "workbench.action.terminal.moveToEditor",+ "workbench.action.terminal.moveToTerminalPanel",+ "workbench.action.terminal.new",+ "workbench.action.terminal.newInActiveWorkspace",+ "workbench.action.terminal.newInNewWindow",+ "workbench.action.terminal.newWithCwd",+ "workbench.action.terminal.newWithProfile",+ "workbench.action.terminal.openDetectedLink",+ "workbench.action.terminal.openFileLink",+ "workbench.action.terminal.openSettings",+ "workbench.action.terminal.openUrlLink",+ "workbench.action.terminal.paste",+ "workbench.action.terminal.recordSession",+ "workbench.action.terminal.relaunch",+ "workbench.action.terminal.rename",+ "workbench.action.terminal.resetSuggestWidgetSize",+ "workbench.action.terminal.resizePaneDown",+ "workbench.action.terminal.resizePaneLeft",+ "workbench.action.terminal.resizePaneRight",+ "workbench.action.terminal.resizePaneUp",+ "workbench.action.terminal.restartPtyHost",+ "workbench.action.terminal.runActiveFile",+ "workbench.action.terminal.runRecentCommand",+ "workbench.action.terminal.runSelectedText",+ "workbench.action.terminal.scrollDown",+ "workbench.action.terminal.scrollDownPage",+ "workbench.action.terminal.scrollToBottom",+ "workbench.action.terminal.scrollToBottomAccessibleView",+ "workbench.action.terminal.scrollToNextCommand",+ "workbench.action.terminal.scrollToPreviousCommand",+ "workbench.action.terminal.scrollToTop",+ "workbench.action.terminal.scrollToTopAccessibleView",+ "workbench.action.terminal.scrollUp",+ "workbench.action.terminal.scrollUpPage",+ "workbench.action.terminal.searchWorkspace",+ "workbench.action.terminal.selectAll",+ "workbench.action.terminal.selectDefaultShell",+ "workbench.action.terminal.selectToNextCommand",+ "workbench.action.terminal.selectToNextLine",+ "workbench.action.terminal.selectToPreviousCommand",+ "workbench.action.terminal.selectToPreviousLine",+ "workbench.action.terminal.sendSequence",+ "workbench.action.terminal.sendSignal",+ "workbench.action.terminal.setDimensions",+ "workbench.action.terminal.showEnvironmentContributions",+ "workbench.action.terminal.showQuickFixes",+ "workbench.action.terminal.showTextureAtlas",+ "workbench.action.terminal.sizeToContentWidth",+ "workbench.action.terminal.split",+ "workbench.action.terminal.splitInActiveWorkspace",+ "workbench.action.terminal.startVoice",+ "workbench.action.terminal.stopVoice",+ "workbench.action.terminal.switchTerminal",+ "workbench.action.terminal.toggleFindCaseSensitive",+ "workbench.action.terminal.toggleFindRegex",+ "workbench.action.terminal.toggleFindWholeWord",+ "workbench.action.terminal.toggleStickyScroll",+ "workbench.action.terminal.toggleTerminal",+ "workbench.action.terminal.unsplit",+ "workbench.action.terminal.writeDataToTerminal",+ "workbench.action.toggleAutoSave",+ "workbench.action.toggleAuxiliaryBar",+ "workbench.action.toggleCenteredLayout",+ "workbench.action.toggleCompactAuxiliaryWindow",+ "workbench.action.toggleDevTools",+ "workbench.action.toggleEditorGroupLayout",+ "workbench.action.toggleEditorGroupLock",+ "workbench.action.toggleEditorType",+ "workbench.action.toggleEditorVisibility",+ "workbench.action.toggleEditorWidths",+ "workbench.action.toggleFullScreen",+ "workbench.action.toggleKeybindingsLog",+ "workbench.action.toggleLightDarkThemes",+ "workbench.action.toggleLockedScrolling",+ "workbench.action.toggleMaximizeEditorGroup",+ "workbench.action.toggleMaximizedAuxiliaryBar",+ "workbench.action.toggleMaximizedPanel",+ "workbench.action.toggleModalEditorMaximized",+ "workbench.action.toggleModalEditorSidebar",+ "workbench.action.toggleMultiCursorModifier",+ "workbench.action.toggleNotebookClipboardLog",+ "workbench.action.togglePanel",+ "workbench.action.toggleScreencastMode",+ "workbench.action.toggleSeparatePinnedEditorTabs",+ "workbench.action.toggleSidebarPosition",+ "workbench.action.toggleSidebarVisibility",+ "workbench.action.toggleSplitEditorInGroup",+ "workbench.action.toggleSplitEditorInGroupLayout",+ "workbench.action.toggleStatusbarVisibility",+ "workbench.action.toggleWindowAlwaysOnTop",+ "workbench.action.toggleZenMode",+ "workbench.action.triggerReconnect",+ "workbench.action.troubleshootIssue.start",+ "workbench.action.troubleshootIssue.stop",+ "workbench.action.tryNewDefaultThemes",+ "workbench.action.unifiedQuickAccess",+ "workbench.action.uninstallCommandLine",+ "workbench.action.unlockEditorGroup",+ "workbench.action.url.openUrl",+ "workbench.action.webview.openDeveloperTools",+ "workbench.action.welcomeOnboarding2026",+ "workbench.action.zenHideEditorTabs",+ "workbench.action.zenShowEditorTab",+ "workbench.action.zenShowMultipleEditorTabs",+ "workbench.action.zoomIn",+ "workbench.action.zoomOut",+ "workbench.action.zoomReset",+ "workbench.actions.view.problems",+ "workbench.agentPlugins.checkForUpdates",+ "workbench.agentPlugins.forceUpdate",+ "workbench.agentPlugins.refreshMarketplaces",+ "workbench.command.new.untitled.prompt",+ "workbench.debug.action.toggleRepl",+ "workbench.debug.panel.action.clearReplAction",+ "workbench.debug.viewlet.action.addDataBreakpointOnAddress",+ "workbench.debug.viewlet.action.addFunctionBreakpointAction",+ "workbench.debug.viewlet.action.disableAllBreakpoints",+ "workbench.debug.viewlet.action.enableAllBreakpoints",+ "workbench.debug.viewlet.action.reapplyBreakpointsAction",+ "workbench.debug.viewlet.action.removeAllBreakpoints",+ "workbench.debug.viewlet.action.toggleBreakpointsActivatedAction",+ "workbench.debug.viewlet.action.toggleBreakpointsPresentation",+ "workbench.extensions.action.clearExtensionsSearchResults",+ "workbench.extensions.action.debugExtensionHost",+ "workbench.extensions.action.devtoolsExtensionHost",+ "workbench.extensions.action.extensionUpdates",+ "workbench.extensions.action.focusExtensionsView",+ "workbench.extensions.action.installedExtensions",+ "workbench.extensions.action.manageTrustedPublishers",+ "workbench.extensions.action.openExtensionsFolder",+ "workbench.extensions.action.refreshExtension",+ "workbench.files.action.collapseExplorerFolders",+ "workbench.files.action.compareFileWith",+ "workbench.files.action.compareNewUntitledTextFiles",+ "workbench.files.action.compareWithClipboard",+ "workbench.files.action.focusFilesExplorer",+ "workbench.files.action.refreshFilesExplorer",+ "workbench.files.action.showActiveFileInExplorer",+ "workbench.mcp.addConfiguration",+ "workbench.mcp.browseResources",+ "workbench.mcp.installFromManifest",+ "workbench.mcp.listServer",+ "workbench.mcp.openRemoteUserMcpJson",+ "workbench.mcp.openUserMcpJson",+ "workbench.mcp.openWorkspaceFolderMcpJson",+ "workbench.mcp.openWorkspaceMcpJson",+ "workbench.mcp.resetCachedTools",+ "workbench.mcp.resetTrust",+ "workbench.mcp.showInstalledServers",+ "workbench.notebook.layout.configure",+ "workbench.notebook.layout.gettingStarted",+ "workbench.notebook.layout.select",+ "workbench.panel.chat",+ "workbench.profiles.actions.cleanupProfiles",+ "workbench.profiles.actions.createFromCurrentProfile",+ "workbench.profiles.actions.createProfile",+ "workbench.profiles.actions.createTemporaryProfile",+ "workbench.profiles.actions.deleteProfile",+ "workbench.profiles.actions.exportProfile",+ "workbench.profiles.actions.newWindowWithProfile",+ "workbench.profiles.actions.resetWorkspaces",+ "workbench.profiles.actions.switchProfile",+ "workbench.trust.configure",+ "workbench.trust.manage",+ "workbench.userDataSync.actions.downloadSyncActivity",+ "workbench.view.debug",+ "workbench.view.explorer",+ "workbench.view.extension.references-view",+ "workbench.view.extension.test",+ "workbench.view.extensions",+ "workbench.view.remote",+ "workbench.view.scm",+ "workbench.view.search",+ "workbench.view.voiceTranscriptsContainer",+ "~remote.forwardedPortsContainer"+ ],+ "viewContainers": [+ "refactorPreview",+ "terminal",+ "workbench.panel.chat",+ "workbench.panel.markers",+ "workbench.panel.output",+ "workbench.panel.repl",+ "workbench.panel.testResults",+ "workbench.view.debug",+ "workbench.view.explorer",+ "workbench.view.extension.test",+ "workbench.view.extensions",+ "workbench.view.remote",+ "workbench.view.scm",+ "workbench.view.search",+ "workbench.view.voiceTranscriptsContainer",+ "~remote.forwardedPortsContainer"+ ],+ "viewIds": [+ "extensions.recommendedList",+ "outline",+ "refactorPreview",+ "terminal",+ "timeline",+ "workbench.debug.breakPointsView",+ "workbench.debug.callStackView",+ "workbench.debug.loadedScriptsView",+ "workbench.debug.variablesView",+ "workbench.debug.watchExpressionsView",+ "workbench.debug.welcome",+ "workbench.explorer.emptyView",+ "workbench.explorer.openEditorsView",+ "workbench.panel.chat.updateRequired",+ "workbench.panel.chat.view.copilot",+ "workbench.panel.markers.view",+ "workbench.panel.output",+ "workbench.panel.repl.view",+ "workbench.panel.testResults.view",+ "workbench.scm",+ "workbench.scm.history",+ "workbench.scm.repositories",+ "workbench.view.search",+ "workbench.view.testCoverage",+ "workbench.view.testing",+ "workbench.view.voiceTranscripts",+ "workbench.views.agentPlugins.installed",+ "workbench.views.agentPlugins.marketplace",+ "workbench.views.extensions.builtinFeatureExtensions",+ "workbench.views.extensions.builtinProgrammingLanguageExtensions",+ "workbench.views.extensions.builtinThemeExtensions",+ "workbench.views.extensions.deprecatedExtensions",+ "workbench.views.extensions.disabled",+ "workbench.views.extensions.enabled",+ "workbench.views.extensions.installed",+ "workbench.views.extensions.marketplace",+ "workbench.views.extensions.marketplaceAccess",+ "workbench.views.extensions.otherRecommendations",+ "workbench.views.extensions.popular",+ "workbench.views.extensions.restartRequired",+ "workbench.views.extensions.searchBuiltin",+ "workbench.views.extensions.searchDisabled",+ "workbench.views.extensions.searchEnabled",+ "workbench.views.extensions.searchInstalled",+ "workbench.views.extensions.searchOutdated",+ "workbench.views.extensions.searchRecentlyUpdated",+ "workbench.views.extensions.searchWorkspaceUnsupported",+ "workbench.views.extensions.untrustedPartiallySupportedExtensions",+ "workbench.views.extensions.untrustedUnsupportedExtensions",+ "workbench.views.extensions.virtualPartiallySupportedExtensions",+ "workbench.views.extensions.virtualUnsupportedExtensions",+ "workbench.views.extensions.workspaceRecommendations",+ "workbench.views.mcp.installed",+ "workbench.views.mcp.marketplace",+ "~remote.forwardedPorts"+ ],"nlsKeys": {"MenubarAppearanceMenu": {"&&Toggle Editor Sticky Scroll": "vs/editor/contrib/stickyScroll/browser/stickyScrollActions#mitoggleStickyScroll",diff --git a/native/crates/app/src/command_palette/tests.rs b/native/crates/app/src/command_palette/tests.rsindex b1c22e79b6c..0f8a51074ce 100644--- a/native/crates/app/src/command_palette/tests.rs+++ b/native/crates/app/src/command_palette/tests.rs@@ -205,3 +205,48 @@ fn update_commands_take_the_product_name_as_category() {assert_eq!(check.label(), "VSRustium: Check for Updates...");assert_eq!(reference_label("update.checkForUpdate"), Some("VSRustium: Check for Updates..."));}++/// menusExtensionPoint.ts `isValidCommand` and `handleCommand`: an invalid command is skipped with an error, an id+/// already registered is an info message.+#[test]+fn contributed_command_messages() {+ let first = ScannedExtension { id: "test.first".into(), location: "/first".into(), description: serde_json::json!({ "name": "first", "displayName": "First", "contributes": { "commands": [{ "command": "shared.run", "title": "Run" }] } }) };+ let second = ScannedExtension {+ id: "test.commands".into(),+ location: "/commands".into(),+ description: serde_json::json!({ "name": "commands", "contributes": { "commands": [+ null,+ { "title": "No Id" },+ { "command": "c.untitled" },+ { "command": "c.blank", "title": " " },+ { "command": "c.object", "title": { "value": "Object" } },+ { "command": "c.short", "title": "Short", "shortTitle": 3 },+ { "command": "c.enablement", "title": "Enablement", "enablement": true },+ { "command": "c.category", "title": "Category", "category": " " },+ { "command": "c.icon", "title": "Icon", "icon": { "dark": "dark.svg" } },+ { "command": "shared.run", "title": "Run Again" },+ { "command": "workbench.action.reloadWindow", "title": "Reload" },+ { "command": "c.valid", "title": "Valid", "icon": { "dark": "dark.svg", "light": "light.svg" } }+ ] } }),+ };+ let menu = menu(&[first, second]);+ let messages: Vec<_> = crate::perf::messages("test.commands").into_iter().map(|(severity, message)| format!("{severity:?}: {message}")).collect();+ assert_eq!(+ messages,+ [+ "Error: expected non-empty value.",+ "Error: property `command` is mandatory and must be of type `string`",+ "Error: property `title` is mandatory and must be of type `string` or `object`",+ "Error: property `title` is mandatory and must be of type `string`",+ "Error: properties `title.value` and `title.original` are mandatory and must be of type `string`",+ "Error: properties `shortTitle.value` and `shortTitle.original` are mandatory and must be of type `string`",+ "Error: property `precondition` can be omitted or must be of type `string`",+ "Error: property `category` is mandatory and must be of type `string`",+ "Error: property `icon` can be omitted or must be either a string or a literal like `{dark, light}`",+ "Info: Command `shared.run` already registered by First (test.first)",+ "Info: Command `workbench.action.reloadWindow` already registered",+ ]+ );+ let ids: Vec<_> = menu.iter().filter(|item| item.source.as_ref().is_some_and(|source| source.id == "test.commands")).map(|item| item.id.as_str()).collect();+ assert_eq!(ids, ["c.valid"]);+}diff --git a/port/ledger.md b/port/ledger.mdindex dabd199d58f..f5d3e084184 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -482,7 +482,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| workbench/contrib/emergencyAlert | workbench contribution | | removed | | no AI or Microsoft services by decision (port/notes.md); API stays inert || workbench/contrib/emmet | workbench contribution | M13 | verified | | workbench/emmet.rs: Emmet: Expand Abbreviation (`emmet.expandAbbreviation` with the language at the cursor and the emmet parent mode of its grammar's scope, emmetAction.test.ts cases), Tab with `emmet.triggerExpansionOnTab`, the Edit menu entry: cargo test -p app emmet menubar || workbench/contrib/encryption | workbench contribution | M10 | n/a | | encryption.contribution.ts only migrates Linux `password-store` argv values to gnome-libsecret; the port runs on macOS and keeps secrets in the Keychain |-| workbench/contrib/extensions | workbench contribution | M18 | ported | [3 L] snippet_completions.rs:121: the Runtime Status Messages list the `collector` messages of the snippets, keybindings, languages, statusBarItems, viewsWelcome, debuggers, menus and submenus points only; those of commands, views, viewsContainers, configuration, jsonValidation, colors, icons, semanticToken*, problemMatchers, problemPatterns, grammars, notebooks and authentication are not ported | Extensions view, queries, details editor, enablement, updates, badge, Help: Start/Continue/Stop Extension Bisect (services/extensionManagement/browser/extensionBisect.ts: state in the application storage across reloads, bisect-disabled extensions as DisabledByEnvironment in the window and out of the host, the urgent sticky prompt, the default-checked Keep this extension disabled; Report Issue & Continue is out with the removed contrib/issue): cargo test -p app extension_bisect, bisect_finds_the_extension_and_keeps_it_disabled; cargo test -p app extension (extensionsViews.test.ts, extensionQuery.test.ts, extensionEnablementService.test.ts cases); Features tab tables and markdown of extensionFeaturesTab.ts and the registered renderers: cargo test -p app extension_features; Runtime Status Uncaught Errors from `$onExtensionRuntimeError` and Messages: cargo test -p app the_runtime_status_lists_uncaught_errors_and_messages, invalid_contributed, static_entries_need_the_proposal, group_needs_the_proposal, debuggers_merge_by_type_and_keep_the_built_in_values, skipped_menu_contributions_are_extension_messages; ui-pair port/fixtures/extensions/ui-view.json (view, search, details) against the reference |+| workbench/contrib/extensions | workbench contribution | M18 | ported | [3 L] snippet_completions.rs:121: the Runtime Status Messages list the `collector` messages of the snippets, keybindings, languages, statusBarItems, viewsWelcome, debuggers, menus, submenus and commands points only; those of views, viewsContainers, configuration, jsonValidation, colors, icons, semanticToken*, problemMatchers, problemPatterns, grammars, notebooks and authentication are not ported | Extensions view, queries, details editor, enablement, updates, badge, Help: Start/Continue/Stop Extension Bisect (services/extensionManagement/browser/extensionBisect.ts: state in the application storage across reloads, bisect-disabled extensions as DisabledByEnvironment in the window and out of the host, the urgent sticky prompt, the default-checked Keep this extension disabled; Report Issue & Continue is out with the removed contrib/issue): cargo test -p app extension_bisect, bisect_finds_the_extension_and_keeps_it_disabled; cargo test -p app extension (extensionsViews.test.ts, extensionQuery.test.ts, extensionEnablementService.test.ts cases); Features tab tables and markdown of extensionFeaturesTab.ts and the registered renderers: cargo test -p app extension_features; Runtime Status Uncaught Errors from `$onExtensionRuntimeError` and Messages: cargo test -p app the_runtime_status_lists_uncaught_errors_and_messages, invalid_contributed, static_entries_need_the_proposal, group_needs_the_proposal, debuggers_merge_by_type_and_keep_the_built_in_values, skipped_menu_contributions_are_extension_messages, contributed_command_messages; ui-pair port/fixtures/extensions/ui-view.json (view, search, details) against the reference || workbench/contrib/externalTerminal | workbench contribution | M15 | verified | | workbench/external_terminal.rs: Open New External Terminal (`workbench.action.terminal.openNativeConsole`, cmd+shift+c), with several workspace folders after the Select workspace folder pick (cargo test -p app open_native_console_picks_a_folder_in_a_multi_root_workspace); cargo test -p app external_terminal; ui-pair (port/results/terminal.md) || workbench/contrib/externalUriOpener | workbench contribution | M12 | verified | | workbench/opener.rs: externalUriOpenerService.ts getRequestedOpener (workbench.externalUriOpeners globs), chooseOpener, "How would you like to open: {0}" picker; no Simple Browser (out of scope); verified at port-m12b-verify: cargo test -p app opener 4/4; Simple Browser is out of scope by decision || workbench/contrib/files | workbench contribution | M12 | ported | [3 M] Files m12: non-file workspace folders | Cmd+V pastes the files another app copied after explorer.confirmPasteNative (explorerView.ts paste listener, fileActions.ts `pasteFileHandler`: cargo test -p app cmd_v_pastes_the_files_finder_copied); Dragged workspace roots reorder before or after a root by the pointer's half, or to the end, with the list.dropBetweenBackground line (explorerViewer.ts `doHandleRootDrop`: cargo test -p app dragging_a_root_reorders_the_workspace_folders; ui-pair dragShot of a three-root workspace, line over a root and below the rows matches); Compact folders off while optimized for a screen reader (explorerView.ts `isCompressionEnabled`: cargo test -p app compacts_single_child_folders_into_one_row); A workspace root that fails to resolve: the single folder's file item of its own resource, the "!" decoration in `list.invalidItemForeground` with "Unable to resolve workspace folder (...)" (explorerViewer.ts `getChildren`, explorerDecorationsProvider.ts: cargo test -p app a_workspace_root_that_fails_to_resolve_is_decorated_with_its_error; ui-pair of a two-root workspace with a missing folder, row and hover match); a copy soft-reverts the target's dirty model, which shows the copied file (workingCopyFileService.ts `doMoveOrCopy`: cargo test -p app a_copy_onto_a_dirty_model_reverts_it_to_the_copied_file); An unreadable folder expands to no children without an error (fileService.ts `toFileStat`: cargo test -p app an_unreadable_folder_expands_to_no_children); Explorer tree read from disk (explorer.rs): folders first, default excludes, click to expand, click opens a file as preview, double click pins, selection follows the active editor; Seti file icons and compareFileNamesDefault sort; workspace folders as roots, first five expanded (cargo test -p app); new file and folder, rename, delete, copy, cut, paste, drag and drop and undo through the working copy file operations (cargo test -p app explorer_actions, file_actions); "Do not ask me again" as the NSAlert suppression checkbox (dialog.rs); the context menu with the items whose commands the port has (port/results/contextmenu.md); tree view state in workspace storage (cargo test -p app view_state); file nesting with the explorerFileNestingTrie.test.ts cases (cargo test -p app nest); copyFilePath, copyRelativeFilePath and revealFileInOS (cargo test -p app copy_path, copied_path_labels); compact folders (cargo test -p app compact, get_context, compressed_navigation); Explorer find (cargo test -p app explorer_find find_filters); Finder drops through ExternalFileImport (cargo test -p app files_dropped_from_finder); explorer.sortOrder and sortOrderLexicographicOptions; explorer.autoReveal; list keyboard commands; the view title actions on hover or focus, revealInExplorer, showActiveFileInExplorer and the other file actions (cargo test -p app view_title_and_file_actions); workbench.action.files.newFile and showOpenedFileInNewWindow (cargo test -p app new_file_creates); Add Folder to Workspace and removeRootFolder (workbench/workspace_editing.rs, ui-pair port/fixtures/ui-pair/m12/workspace-folders.json); the compare commands compareFiles, selectForCompare, compareSelected, compareFileWith, compareWithSaved, compareWithClipboard, compareNewUntitledTextFiles (workbench/file_compare.rs: cargo test -p app file_compare); compare with saved by its chord: ui-pair port/fixtures/ui-pair/m12/compare-saved.json (the modified side has its own editor and cursor, at the first change: cargo test -p app file_compare; left the breadcrumbs editor type picker); Find in Folder..., Open in Integrated/External Terminal (cargo test -p app explorer_actions; ui-pair m12/find-in-folder.json and m12/folder-terminal.json), high contrast list outline (icons.json hc matches); rename, delete, new file and drag and drop with its move confirmation: ui-pair m12/explorer-ops.json matches; `<view id>.focus` of the Explorer panes (cargo test -p app focus_view_commands); the editor placeholders: binary, too large, not found and read errors with their actions (cargo test -p app files_that_do_not_resolve; ui-pair m12/editor-placeholders.json matches); the Open Editors view: pane size limits, group rows, unsaved badge, title actions, row close and dirty actions, drag to groups (cargo test -p app open_editors body_limits_clamp; ui-pair m12/open-editors.json); pinned (sticky) editors and scrolling tab bars, sticky shrink tabs in place with the `m…` label (cargo test -p app sticky pinned_editors tab_scroll; ui-pair m12/tab-scroll.json); Explorer indent guides at the reference x, row hover background, decoration badges at 11px 8px from the end, the Unpin Editor hover again after the tab menu closes (cargo test -p app tree_guides hover unpin_hover; ui-pair m12/explorer-guides.json and m12/pinned-tabs.json match). Differences left (port/notes.md milestone 12, session m12-files-done): a long tooltip breaks one path segment earlier (GPUI's line wrapper), the pin action loses its hover style after Cmd+W until the pointer moves (gpui keyboard modality), a shrink sticky tab with a badge and no room for its name; Open With... (`explorer.openWith`, `explorerResourceAvailableEditorIds`: cargo test -p app open_with_opens_the_resource the_context_menu_selects_the_row); Compare Active File With... from a file it opens itself: ui-pair m12/compare.json, the picker, the diff and the README.md menu match (port/notes.md session compare-fix); `explorerResourceReadonly` and `explorerResourceParentReadOnly` from `isReadonly` (cargo test -p app readonly_keys_follow_the_focused_item_and_its_parent); a failed create as an error notification with Retry, a dropped folder added to the workspace (cargo test -p app a_failed_create_offers a_folder_dropped_on_the_root) |diff --git a/port/tools/ref-commands b/port/tools/ref-commandsindex 39c26d82c10..4d9a8560ead 100755--- a/port/tools/ref-commands+++ b/port/tools/ref-commands@@ -63,11 +63,15 @@ try {labels[item.command.id] = label(item.command);commandPalette.push({ id: item.command.id, title: text(item.command.title), titleKey: key(item.command.title), category: text(item.command.category), categoryKey: key(item.command.category), description: text(item.command.metadata?.description), descriptionKey: key(item.command.metadata?.description), when: item.when?.serialize(), precondition: item.command.precondition?.serialize() });}+ // menusExtensionPoint.ts reports an extension command whose id MenuRegistry.getCommand already knows.+ const menuCommands = [];for (const [id, command] of MenuRegistry.getCommands()) {if (!command.source) {labels[id] = label(command);+ menuCommands.push(id);}}+ menuCommands.sort();// unboundCommands.ts leaves registered commands with metadata.args out of the unbound ones.const commandsWithArgs = [...CommandsRegistry.getCommands()].filter(([, command]) => command.metadata?.args?.length).map(([id]) => id).sort();const contextKeys = [...RawContextKey.all()].sort((a, b) => a.key.localeCompare(b.key));@@ -94,15 +98,24 @@ try {const { Registry } = await load('/vs/platform/registry/common/platform.js');const views = await load('/vs/workbench/common/views.js');const viewsRegistry = Registry.as(views.Extensions.ViewsRegistry);+ // viewsExtensionPoint.ts warns of views for a container it does not know and of an id already registered.+ const viewContainers = [];+ const viewIds = [];for (const container of Registry.as(views.Extensions.ViewContainersRegistry).all) {addTitle(container.id, container.title);+ if (!container.extensionId) {+ viewContainers.push(container.id);+ }for (const view of viewsRegistry.getViews(container)) {+ if (!view.extensionId) {+ viewIds.push(view.id);+ }addTitle(view.id, view.name);addTitle(view.id, view.containerTitle);addTitle(view.id, view.singleViewPaneContainerTitle);}}- return { labels, commandPalette, commandsWithArgs, nlsKeys, contextKeys };+ return { labels, commandPalette, commandsWithArgs, menuCommands, viewContainers: viewContainers.sort(), viewIds: viewIds.sort(), nlsKeys, contextKeys };})()`);const { contextKeys, ...commands } = JSON.parse(JSON.stringify(dump).replace(/\uE000[\uE001-\uF000]{2}/g, ''));writeFileSync(out, JSON.stringify(commands, null, '\t') + '\n');