@codingame/monaco-vscode-api 38.0.1 → 38.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/services.js +3 -3
- package/vscode/src/vs/base/browser/browser.js +5 -6
- package/vscode/src/vs/base/browser/dom.d.ts +5 -4
- package/vscode/src/vs/base/browser/dom.js +17 -11
- package/vscode/src/vs/base/browser/domStylesheets.js +1 -1
- package/vscode/src/vs/base/browser/iframe.js +2 -2
- package/vscode/src/vs/base/browser/indexedDB.js +3 -9
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +4 -4
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +1 -1
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +1 -1
- package/vscode/src/vs/base/browser/ui/list/listView.js +1 -1
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +4 -4
- package/vscode/src/vs/base/browser/ui/radio/radio.js +1 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +2 -2
- package/vscode/src/vs/base/browser/ui/splitview/splitview.js +1 -1
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +3 -5
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +2 -2
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +6 -6
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +1 -1
- package/vscode/src/vs/base/common/arrays.js +3 -3
- package/vscode/src/vs/base/common/buffer.js +1 -1
- package/vscode/src/vs/base/common/errors.js +1 -1
- package/vscode/src/vs/base/common/event.js +3 -3
- package/vscode/src/vs/base/common/extpath.js +5 -5
- package/vscode/src/vs/base/common/filters.js +3 -3
- package/vscode/src/vs/base/common/fuzzyScorer.js +1 -1
- package/vscode/src/vs/base/common/glob.js +1 -1
- package/vscode/src/vs/base/common/history.js +1 -1
- package/vscode/src/vs/base/common/iconLabels.js +1 -1
- package/vscode/src/vs/base/common/json.js +3 -3
- package/vscode/src/vs/base/common/jsonEdit.js +1 -1
- package/vscode/src/vs/base/common/jsonFormatter.js +63 -68
- package/vscode/src/vs/base/common/keybindingParser.js +1 -1
- package/vscode/src/vs/base/common/labels.js +14 -14
- package/vscode/src/vs/base/common/markdownLinks.js +48 -32
- package/vscode/src/vs/base/common/network.js +1 -1
- package/vscode/src/vs/base/common/oauth.js +3 -3
- package/vscode/src/vs/base/common/path.js +5 -5
- package/vscode/src/vs/base/common/platform.js +10 -11
- package/vscode/src/vs/base/common/policy.js +0 -1
- package/vscode/src/vs/base/common/resources.js +2 -2
- package/vscode/src/vs/base/common/search.js +13 -19
- package/vscode/src/vs/base/common/sseParser.js +3 -3
- package/vscode/src/vs/base/common/stream.js +1 -1
- package/vscode/src/vs/base/common/strings.js +4 -4
- package/vscode/src/vs/base/common/uri.js +4 -4
- package/vscode/src/vs/base/common/validation.js +1 -1
- package/vscode/src/vs/editor/browser/config/migrateOptions.js +2 -2
- package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.js +1 -1
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +2 -2
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextState.js +2 -2
- package/vscode/src/vs/editor/browser/editorExtensions.js +1 -1
- package/vscode/src/vs/editor/browser/gpu/css/decorationCssRuleExtractor.js +1 -1
- package/vscode/src/vs/editor/browser/view.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +1 -1
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.js +1 -1
- package/vscode/src/vs/editor/common/config/editorOptions.js +3 -3
- package/vscode/src/vs/editor/common/core/edits/textEdit.js +1 -1
- package/vscode/src/vs/editor/common/core/wordHelper.js +1 -1
- package/vscode/src/vs/editor/common/cursor/cursor.js +1 -1
- package/vscode/src/vs/editor/common/cursor/cursorTypeEditOperations.js +1 -1
- package/vscode/src/vs/editor/common/cursorCommon.js +1 -1
- package/vscode/src/vs/editor/common/languageFeatureRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages/supports/inplaceReplaceSupport.js +1 -1
- package/vscode/src/vs/editor/common/languages/supports/richEditBrackets.js +2 -2
- package/vscode/src/vs/editor/common/languages/supports/tokenization.js +2 -2
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js +1 -1
- package/vscode/src/vs/editor/common/model/textModel.js +2 -2
- package/vscode/src/vs/editor/common/model/textModelSearch.js +2 -2
- package/vscode/src/vs/editor/common/model/tokens/tokenizerSyntaxTokenBackend.js +1 -1
- package/vscode/src/vs/editor/common/services/languagesAssociations.js +47 -22
- package/vscode/src/vs/editor/common/services/markerDecorationsService.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionKeybindingResolver.js +20 -20
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +1 -1
- package/vscode/src/vs/editor/contrib/comment/browser/blockCommentCommand.js +3 -3
- package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.js +4 -4
- package/vscode/src/vs/editor/contrib/find/browser/findDecorations.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findModel.js +2 -2
- package/vscode/src/vs/editor/contrib/format/browser/format.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/moveLinesCommand.js +1 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +2 -2
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +1 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetParser.js +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +1 -1
- package/vscode/src/vs/nls.js +1 -1
- package/vscode/src/vs/platform/accessibility/browser/accessibleViewRegistry.js +3 -3
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +10 -10
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/agentMergePrompt.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/changesetUri.js +0 -1
- package/vscode/src/vs/platform/agentHost/common/codexModelSelection.js +17 -9
- package/vscode/src/vs/platform/agentHost/common/meta/copilotd/toolPresentation.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +0 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation-run/reducer.js +31 -19
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/reducer.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-session/reducer.js +3 -3
- package/vscode/src/vs/platform/agentHost/common/state/sessionState.js +0 -1
- package/vscode/src/vs/platform/agentHost/common/webSocketOverDuplex.js +1 -1
- package/vscode/src/vs/platform/browserView/common/browserView.js +1 -2
- package/vscode/src/vs/platform/configuration/common/configuration.js +1 -1
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +11 -15
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configurationVariables.js +17 -12
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.js +2 -2
- package/vscode/src/vs/platform/environment/common/environmentService.js +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +1 -1
- package/vscode/src/vs/platform/files/common/watcher.js +1 -1
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/hover/browser/hoverWidget.js +1 -1
- package/vscode/src/vs/platform/jsonschemas/common/jsonContributionRegistry.js +1 -1
- package/vscode/src/vs/platform/list/browser/listService.js +1 -1
- package/vscode/src/vs/platform/markers/common/markerService.js +1 -1
- package/vscode/src/vs/platform/mcp/common/envVarResolution.js +5 -2
- package/vscode/src/vs/platform/mcp/common/mcpManagementService.js +1 -1
- package/vscode/src/vs/platform/policy/common/copilotManagedSettings.js +1 -1
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickAccess.js +1 -1
- package/vscode/src/vs/platform/remote/common/remoteAgentConnection.js +1 -1
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.js +6 -4
- package/vscode/src/vs/platform/remote/common/remoteHosts.js +2 -2
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +2 -2
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +2 -2
- package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +2 -2
- package/vscode/src/vs/platform/theme/common/colorUtils.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +2 -2
- package/vscode/src/vs/platform/theme/common/sizeUtils.js +3 -3
- package/vscode/src/vs/platform/theme/common/themeService.js +1 -1
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +4 -4
- package/vscode/src/vs/platform/tunnel/common/tunnel.js +2 -2
- package/vscode/src/vs/platform/url/common/trustedDomains.js +1 -1
- package/vscode/src/vs/platform/url/common/urlGlob.js +2 -2
- package/vscode/src/vs/platform/userDataSync/common/settingsMerge.js +12 -12
- package/vscode/src/vs/sessions/browser/openInVSCodeUtils.js +0 -1
- package/vscode/src/vs/sessions/browser/parts/mobile/contributions/mobileChangesView.js +0 -1
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackAttachmentEntry.js +0 -1
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.js +0 -1
- package/vscode/src/vs/sessions/contrib/changes/browser/changesView.js +1 -1
- package/vscode/src/vs/sessions/contrib/changes/browser/changesViewService.js +0 -1
- package/vscode/src/vs/sessions/contrib/changes/browser/createPullRequestWidget.js +2 -2
- package/vscode/src/vs/sessions/contrib/chat/browser/agentHostInputCompletions.js +1 -1
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionComparisonResult.js +5 -5
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionReferenceCompletions.js +2 -2
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostAutomationStore.js +1 -1
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/devTunnelsModule.js +47 -47
- package/vscode/src/vs/sessions/contrib/sessions/browser/views/sessionsListNotice.js +0 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostCodeInsets.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDocumentContentProviders.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostFileSystem.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWebviewMessaging.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +1 -1
- package/vscode/src/vs/workbench/browser/chatPills.js +2 -2
- package/vscode/src/vs/workbench/browser/composite.js +1 -1
- package/vscode/src/vs/workbench/browser/labels.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +4 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationAccessibleView.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +1 -3
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +1 -1
- package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +17 -21
- package/vscode/src/vs/workbench/common/editor/filteredEditorGroupModel.js +4 -4
- package/vscode/src/vs/workbench/common/notifications.js +2 -2
- package/vscode/src/vs/workbench/common/views.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostByokLmHandler.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatReferenceAttachment.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/stateToProgressAdapter.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDiscoveryPage.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementSectionRegistry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCardList.js +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationTree.js +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpServerCount.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatContextPickService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostLogSources.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/chatToolRiskAssessmentService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatClipboard.js +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentMergeContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSystemNotificationContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatPetWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWorkingLogoDraw.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNoticeHost.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerResponsiveLayout.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatPasteProviders.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPicker/modelPickerPresentation.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.js +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +17 -31
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +10 -10
- package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionQuery.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +3 -3
- package/vscode/src/vs/workbench/contrib/files/common/explorerModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/markdown/common/markedKatexExtension.js +1 -1
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerConfigurationForm.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +0 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +6 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookCellOverlays.js +16 -18
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +4 -4
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/common/search.js +2 -2
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminal/browser/agentHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testId.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +1 -1
- package/vscode/src/vs/workbench/contrib/update/browser/releaseNotesEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +1 -1
- package/vscode/src/vs/workbench/services/activity/browser/activityService.js +2 -2
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +1 -1
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverExpression.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorGroupColumn.js +6 -3
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +2 -2
- package/vscode/src/vs/workbench/services/extensions/common/workspaceContains.js +1 -1
- package/vscode/src/vs/workbench/services/keybinding/browser/unboundCommands.js +1 -1
- package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +1 -1
- package/vscode/src/vs/workbench/services/path/common/pathService.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +3 -11
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +5 -5
- package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +1 -1
- package/vscode/src/vs/workbench/services/search/common/ignoreFile.js +32 -30
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textfile/common/encoding.js +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +2 -2
- package/vscode/src/vs/workbench/services/themes/common/plistParser.js +2 -2
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +1 -1
|
@@ -234,10 +234,10 @@ class MarkerDecorations extends Disposable {
|
|
|
234
234
|
break;
|
|
235
235
|
}
|
|
236
236
|
if (marker.tags) {
|
|
237
|
-
if (marker.tags.indexOf(MarkerTag.Unnecessary) !== -1) {
|
|
237
|
+
if (( marker.tags.indexOf(MarkerTag.Unnecessary)) !== -1) {
|
|
238
238
|
inlineClassName = ClassName.EditorUnnecessaryInlineDecoration;
|
|
239
239
|
}
|
|
240
|
-
if (marker.tags.indexOf(MarkerTag.Deprecated) !== -1) {
|
|
240
|
+
if (( marker.tags.indexOf(MarkerTag.Deprecated)) !== -1) {
|
|
241
241
|
inlineClassName = ClassName.EditorDeprecatedInlineDecoration;
|
|
242
242
|
}
|
|
243
243
|
}
|
|
@@ -257,7 +257,7 @@ class MarkerDecorations extends Disposable {
|
|
|
257
257
|
}
|
|
258
258
|
_hasMarkerTag(marker, tag) {
|
|
259
259
|
if (marker.tags) {
|
|
260
|
-
return marker.tags.indexOf(tag) >= 0;
|
|
260
|
+
return ( marker.tags.indexOf(tag)) >= 0;
|
|
261
261
|
}
|
|
262
262
|
return false;
|
|
263
263
|
}
|
|
@@ -24,27 +24,27 @@ let CodeActionKeybindingResolver = class CodeActionKeybindingResolver {
|
|
|
24
24
|
this.keybindingService = keybindingService;
|
|
25
25
|
}
|
|
26
26
|
getResolver() {
|
|
27
|
-
const allCodeActionBindings = ( new Lazy(
|
|
28
|
-
item => CodeActionKeybindingResolver_1.codeActionCommands.indexOf(item.command) >= 0
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
const allCodeActionBindings = ( new Lazy(
|
|
28
|
+
() => this.keybindingService.getKeybindings().filter(item => ( CodeActionKeybindingResolver_1.codeActionCommands.indexOf(item.command)) >= 0).filter(item => item.resolvedKeybinding).map(item => {
|
|
29
|
+
let commandArgs = item.commandArgs;
|
|
30
|
+
if (item.command === organizeImportsCommandId) {
|
|
31
|
+
commandArgs = {
|
|
32
|
+
kind: CodeActionKind.SourceOrganizeImports.value
|
|
33
|
+
};
|
|
34
|
+
} else if (item.command === fixAllCommandId) {
|
|
35
|
+
commandArgs = {
|
|
36
|
+
kind: CodeActionKind.SourceFixAll.value
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
resolvedKeybinding: item.resolvedKeybinding,
|
|
41
|
+
...CodeActionCommandArgs.fromUser(commandArgs, {
|
|
42
|
+
kind: HierarchicalKind.None,
|
|
43
|
+
apply: CodeActionAutoApply.Never
|
|
44
|
+
})
|
|
34
45
|
};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
kind: CodeActionKind.SourceFixAll.value
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
resolvedKeybinding: item.resolvedKeybinding,
|
|
42
|
-
...CodeActionCommandArgs.fromUser(commandArgs, {
|
|
43
|
-
kind: HierarchicalKind.None,
|
|
44
|
-
apply: CodeActionAutoApply.Never
|
|
45
|
-
})
|
|
46
|
-
};
|
|
47
|
-
})));
|
|
46
|
+
})
|
|
47
|
+
));
|
|
48
48
|
return action => {
|
|
49
49
|
if (action.kind) {
|
|
50
50
|
const binding = this.bestKeybindingForCodeAction(action, allCodeActionBindings.value);
|
|
@@ -194,7 +194,7 @@ let CodeLensContribution = class CodeLensContribution {
|
|
|
194
194
|
const helper = ( new CodeLensHelper());
|
|
195
195
|
toDispose.forEach(l => {
|
|
196
196
|
l.dispose(helper, viewZonesAccessor);
|
|
197
|
-
this._lenses.splice(this._lenses.indexOf(l), 1);
|
|
197
|
+
this._lenses.splice(( this._lenses.indexOf(l)), 1);
|
|
198
198
|
});
|
|
199
199
|
helper.commit(decorationsAccessor);
|
|
200
200
|
});
|
|
@@ -45,18 +45,18 @@ class BlockCommentCommand {
|
|
|
45
45
|
const startLineText = model.getLineContent(startLineNumber);
|
|
46
46
|
const endLineText = model.getLineContent(endLineNumber);
|
|
47
47
|
let startTokenIndex = startLineText.lastIndexOf(startToken, startColumn - 1 + startToken.length);
|
|
48
|
-
let endTokenIndex = endLineText.indexOf(endToken, endColumn - 1 - endToken.length);
|
|
48
|
+
let endTokenIndex = ( endLineText.indexOf(endToken, endColumn - 1 - endToken.length));
|
|
49
49
|
if (startTokenIndex !== -1 && endTokenIndex !== -1) {
|
|
50
50
|
if (startLineNumber === endLineNumber) {
|
|
51
51
|
const lineBetweenTokens = startLineText.substring(startTokenIndex + startToken.length, endTokenIndex);
|
|
52
|
-
if (lineBetweenTokens.indexOf(endToken) >= 0) {
|
|
52
|
+
if (( lineBetweenTokens.indexOf(endToken)) >= 0) {
|
|
53
53
|
startTokenIndex = -1;
|
|
54
54
|
endTokenIndex = -1;
|
|
55
55
|
}
|
|
56
56
|
} else {
|
|
57
57
|
const startLineAfterStartToken = startLineText.substring(startTokenIndex + startToken.length);
|
|
58
58
|
const endLineBeforeEndToken = endLineText.substring(0, endTokenIndex);
|
|
59
|
-
if (startLineAfterStartToken.indexOf(endToken) >= 0 || endLineBeforeEndToken.indexOf(endToken) >= 0) {
|
|
59
|
+
if (( startLineAfterStartToken.indexOf(endToken)) >= 0 || ( endLineBeforeEndToken.indexOf(endToken)) >= 0) {
|
|
60
60
|
startTokenIndex = -1;
|
|
61
61
|
endTokenIndex = -1;
|
|
62
62
|
}
|
|
@@ -175,9 +175,9 @@ class LineCommentCommand {
|
|
|
175
175
|
let endLineNumber = s.endLineNumber;
|
|
176
176
|
const startTokenAllowedBeforeColumn = endToken.length + Math.max(model.getLineFirstNonWhitespaceColumn(s.startLineNumber), s.startColumn);
|
|
177
177
|
let startTokenIndex = model.getLineContent(startLineNumber).lastIndexOf(startToken, startTokenAllowedBeforeColumn - 1);
|
|
178
|
-
let endTokenIndex = model.getLineContent(endLineNumber).indexOf(endToken, s.endColumn - 1 - startToken.length);
|
|
178
|
+
let endTokenIndex = ( model.getLineContent(endLineNumber).indexOf(endToken, s.endColumn - 1 - startToken.length));
|
|
179
179
|
if (startTokenIndex !== -1 && endTokenIndex === -1) {
|
|
180
|
-
endTokenIndex = model.getLineContent(startLineNumber).indexOf(endToken, startTokenIndex + startToken.length);
|
|
180
|
+
endTokenIndex = ( model.getLineContent(startLineNumber).indexOf(endToken, startTokenIndex + startToken.length));
|
|
181
181
|
endLineNumber = startLineNumber;
|
|
182
182
|
}
|
|
183
183
|
if (startTokenIndex === -1 && endTokenIndex !== -1) {
|
|
@@ -185,9 +185,9 @@ class LineCommentCommand {
|
|
|
185
185
|
startLineNumber = endLineNumber;
|
|
186
186
|
}
|
|
187
187
|
if (s.isEmpty() && (startTokenIndex === -1 || endTokenIndex === -1)) {
|
|
188
|
-
startTokenIndex = model.getLineContent(startLineNumber).indexOf(startToken);
|
|
188
|
+
startTokenIndex = ( model.getLineContent(startLineNumber).indexOf(startToken));
|
|
189
189
|
if (startTokenIndex !== -1) {
|
|
190
|
-
endTokenIndex = model.getLineContent(startLineNumber).indexOf(endToken, startTokenIndex + startToken.length);
|
|
190
|
+
endTokenIndex = ( model.getLineContent(startLineNumber).indexOf(endToken, startTokenIndex + startToken.length));
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
if (startTokenIndex !== -1 && model.getLineContent(startLineNumber).charCodeAt(startTokenIndex + startToken.length) === CharCode.Space) {
|
|
@@ -68,7 +68,7 @@ class FindDecorations {
|
|
|
68
68
|
this.setCurrentFindMatch(null);
|
|
69
69
|
}
|
|
70
70
|
_getDecorationIndex(decorationId) {
|
|
71
|
-
const index = this._decorations.indexOf(decorationId);
|
|
71
|
+
const index = ( this._decorations.indexOf(decorationId));
|
|
72
72
|
if (index >= 0) {
|
|
73
73
|
return index + 1;
|
|
74
74
|
}
|
|
@@ -214,7 +214,7 @@ class FindModelBoundToEditorModel {
|
|
|
214
214
|
this._editor.revealRangeInCenterIfOutsideViewport(match, ScrollType.Smooth);
|
|
215
215
|
}
|
|
216
216
|
_prevSearchPosition(before) {
|
|
217
|
-
const isUsingLineStops = this._state.isRegex && (this._state.searchString.indexOf("^") >= 0 || this._state.searchString.indexOf("$") >= 0);
|
|
217
|
+
const isUsingLineStops = this._state.isRegex && (( this._state.searchString.indexOf("^")) >= 0 || ( this._state.searchString.indexOf("$")) >= 0);
|
|
218
218
|
let {
|
|
219
219
|
lineNumber,
|
|
220
220
|
column
|
|
@@ -299,7 +299,7 @@ class FindModelBoundToEditorModel {
|
|
|
299
299
|
this._moveToPrevMatch(this._editor.getSelection().getStartPosition());
|
|
300
300
|
}
|
|
301
301
|
_nextSearchPosition(after) {
|
|
302
|
-
const isUsingLineStops = this._state.isRegex && (this._state.searchString.indexOf("^") >= 0 || this._state.searchString.indexOf("$") >= 0);
|
|
302
|
+
const isUsingLineStops = this._state.isRegex && (( this._state.searchString.indexOf("^")) >= 0 || ( this._state.searchString.indexOf("$")) >= 0);
|
|
303
303
|
let {
|
|
304
304
|
lineNumber,
|
|
305
305
|
column
|
|
@@ -410,7 +410,7 @@ function getOnTypeFormattingEdits(
|
|
|
410
410
|
if (providers.length === 0) {
|
|
411
411
|
return Promise.resolve(undefined);
|
|
412
412
|
}
|
|
413
|
-
if (providers[0].autoFormatTriggerCharacters.indexOf(ch) < 0) {
|
|
413
|
+
if (( providers[0].autoFormatTriggerCharacters.indexOf(ch)) < 0) {
|
|
414
414
|
return Promise.resolve(undefined);
|
|
415
415
|
}
|
|
416
416
|
return Promise.resolve(
|
|
@@ -204,7 +204,7 @@ class ReferencesModel {
|
|
|
204
204
|
const {
|
|
205
205
|
parent
|
|
206
206
|
} = reference;
|
|
207
|
-
let idx = parent.children.indexOf(reference);
|
|
207
|
+
let idx = ( parent.children.indexOf(reference));
|
|
208
208
|
const childCount = parent.children.length;
|
|
209
209
|
const groupCount = parent.parent.groups.length;
|
|
210
210
|
if (groupCount === 1 || next && idx + 1 < childCount || !next && idx > 0) {
|
|
@@ -215,7 +215,7 @@ class ReferencesModel {
|
|
|
215
215
|
}
|
|
216
216
|
return parent.children[idx];
|
|
217
217
|
}
|
|
218
|
-
idx = parent.parent.groups.indexOf(parent);
|
|
218
|
+
idx = ( parent.parent.groups.indexOf(parent));
|
|
219
219
|
if (next) {
|
|
220
220
|
idx = (idx + 1) % groupCount;
|
|
221
221
|
return parent.parent.groups[idx].children[0];
|
|
@@ -50,7 +50,7 @@ let SymbolNavigationService = class SymbolNavigationService {
|
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
52
|
this._currentModel = refModel;
|
|
53
|
-
this._currentIdx = refModel.references.indexOf(anchor);
|
|
53
|
+
this._currentIdx = ( refModel.references.indexOf(anchor));
|
|
54
54
|
this._ctxHasSymbols.set(true);
|
|
55
55
|
this._showMessage();
|
|
56
56
|
const editorState = ( new EditorState(this._editorService));
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js
CHANGED
|
@@ -670,7 +670,7 @@ function distinctByKey(items, key) {
|
|
|
670
670
|
});
|
|
671
671
|
}
|
|
672
672
|
function moveToFront(item, items) {
|
|
673
|
-
const index = items.indexOf(item);
|
|
673
|
+
const index = ( items.indexOf(item));
|
|
674
674
|
if (index > -1) {
|
|
675
675
|
return [item, ...items.slice(0, index), ...items.slice(index + 1)];
|
|
676
676
|
}
|
|
@@ -228,7 +228,7 @@ let MoveLinesCommand = class MoveLinesCommand {
|
|
|
228
228
|
enterPrefix = indentConverter.unshiftIndent(enter.indentation) + enter.appendText;
|
|
229
229
|
}
|
|
230
230
|
const movingLineText = model.getLineContent(line);
|
|
231
|
-
if (this.trimStart(movingLineText).indexOf(this.trimStart(enterPrefix)) >= 0) {
|
|
231
|
+
if (( this.trimStart(movingLineText).indexOf(this.trimStart(enterPrefix))) >= 0) {
|
|
232
232
|
const oldIndentation = getLeadingWhitespace(model.getLineContent(line));
|
|
233
233
|
let newIndentation = getLeadingWhitespace(enterPrefix);
|
|
234
234
|
const indentMetadataOfMovelingLine = getIndentMetadata(model, line, this._languageConfigurationService);
|
|
@@ -182,7 +182,7 @@ let AbstractGotoSymbolQuickAccessProvider = class AbstractGotoSymbolQuickAccessP
|
|
|
182
182
|
if (token.isCancellationRequested) {
|
|
183
183
|
return [];
|
|
184
184
|
}
|
|
185
|
-
const filterBySymbolKind = query.original.indexOf(AbstractGotoSymbolQuickAccessProvider_1.SCOPE_PREFIX) === 0;
|
|
185
|
+
const filterBySymbolKind = ( query.original.indexOf(AbstractGotoSymbolQuickAccessProvider_1.SCOPE_PREFIX)) === 0;
|
|
186
186
|
const filterPos = filterBySymbolKind ? 1 : 0;
|
|
187
187
|
let symbolQuery;
|
|
188
188
|
let containerQuery;
|
|
@@ -247,7 +247,7 @@ let AbstractGotoSymbolQuickAccessProvider = class AbstractGotoSymbolQuickAccessP
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
const deprecated = symbol.tags && symbol.tags.indexOf(SymbolTag.Deprecated) >= 0;
|
|
250
|
+
const deprecated = symbol.tags && ( symbol.tags.indexOf(SymbolTag.Deprecated)) >= 0;
|
|
251
251
|
filteredSymbolPicks.push({
|
|
252
252
|
index,
|
|
253
253
|
kind: symbol.kind,
|
|
@@ -254,7 +254,7 @@ let ModelSemanticColoring = class ModelSemanticColoring extends Disposable {
|
|
|
254
254
|
this._setDocumentSemanticTokens(provider, tokens || null, styling, pendingChanges);
|
|
255
255
|
}
|
|
256
256
|
}, err => {
|
|
257
|
-
const isExpectedError = err && (isCancellationError(err) || (typeof err.message === "string" && err.message.indexOf("busy") !== -1));
|
|
257
|
+
const isExpectedError = err && (isCancellationError(err) || (typeof err.message === "string" && ( err.message.indexOf("busy")) !== -1));
|
|
258
258
|
if (!isExpectedError) {
|
|
259
259
|
onUnexpectedError(err);
|
|
260
260
|
}
|
|
@@ -129,7 +129,7 @@ class Marker {
|
|
|
129
129
|
const {
|
|
130
130
|
parent
|
|
131
131
|
} = child;
|
|
132
|
-
const idx = parent.children.indexOf(child);
|
|
132
|
+
const idx = ( parent.children.indexOf(child));
|
|
133
133
|
const newChildren = parent.children.slice(0);
|
|
134
134
|
newChildren.splice(idx, 1, ...others);
|
|
135
135
|
parent._children = newChildren;
|
|
@@ -665,14 +665,14 @@ class PriorityRegistry {
|
|
|
665
665
|
this._items = ( new Array());
|
|
666
666
|
}
|
|
667
667
|
register(value) {
|
|
668
|
-
if (this._items.indexOf(value) !== -1) {
|
|
668
|
+
if (( this._items.indexOf(value)) !== -1) {
|
|
669
669
|
throw ( new Error("Value is already registered"));
|
|
670
670
|
}
|
|
671
671
|
this._items.push(value);
|
|
672
672
|
this._items.sort((s1, s2) => this.prioritySelector(s2) - this.prioritySelector(s1));
|
|
673
673
|
return {
|
|
674
674
|
dispose: () => {
|
|
675
|
-
const idx = this._items.indexOf(value);
|
|
675
|
+
const idx = ( this._items.indexOf(value));
|
|
676
676
|
if (idx >= 0) {
|
|
677
677
|
this._items.splice(idx, 1);
|
|
678
678
|
}
|
|
@@ -167,7 +167,7 @@ let ItemRenderer = class ItemRenderer {
|
|
|
167
167
|
...ThemeIcon.asClassNameArray(CompletionItemKinds.toIcon(completion.kind))
|
|
168
168
|
);
|
|
169
169
|
}
|
|
170
|
-
if (completion.tags && completion.tags.indexOf(CompletionItemTag.Deprecated) >= 0) {
|
|
170
|
+
if (completion.tags && ( completion.tags.indexOf(CompletionItemTag.Deprecated)) >= 0) {
|
|
171
171
|
labelOptions.extraClasses = (labelOptions.extraClasses || []).concat(["deprecated"]);
|
|
172
172
|
labelOptions.matches = [];
|
|
173
173
|
}
|
|
@@ -335,7 +335,7 @@ StandaloneDiffEditor2 = ( __decorate([( __param(2, IInstantiationService)), ( __
|
|
|
335
335
|
function createTextModel(modelService, languageService, value, languageId, uri) {
|
|
336
336
|
value = value || "";
|
|
337
337
|
if (!languageId) {
|
|
338
|
-
const firstLF = value.indexOf("\n");
|
|
338
|
+
const firstLF = ( value.indexOf("\n"));
|
|
339
339
|
let firstLine = value;
|
|
340
340
|
if (firstLF !== -1) {
|
|
341
341
|
firstLine = value.substring(0, firstLF);
|
package/vscode/src/vs/nls.js
CHANGED
|
@@ -6,7 +6,7 @@ function getNLSMessages() {
|
|
|
6
6
|
function getNLSLanguage() {
|
|
7
7
|
return globalThis._VSCODE_NLS_LANGUAGE;
|
|
8
8
|
}
|
|
9
|
-
const isPseudo = getNLSLanguage() === "pseudo" || (typeof document !== "undefined" && document.location && typeof document.location.hash === "string" && document.location.hash.indexOf("pseudo=true") >= 0);
|
|
9
|
+
const isPseudo = getNLSLanguage() === "pseudo" || (typeof document !== "undefined" && document.location && typeof document.location.hash === "string" && ( document.location.hash.indexOf("pseudo=true")) >= 0);
|
|
10
10
|
function _format(message, args) {
|
|
11
11
|
let result;
|
|
12
12
|
if (args.length === 0) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
const AccessibleViewRegistry = new class AccessibleViewRegistry {
|
|
3
|
+
const AccessibleViewRegistry = new (class AccessibleViewRegistry {
|
|
4
4
|
constructor() {
|
|
5
5
|
this._implementations = [];
|
|
6
6
|
}
|
|
@@ -8,7 +8,7 @@ const AccessibleViewRegistry = new class AccessibleViewRegistry {
|
|
|
8
8
|
this._implementations.push(implementation);
|
|
9
9
|
return {
|
|
10
10
|
dispose: () => {
|
|
11
|
-
const idx = this._implementations.indexOf(implementation);
|
|
11
|
+
const idx = ( this._implementations.indexOf(implementation));
|
|
12
12
|
if (idx !== -1) {
|
|
13
13
|
this._implementations.splice(idx, 1);
|
|
14
14
|
}
|
|
@@ -18,6 +18,6 @@ const AccessibleViewRegistry = new class AccessibleViewRegistry {
|
|
|
18
18
|
getImplementations() {
|
|
19
19
|
return this._implementations;
|
|
20
20
|
}
|
|
21
|
-
};
|
|
21
|
+
})();
|
|
22
22
|
|
|
23
23
|
export { AccessibleViewRegistry };
|
|
@@ -1316,7 +1316,7 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
1316
1316
|
if (element.section && ( this._collapsedSections.has(element.section))) {
|
|
1317
1317
|
this._toggleSection(element.section);
|
|
1318
1318
|
}
|
|
1319
|
-
const index = this._list.indexOf(element);
|
|
1319
|
+
const index = ( this._list.indexOf(element));
|
|
1320
1320
|
if (index >= 0) {
|
|
1321
1321
|
this._list.setFocus([index]);
|
|
1322
1322
|
this._list.reveal(index);
|
|
@@ -1344,7 +1344,7 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
1344
1344
|
if (!preserveHover && typeof content === "function" && isHTMLElement(preservedContent)) {
|
|
1345
1345
|
preservedItem?.hover?.disposeContent?.(preservedContent);
|
|
1346
1346
|
}
|
|
1347
|
-
const previousRow = options?.animateItemMove && preservePanel && this._currentSubmenuElement ? this._getRowElement(this._list.indexOf(this._currentSubmenuElement))?.getBoundingClientRect() : undefined;
|
|
1347
|
+
const previousRow = options?.animateItemMove && preservePanel && this._currentSubmenuElement ? this._getRowElement(( this._list.indexOf(this._currentSubmenuElement)))?.getBoundingClientRect() : undefined;
|
|
1348
1348
|
this._allMenuItems = [...items];
|
|
1349
1349
|
if (preservePanel && preservedItem) {
|
|
1350
1350
|
this._currentSubmenuElement = preservedItem;
|
|
@@ -1387,7 +1387,7 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
1387
1387
|
if (this.domNode.closest(".monaco-reduce-motion") || getWindow(this.domNode).matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
1388
1388
|
return;
|
|
1389
1389
|
}
|
|
1390
|
-
const row = this._getRowElement(this._list.indexOf(item));
|
|
1390
|
+
const row = this._getRowElement(( this._list.indexOf(item)));
|
|
1391
1391
|
if (!row) {
|
|
1392
1392
|
return;
|
|
1393
1393
|
}
|
|
@@ -1442,7 +1442,7 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
1442
1442
|
if (item.section && ( this._collapsedSections.has(item.section))) {
|
|
1443
1443
|
this._toggleSection(item.section);
|
|
1444
1444
|
}
|
|
1445
|
-
const index = this._list.indexOf(item);
|
|
1445
|
+
const index = ( this._list.indexOf(item));
|
|
1446
1446
|
if (index < 0) {
|
|
1447
1447
|
return false;
|
|
1448
1448
|
}
|
|
@@ -1878,7 +1878,7 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
1878
1878
|
}
|
|
1879
1879
|
}
|
|
1880
1880
|
_removeItem(item) {
|
|
1881
|
-
const index = this._allMenuItems.indexOf(item);
|
|
1881
|
+
const index = ( this._allMenuItems.indexOf(item));
|
|
1882
1882
|
if (index >= 0) {
|
|
1883
1883
|
this._allMenuItems.splice(index, 1);
|
|
1884
1884
|
this._applyFilter();
|
|
@@ -2004,7 +2004,7 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
2004
2004
|
let target;
|
|
2005
2005
|
if (event.shiftKey) {
|
|
2006
2006
|
if (inPanel) {
|
|
2007
|
-
const panelControlIndex = controls.panelControls.indexOf(activeElement);
|
|
2007
|
+
const panelControlIndex = ( controls.panelControls.indexOf(activeElement));
|
|
2008
2008
|
if (panelControlIndex > 0) {
|
|
2009
2009
|
target = controls.panelControls[panelControlIndex - 1];
|
|
2010
2010
|
} else if (controls.toolbar?.length()) {
|
|
@@ -2040,7 +2040,7 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
2040
2040
|
}
|
|
2041
2041
|
target = controls.panelControls[0];
|
|
2042
2042
|
} else {
|
|
2043
|
-
const panelControlIndex = controls.panelControls.indexOf(activeElement);
|
|
2043
|
+
const panelControlIndex = ( controls.panelControls.indexOf(activeElement));
|
|
2044
2044
|
if (panelControlIndex >= 0) {
|
|
2045
2045
|
target = controls.panelControls[panelControlIndex + 1] ?? this._list.getHTMLElement();
|
|
2046
2046
|
}
|
|
@@ -2069,7 +2069,7 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
2069
2069
|
}
|
|
2070
2070
|
}
|
|
2071
2071
|
_showSubmenuForItem(item) {
|
|
2072
|
-
const index = this._list.indexOf(item);
|
|
2072
|
+
const index = ( this._list.indexOf(item));
|
|
2073
2073
|
if (index >= 0) {
|
|
2074
2074
|
const rowElement = this._getRowElement(index);
|
|
2075
2075
|
if (rowElement) {
|
|
@@ -2270,7 +2270,7 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
2270
2270
|
return;
|
|
2271
2271
|
}
|
|
2272
2272
|
finishActionWidgetOpeningAnimation(this._submenuContainer);
|
|
2273
|
-
const index = this._list.indexOf(currentElement);
|
|
2273
|
+
const index = ( this._list.indexOf(currentElement));
|
|
2274
2274
|
const row = index >= 0 ? this._getRowElement(index) : null;
|
|
2275
2275
|
const persistent = this._options?.persistentHover;
|
|
2276
2276
|
if (!row && (!persistent || !this._allMenuItems.includes(currentElement))) {
|
|
@@ -2543,7 +2543,7 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
2543
2543
|
if (!pendingElement) {
|
|
2544
2544
|
return;
|
|
2545
2545
|
}
|
|
2546
|
-
const index = this._list.indexOf(pendingElement);
|
|
2546
|
+
const index = ( this._list.indexOf(pendingElement));
|
|
2547
2547
|
const rowElement = index >= 0 ? this._getRowElement(index) : null;
|
|
2548
2548
|
if (rowElement) {
|
|
2549
2549
|
this._showSubmenuForElement(pendingElement, rowElement);
|
|
@@ -109,7 +109,7 @@ let PersistedMenuHideState = class PersistedMenuHideState {
|
|
|
109
109
|
const entries = this._data[menu.id];
|
|
110
110
|
if (!hidden) {
|
|
111
111
|
if (entries) {
|
|
112
|
-
const idx = entries.indexOf(commandId);
|
|
112
|
+
const idx = ( entries.indexOf(commandId));
|
|
113
113
|
if (idx >= 0) {
|
|
114
114
|
removeFastWithoutKeepingOrder(entries, idx);
|
|
115
115
|
}
|
|
@@ -121,7 +121,7 @@ let PersistedMenuHideState = class PersistedMenuHideState {
|
|
|
121
121
|
if (!entries) {
|
|
122
122
|
this._data[menu.id] = [commandId];
|
|
123
123
|
} else {
|
|
124
|
-
const idx = entries.indexOf(commandId);
|
|
124
|
+
const idx = ( entries.indexOf(commandId));
|
|
125
125
|
if (idx < 0) {
|
|
126
126
|
entries.push(commandId);
|
|
127
127
|
}
|
|
@@ -95,7 +95,7 @@ class AHPFileSystemProvider extends Disposable {
|
|
|
95
95
|
}
|
|
96
96
|
const adopted = entry;
|
|
97
97
|
return toDisposable(() => {
|
|
98
|
-
const idx = adopted.connections.indexOf(connection);
|
|
98
|
+
const idx = ( adopted.connections.indexOf(connection));
|
|
99
99
|
if (idx === -1) {
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
@@ -39,7 +39,7 @@ const authorPattern = /^(?<author>[A-Za-z0-9-_.]+(?:\[bot\])?): (?<body>[\s\S]*)
|
|
|
39
39
|
const headPattern = /^(?<ref>.*?) \((?<sha>[^()]*)\)$/;
|
|
40
40
|
const filePattern = /^(?<path>.*?)(?::(?<line>\d+))?$/;
|
|
41
41
|
function parseAgentMergePrompt(text) {
|
|
42
|
-
const openIndex = text.indexOf(stateOpenTag);
|
|
42
|
+
const openIndex = ( text.indexOf(stateOpenTag));
|
|
43
43
|
if (openIndex === -1) {
|
|
44
44
|
return undefined;
|
|
45
45
|
}
|
|
@@ -1,26 +1,34 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
const CODEX_MODEL_SELECTION_PREFIX =
|
|
4
|
-
const CODEX_COPILOT_MODEL_PROVIDER =
|
|
3
|
+
const CODEX_MODEL_SELECTION_PREFIX = "@provider=";
|
|
4
|
+
const CODEX_COPILOT_MODEL_PROVIDER = "vscode-proxy";
|
|
5
5
|
function toCodexModelSelectionId(modelProvider, modelId) {
|
|
6
6
|
return `${CODEX_MODEL_SELECTION_PREFIX}${encodeURIComponent(modelProvider)}:${encodeURIComponent(modelId)}`;
|
|
7
7
|
}
|
|
8
8
|
function parseCodexModelSelection(selection) {
|
|
9
9
|
if (!selection.id.startsWith(CODEX_MODEL_SELECTION_PREFIX)) {
|
|
10
|
-
return {
|
|
10
|
+
return {
|
|
11
|
+
modelProvider: CODEX_COPILOT_MODEL_PROVIDER,
|
|
12
|
+
modelId: selection.id
|
|
13
|
+
};
|
|
11
14
|
}
|
|
12
|
-
const separator = selection.id.indexOf(
|
|
15
|
+
const separator = ( selection.id.indexOf(":", CODEX_MODEL_SELECTION_PREFIX.length));
|
|
13
16
|
if (separator < CODEX_MODEL_SELECTION_PREFIX.length) {
|
|
14
|
-
return {
|
|
17
|
+
return {
|
|
18
|
+
modelProvider: CODEX_COPILOT_MODEL_PROVIDER,
|
|
19
|
+
modelId: selection.id
|
|
20
|
+
};
|
|
15
21
|
}
|
|
16
22
|
try {
|
|
17
23
|
return {
|
|
18
24
|
modelProvider: decodeURIComponent(selection.id.slice(CODEX_MODEL_SELECTION_PREFIX.length, separator)),
|
|
19
|
-
modelId: decodeURIComponent(selection.id.slice(separator + 1))
|
|
25
|
+
modelId: decodeURIComponent(selection.id.slice(separator + 1))
|
|
26
|
+
};
|
|
27
|
+
} catch {
|
|
28
|
+
return {
|
|
29
|
+
modelProvider: CODEX_COPILOT_MODEL_PROVIDER,
|
|
30
|
+
modelId: selection.id
|
|
20
31
|
};
|
|
21
|
-
}
|
|
22
|
-
catch {
|
|
23
|
-
return { modelProvider: CODEX_COPILOT_MODEL_PROVIDER, modelId: selection.id };
|
|
24
32
|
}
|
|
25
33
|
}
|
|
26
34
|
|
|
@@ -465,7 +465,7 @@ const labels = {
|
|
|
465
465
|
function permissionFileUri(fileName) {
|
|
466
466
|
const path = hasDriveLetter(fileName, true) || fileName.startsWith("\\\\") ? toSlashes(fileName) : fileName;
|
|
467
467
|
if (path.startsWith("//")) {
|
|
468
|
-
const separator = path.indexOf("/", 2);
|
|
468
|
+
const separator = ( path.indexOf("/", 2));
|
|
469
469
|
return ( URI.from({
|
|
470
470
|
scheme: Schemas.file,
|
|
471
471
|
authority: separator < 0 ? path.slice(2) : path.slice(2, separator),
|
|
@@ -33,7 +33,6 @@ import '../../../../base/common/strings.js';
|
|
|
33
33
|
import '../../../../base/common/htmlContent.js';
|
|
34
34
|
import '../../../../base/common/network.js';
|
|
35
35
|
import '../../../../base/common/resources.js';
|
|
36
|
-
import '../../../../nls.js';
|
|
37
36
|
import '../../../../base/common/json.js';
|
|
38
37
|
import { isAhpRootChannel, isAhpAutomationCatalogChannel, isAhpAutomationRunChannel, StateComponents } from './sessionState.js';
|
|
39
38
|
import { normalizeLegacyChatStateErrors } from './legacyProtocolCompatibility.js';
|
package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation-run/reducer.js
CHANGED
|
@@ -4,41 +4,53 @@ import { softAssertNever } from '../common/reducer-helpers.js';
|
|
|
4
4
|
|
|
5
5
|
function automationRunReducer(state, action, log) {
|
|
6
6
|
switch (action.type) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
case ActionType.AutomationRunLifecycleChanged:
|
|
8
|
+
return {
|
|
9
|
+
...state,
|
|
10
|
+
lifecycle: action.lifecycle
|
|
11
|
+
};
|
|
12
|
+
case ActionType.AutomationRunSessionSet:
|
|
13
|
+
if (state.sessions.includes(action.session)) {
|
|
14
|
+
return state;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
...state,
|
|
18
|
+
sessions: [...state.sessions, action.session]
|
|
19
|
+
};
|
|
20
|
+
case ActionType.AutomationRunSessionRemoved:
|
|
21
|
+
{
|
|
22
|
+
const index = ( state.sessions.indexOf(action.session));
|
|
16
23
|
if (index < 0) {
|
|
17
24
|
return state;
|
|
18
25
|
}
|
|
19
26
|
const sessions = state.sessions.slice();
|
|
20
27
|
sessions.splice(index, 1);
|
|
21
|
-
const next = {
|
|
28
|
+
const next = {
|
|
29
|
+
...state,
|
|
30
|
+
sessions
|
|
31
|
+
};
|
|
22
32
|
if (state.primarySession === action.session) {
|
|
23
33
|
delete next.primarySession;
|
|
24
34
|
}
|
|
25
35
|
return next;
|
|
26
36
|
}
|
|
27
|
-
|
|
28
|
-
|
|
37
|
+
case ActionType.AutomationRunPrimarySessionChanged:
|
|
38
|
+
{
|
|
39
|
+
const next = {
|
|
40
|
+
...state
|
|
41
|
+
};
|
|
29
42
|
if (action.primarySession === undefined) {
|
|
30
43
|
delete next.primarySession;
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
44
|
+
} else {
|
|
33
45
|
next.primarySession = action.primarySession;
|
|
34
46
|
}
|
|
35
47
|
return next;
|
|
36
48
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
49
|
+
case ActionType.AutomationRunCancelRequested:
|
|
50
|
+
return state;
|
|
51
|
+
default:
|
|
52
|
+
softAssertNever(action, log);
|
|
53
|
+
return state;
|
|
42
54
|
}
|
|
43
55
|
}
|
|
44
56
|
|
|
@@ -292,7 +292,7 @@ function sessionReducer(state, action, log) {
|
|
|
292
292
|
if (!list) {
|
|
293
293
|
return state;
|
|
294
294
|
}
|
|
295
|
-
const idx = list.indexOf(action.directory);
|
|
295
|
+
const idx = ( list.indexOf(action.directory));
|
|
296
296
|
if (idx < 0) {
|
|
297
297
|
return state;
|
|
298
298
|
}
|
|
@@ -309,11 +309,11 @@ function sessionReducer(state, action, log) {
|
|
|
309
309
|
if (!list) {
|
|
310
310
|
return state;
|
|
311
311
|
}
|
|
312
|
-
const idx = list.indexOf(action.directory);
|
|
312
|
+
const idx = ( list.indexOf(action.directory));
|
|
313
313
|
if (idx < 0) {
|
|
314
314
|
return state;
|
|
315
315
|
}
|
|
316
|
-
const replacementIdx = list.indexOf(action.replacement);
|
|
316
|
+
const replacementIdx = ( list.indexOf(action.replacement));
|
|
317
317
|
if (replacementIdx >= 0 && replacementIdx < idx) {
|
|
318
318
|
return {
|
|
319
319
|
...state,
|