@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
|
@@ -134,7 +134,7 @@ function getDefaultNotebookCreationOptions() {
|
|
|
134
134
|
"editor.contrib.findController",
|
|
135
135
|
"editor.contrib.emptyTextEditorHint"
|
|
136
136
|
];
|
|
137
|
-
const contributions = EditorExtensionsRegistry.getEditorContributions().filter(c => skipContributions.indexOf(c.id) === -1);
|
|
137
|
+
const contributions = EditorExtensionsRegistry.getEditorContributions().filter(c => ( skipContributions.indexOf(c.id)) === -1);
|
|
138
138
|
return {
|
|
139
139
|
menuIds: {
|
|
140
140
|
notebookToolbar: MenuId.NotebookToolbar,
|
|
@@ -2513,7 +2513,7 @@ let NotebookEditorWidget = class NotebookEditorWidget extends Disposable {
|
|
|
2513
2513
|
executionId: cell.internalMetadata.executionId
|
|
2514
2514
|
}, output, cellTop, offset);
|
|
2515
2515
|
} else {
|
|
2516
|
-
const outputIndex = cell.outputsViewModels.indexOf(output.source);
|
|
2516
|
+
const outputIndex = ( cell.outputsViewModels.indexOf(output.source));
|
|
2517
2517
|
const outputOffset = cell.getOutputOffset(outputIndex);
|
|
2518
2518
|
this._webview.updateScrollTops([{
|
|
2519
2519
|
cell,
|
|
@@ -2630,7 +2630,7 @@ let NotebookEditorWidget = class NotebookEditorWidget extends Disposable {
|
|
|
2630
2630
|
if (viewIndex === undefined) {
|
|
2631
2631
|
return;
|
|
2632
2632
|
}
|
|
2633
|
-
const outputIndex = cell.outputsViewModels.indexOf(key);
|
|
2633
|
+
const outputIndex = ( cell.outputsViewModels.indexOf(key));
|
|
2634
2634
|
if (outputIndex < 0) {
|
|
2635
2635
|
removedItems.push(key);
|
|
2636
2636
|
return;
|
|
@@ -2665,7 +2665,7 @@ let NotebookEditorWidget = class NotebookEditorWidget extends Disposable {
|
|
|
2665
2665
|
_updateOutputHeight(cellInfo, output, outputHeight, isInit, source) {
|
|
2666
2666
|
const cell = this.viewModel?.viewCells.find(vc => vc.handle === cellInfo.cellHandle);
|
|
2667
2667
|
if (cell && cell instanceof CodeCellViewModel) {
|
|
2668
|
-
const outputIndex = cell.outputsViewModels.indexOf(output);
|
|
2668
|
+
const outputIndex = ( cell.outputsViewModels.indexOf(output));
|
|
2669
2669
|
if (outputIndex > -1) {
|
|
2670
2670
|
this._debug("update cell output", cell.handle, outputHeight);
|
|
2671
2671
|
cell.updateOutputHeight(outputIndex, outputHeight, source);
|
|
@@ -177,7 +177,7 @@ let NotebookOptions = class NotebookOptions extends Disposable {
|
|
|
177
177
|
const cssRules = this.codeEditorService.resolveDecorationCSSRules(e);
|
|
178
178
|
if (cssRules !== null) {
|
|
179
179
|
for (let i = 0; i < cssRules.length; i++) {
|
|
180
|
-
if ((cssRules[i].selectorText.endsWith("::after") || cssRules[i].selectorText.endsWith("::after")) && cssRules[i].cssText.indexOf("top:") > -1) {
|
|
180
|
+
if ((cssRules[i].selectorText.endsWith("::after") || cssRules[i].selectorText.endsWith("::after")) && ( cssRules[i].cssText.indexOf("top:")) > -1) {
|
|
181
181
|
const editorOptions = this.configurationService.getValue("editor");
|
|
182
182
|
updateEditorTopPadding(
|
|
183
183
|
createBareFontInfoFromRawSettings(editorOptions, PixelRatio.getInstance(this.targetWindow).value).lineHeight + 2
|
|
@@ -97,7 +97,7 @@ let CellOutputElement = class CellOutputElement extends Disposable {
|
|
|
97
97
|
);
|
|
98
98
|
const pickedMimeType = mimeTypes[pick];
|
|
99
99
|
if (pickedMimeType.mimeType === this.renderResult.mimeType && pickedMimeType.rendererId === this.renderResult.renderer.id) {
|
|
100
|
-
const index = this.viewCell.outputsViewModels.indexOf(this.output);
|
|
100
|
+
const index = ( this.viewCell.outputsViewModels.indexOf(this.output));
|
|
101
101
|
this.notebookEditor.updateOutput(this.viewCell, this.renderResult, this.viewCell.getOutputOffset(index));
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
@@ -129,7 +129,7 @@ let CellOutputElement = class CellOutputElement extends Disposable {
|
|
|
129
129
|
return this.innerContainer;
|
|
130
130
|
}
|
|
131
131
|
render(previousSibling) {
|
|
132
|
-
const index = this.viewCell.outputsViewModels.indexOf(this.output);
|
|
132
|
+
const index = ( this.viewCell.outputsViewModels.indexOf(this.output));
|
|
133
133
|
if (this.viewCell.isOutputCollapsed || !this.notebookEditor.hasModel()) {
|
|
134
134
|
this.cellOutputContainer.flagAsStale();
|
|
135
135
|
return undefined;
|
|
@@ -147,7 +147,7 @@ let CellOutputElement = class CellOutputElement extends Disposable {
|
|
|
147
147
|
}
|
|
148
148
|
const selectedPresentation = mimeTypes[pick];
|
|
149
149
|
let renderer = this.notebookService.getRendererInfo(selectedPresentation.rendererId);
|
|
150
|
-
if (!renderer && selectedPresentation.mimeType.indexOf("text/") > -1) {
|
|
150
|
+
if (!renderer && ( selectedPresentation.mimeType.indexOf("text/")) > -1) {
|
|
151
151
|
renderer = this.notebookService.getRendererInfo("vscode.builtin-renderer");
|
|
152
152
|
}
|
|
153
153
|
const innerContainer = this._generateInnerOutputContainer(previousSibling, selectedPresentation);
|
|
@@ -246,14 +246,12 @@ let CellOutputElement = class CellOutputElement extends Disposable {
|
|
|
246
246
|
};
|
|
247
247
|
}
|
|
248
248
|
shouldEnableCopy(mimeTypes) {
|
|
249
|
-
if (!mimeTypes.find(
|
|
250
|
-
mimeType => TEXT_BASED_MIMETYPES.indexOf(mimeType.mimeType) || mimeType.mimeType.startsWith("image/")
|
|
251
|
-
)) {
|
|
249
|
+
if (!mimeTypes.find(mimeType => ( TEXT_BASED_MIMETYPES.indexOf(mimeType.mimeType)) || mimeType.mimeType.startsWith("image/"))) {
|
|
252
250
|
return false;
|
|
253
251
|
}
|
|
254
252
|
if (isTextStreamMime(mimeTypes[0].mimeType)) {
|
|
255
253
|
const cellViewModel = this.output.cellViewModel;
|
|
256
|
-
const index = cellViewModel.outputsViewModels.indexOf(this.output);
|
|
254
|
+
const index = ( cellViewModel.outputsViewModels.indexOf(this.output));
|
|
257
255
|
if (index > 0) {
|
|
258
256
|
const previousOutput = cellViewModel.model.outputs[index - 1];
|
|
259
257
|
return !isTextStreamMime(previousOutput.outputs[0].mime);
|
|
@@ -491,7 +489,7 @@ let CellOutputContainer = class CellOutputContainer extends CellContentPart {
|
|
|
491
489
|
this.templateData.outputContainer.setTop(viewCell.layoutInfo.outputContainerOffset);
|
|
492
490
|
this.templateData.outputShowMoreContainer.setTop(viewCell.layoutInfo.outputShowMoreContainerOffset);
|
|
493
491
|
this._outputEntries.forEach(entry => {
|
|
494
|
-
const index = this.viewCell.outputsViewModels.indexOf(entry.model);
|
|
492
|
+
const index = ( this.viewCell.outputsViewModels.indexOf(entry.model));
|
|
495
493
|
if (index >= 0) {
|
|
496
494
|
const top = this.viewCell.getOutputOffsetInContainer(index);
|
|
497
495
|
entry.element.updateDOMTop(top);
|
package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js
CHANGED
|
@@ -38,7 +38,7 @@ let CollapsedCellOutput = class CollapsedCellOutput extends CellContentPart {
|
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
40
|
const textModel = this.notebookEditor.textModel;
|
|
41
|
-
const index = textModel.cells.indexOf(this.currentCell.model);
|
|
41
|
+
const index = ( textModel.cells.indexOf(this.currentCell.model));
|
|
42
42
|
if (index < 0) {
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
@@ -136,7 +136,7 @@ let NotebookCellList = class NotebookCellList extends WorkbenchList {
|
|
|
136
136
|
this._previousFocusedElements = this.getFocusedElements();
|
|
137
137
|
this._localDisposableStore.add(this.onDidChangeFocus(e => {
|
|
138
138
|
this._previousFocusedElements.forEach(element => {
|
|
139
|
-
if (e.elements.indexOf(element) < 0) {
|
|
139
|
+
if (( e.elements.indexOf(element)) < 0) {
|
|
140
140
|
element.onDeselect();
|
|
141
141
|
}
|
|
142
142
|
});
|
|
@@ -458,7 +458,7 @@ let NotebookCellList = class NotebookCellList extends WorkbenchList {
|
|
|
458
458
|
this.cellOverlays.layout();
|
|
459
459
|
}
|
|
460
460
|
getModelIndex(cell) {
|
|
461
|
-
const viewIndex = this.indexOf(cell);
|
|
461
|
+
const viewIndex = ( this.indexOf(cell));
|
|
462
462
|
return this.getModelIndex2(viewIndex);
|
|
463
463
|
}
|
|
464
464
|
getModelIndex2(viewIndex) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
async function webviewPreloads(ctx) {
|
|
4
4
|
const userAgent = navigator.userAgent;
|
|
5
|
-
const isChrome = (userAgent.indexOf("Chrome") >= 0);
|
|
5
|
+
const isChrome = (( userAgent.indexOf("Chrome")) >= 0);
|
|
6
6
|
const textEncoder = ( new TextEncoder());
|
|
7
7
|
const textDecoder = ( new TextDecoder());
|
|
8
8
|
function promiseWithResolvers() {
|
|
@@ -77,7 +77,7 @@ class BaseCellEditorOptions extends Disposable {
|
|
|
77
77
|
const editorOptionsOverride = {};
|
|
78
78
|
if (editorOptionsOverrideRaw) {
|
|
79
79
|
for (const key in editorOptionsOverrideRaw) {
|
|
80
|
-
if (key.indexOf("editor.") === 0) {
|
|
80
|
+
if (( key.indexOf("editor.")) === 0) {
|
|
81
81
|
editorOptionsOverride[key.substring(7)] = editorOptionsOverrideRaw[key];
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -43,7 +43,7 @@ function getAllOutputsText(notebook, viewCell, shortErrors = false) {
|
|
|
43
43
|
function getOutputStreamText(output) {
|
|
44
44
|
let text = "";
|
|
45
45
|
const cellViewModel = output.cellViewModel;
|
|
46
|
-
let index = cellViewModel.outputsViewModels.indexOf(output);
|
|
46
|
+
let index = ( cellViewModel.outputsViewModels.indexOf(output));
|
|
47
47
|
let count = 0;
|
|
48
48
|
while (index < cellViewModel.model.outputs.length) {
|
|
49
49
|
const nextCellOutput = cellViewModel.model.outputs[index];
|
|
@@ -241,7 +241,7 @@ let NotebookViewModel = class NotebookViewModel extends Disposable {
|
|
|
241
241
|
let endSelectionHandles = [];
|
|
242
242
|
if (selectionHandles.length) {
|
|
243
243
|
const primaryHandle = selectionHandles[0];
|
|
244
|
-
const primarySelectionIndex = this._viewCells.indexOf(this.getCellByHandle(primaryHandle));
|
|
244
|
+
const primarySelectionIndex = ( this._viewCells.indexOf(this.getCellByHandle(primaryHandle)));
|
|
245
245
|
endSelectionHandles = [primaryHandle];
|
|
246
246
|
let delta = 0;
|
|
247
247
|
for (let i = 0; i < diffs.length; i++) {
|
|
@@ -485,7 +485,7 @@ let NotebookViewModel = class NotebookViewModel extends Disposable {
|
|
|
485
485
|
return this._viewCells.findIndex(cell => cell.handle === handle);
|
|
486
486
|
}
|
|
487
487
|
getCellIndex(cell) {
|
|
488
|
-
return this._viewCells.indexOf(cell);
|
|
488
|
+
return ( this._viewCells.indexOf(cell));
|
|
489
489
|
}
|
|
490
490
|
cellAt(index) {
|
|
491
491
|
return this._viewCells[index];
|
|
@@ -9,26 +9,26 @@ class NotebookCellOverlays extends Disposable {
|
|
|
9
9
|
this.listView = listView;
|
|
10
10
|
this._lastOverlayId = 0;
|
|
11
11
|
this._overlays = Object.create(null);
|
|
12
|
-
this.domNode = createFastDomNode(createElement(
|
|
13
|
-
this.domNode.setClassName(
|
|
14
|
-
this.domNode.setPosition(
|
|
15
|
-
this.domNode.setAttribute(
|
|
16
|
-
this.domNode.setAttribute(
|
|
17
|
-
this.domNode.setWidth(
|
|
12
|
+
this.domNode = createFastDomNode(createElement("div"));
|
|
13
|
+
this.domNode.setClassName("cell-overlays");
|
|
14
|
+
this.domNode.setPosition("absolute");
|
|
15
|
+
this.domNode.setAttribute("role", "presentation");
|
|
16
|
+
this.domNode.setAttribute("aria-hidden", "true");
|
|
17
|
+
this.domNode.setWidth("100%");
|
|
18
18
|
this.listView.containerDomNode.appendChild(this.domNode.domNode);
|
|
19
19
|
}
|
|
20
20
|
changeCellOverlays(callback) {
|
|
21
21
|
let overlaysHaveChanged = false;
|
|
22
22
|
const changeAccessor = {
|
|
23
|
-
addOverlay:
|
|
23
|
+
addOverlay: overlay => {
|
|
24
24
|
overlaysHaveChanged = true;
|
|
25
25
|
return this._addOverlay(overlay);
|
|
26
26
|
},
|
|
27
|
-
removeOverlay:
|
|
27
|
+
removeOverlay: id => {
|
|
28
28
|
overlaysHaveChanged = true;
|
|
29
29
|
this._removeOverlay(id);
|
|
30
30
|
},
|
|
31
|
-
layoutOverlay:
|
|
31
|
+
layoutOverlay: id => {
|
|
32
32
|
overlaysHaveChanged = true;
|
|
33
33
|
this._layoutOverlay(id);
|
|
34
34
|
}
|
|
@@ -55,8 +55,8 @@ class NotebookCellOverlays extends Disposable {
|
|
|
55
55
|
domNode: createFastDomNode(overlay.domNode)
|
|
56
56
|
};
|
|
57
57
|
this._overlays[overlayId] = overlayWidget;
|
|
58
|
-
overlayWidget.domNode.setClassName(
|
|
59
|
-
overlayWidget.domNode.setPosition(
|
|
58
|
+
overlayWidget.domNode.setClassName("cell-overlay");
|
|
59
|
+
overlayWidget.domNode.setPosition("absolute");
|
|
60
60
|
this.domNode.appendChild(overlayWidget.domNode);
|
|
61
61
|
return overlayId;
|
|
62
62
|
}
|
|
@@ -65,9 +65,7 @@ class NotebookCellOverlays extends Disposable {
|
|
|
65
65
|
if (overlay) {
|
|
66
66
|
try {
|
|
67
67
|
this.domNode.removeChild(overlay.domNode);
|
|
68
|
-
}
|
|
69
|
-
catch {
|
|
70
|
-
}
|
|
68
|
+
} catch {}
|
|
71
69
|
delete this._overlays[id];
|
|
72
70
|
}
|
|
73
71
|
}
|
|
@@ -78,11 +76,11 @@ class NotebookCellOverlays extends Disposable {
|
|
|
78
76
|
}
|
|
79
77
|
const isInHiddenRanges = this._isInHiddenRanges(overlay);
|
|
80
78
|
if (isInHiddenRanges) {
|
|
81
|
-
overlay.domNode.setDisplay(
|
|
79
|
+
overlay.domNode.setDisplay("none");
|
|
82
80
|
return;
|
|
83
81
|
}
|
|
84
|
-
overlay.domNode.setDisplay(
|
|
85
|
-
const index = this.listView.indexOf(overlay.overlay.cell);
|
|
82
|
+
overlay.domNode.setDisplay("block");
|
|
83
|
+
const index = ( this.listView.indexOf(overlay.overlay.cell));
|
|
86
84
|
if (index === -1) {
|
|
87
85
|
return;
|
|
88
86
|
}
|
|
@@ -90,7 +88,7 @@ class NotebookCellOverlays extends Disposable {
|
|
|
90
88
|
overlay.domNode.setTop(top);
|
|
91
89
|
}
|
|
92
90
|
_isInHiddenRanges(zone) {
|
|
93
|
-
const index = this.listView.indexOf(zone.overlay.cell);
|
|
91
|
+
const index = ( this.listView.indexOf(zone.overlay.cell));
|
|
94
92
|
if (index === -1) {
|
|
95
93
|
return true;
|
|
96
94
|
}
|
|
@@ -203,7 +203,7 @@ class MimeTypeDisplayOrder {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
if (remaining.size) {
|
|
206
|
-
sorted = sorted.concat([...( remaining.keys())].sort((a, b) => this.defaultOrder.indexOf(a) - this.defaultOrder.indexOf(b)));
|
|
206
|
+
sorted = sorted.concat([...( remaining.keys())].sort((a, b) => ( this.defaultOrder.indexOf(a)) - ( this.defaultOrder.indexOf(b))));
|
|
207
207
|
}
|
|
208
208
|
return sorted;
|
|
209
209
|
}
|
|
@@ -497,7 +497,7 @@ class OnAutoForwardedAction extends Disposable {
|
|
|
497
497
|
if (this.doActionTunnels) {
|
|
498
498
|
this.doActionTunnels = this.doActionTunnels.filter(value => !removedPorts.includes(value.tunnelRemotePort));
|
|
499
499
|
}
|
|
500
|
-
if (this.lastShownPort && removedPorts.indexOf(this.lastShownPort) >= 0) {
|
|
500
|
+
if (this.lastShownPort && ( removedPorts.indexOf(this.lastShownPort)) >= 0) {
|
|
501
501
|
this.lastNotification?.close();
|
|
502
502
|
}
|
|
503
503
|
}
|
|
@@ -485,11 +485,11 @@ let ActionBarRenderer = class ActionBarRenderer {
|
|
|
485
485
|
shouldForwardArgs: true
|
|
486
486
|
}));
|
|
487
487
|
if (actions) {
|
|
488
|
-
const labelActions = actions.filter(action => action.id.toLowerCase().indexOf("label") >= 0);
|
|
488
|
+
const labelActions = actions.filter(action => ( action.id.toLowerCase().indexOf("label")) >= 0);
|
|
489
489
|
if (labelActions.length > 1) {
|
|
490
490
|
labelActions.sort((a, b) => a.label.length - b.label.length);
|
|
491
491
|
labelActions.pop();
|
|
492
|
-
actions = actions.filter(action => labelActions.indexOf(action) < 0);
|
|
492
|
+
actions = actions.filter(action => ( labelActions.indexOf(action)) < 0);
|
|
493
493
|
}
|
|
494
494
|
templateData.actionBar.push(actions, {
|
|
495
495
|
icon: true,
|
|
@@ -967,7 +967,7 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
967
967
|
if (this.isEditing) {
|
|
968
968
|
widgetContainer.classList.add("highlight");
|
|
969
969
|
if (!e) {
|
|
970
|
-
this.table?.reveal(this.table.indexOf(this.viewModel.input));
|
|
970
|
+
this.table?.reveal(( this.table.indexOf(this.viewModel.input)));
|
|
971
971
|
}
|
|
972
972
|
} else {
|
|
973
973
|
if (e && (e.tunnel.tunnelType !== TunnelType.Add)) {
|
|
@@ -1045,7 +1045,7 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
1045
1045
|
event.browserEvent.stopPropagation();
|
|
1046
1046
|
const node = event.element;
|
|
1047
1047
|
if (node) {
|
|
1048
|
-
this.table?.setFocus([this.table.indexOf(node)]);
|
|
1048
|
+
this.table?.setFocus([( this.table.indexOf(node))]);
|
|
1049
1049
|
this.tunnelTypeContext.set(node.tunnelType);
|
|
1050
1050
|
this.tunnelCloseableContext.set(!!node.closeable);
|
|
1051
1051
|
this.tunnelPrivacyContext.set(node.privacy.id);
|
|
@@ -334,7 +334,7 @@ let ReplEditor = class ReplEditor extends EditorPane {
|
|
|
334
334
|
"workbench.notebook.cellToolbar",
|
|
335
335
|
"editor.contrib.inlineCompletionsController"
|
|
336
336
|
];
|
|
337
|
-
const inputContributions = getDefaultNotebookCreationOptions().cellEditorContributions?.filter(c => skipContributions.indexOf(c.id) === -1);
|
|
337
|
+
const inputContributions = getDefaultNotebookCreationOptions().cellEditorContributions?.filter(c => ( skipContributions.indexOf(c.id)) === -1);
|
|
338
338
|
this._codeEditorWidget = this._instantiationService.createInstance(CodeEditorWidget, this._inputEditorContainer, this._editorOptions, {
|
|
339
339
|
...{
|
|
340
340
|
isSimpleWidget: false,
|
|
@@ -253,7 +253,7 @@ let AnythingQuickAccessProvider = class AnythingQuickAccessProvider extends Pick
|
|
|
253
253
|
const activePick = this.pickState.picker?.activeItems[0];
|
|
254
254
|
if (picks && activePick) {
|
|
255
255
|
const activePickIsEditorSymbol = isEditorSymbolQuickPickItem(activePick);
|
|
256
|
-
const activePickIsNoResultsInEditorSymbols = activePick === AnythingQuickAccessProvider_1.NO_RESULTS_PICK && filter.indexOf(GotoSymbolQuickAccessProvider.PREFIX) >= 0;
|
|
256
|
+
const activePickIsNoResultsInEditorSymbols = activePick === AnythingQuickAccessProvider_1.NO_RESULTS_PICK && ( filter.indexOf(GotoSymbolQuickAccessProvider.PREFIX)) >= 0;
|
|
257
257
|
if (!activePickIsEditorSymbol && !activePickIsNoResultsInEditorSymbols) {
|
|
258
258
|
this.pickState.lastGlobalPicks = {
|
|
259
259
|
items: picks,
|
|
@@ -156,7 +156,7 @@ let SymbolsQuickAccessProvider = class SymbolsQuickAccessProvider extends Picker
|
|
|
156
156
|
symbolScore += containerScore;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
const deprecated = symbol.tags ? symbol.tags.indexOf(SymbolTag.Deprecated) >= 0 : false;
|
|
159
|
+
const deprecated = symbol.tags ? ( symbol.tags.indexOf(SymbolTag.Deprecated)) >= 0 : false;
|
|
160
160
|
symbolPicks.push({
|
|
161
161
|
symbol,
|
|
162
162
|
resource: symbolUri,
|
|
@@ -23,7 +23,7 @@ var WorkspaceSymbolProviderRegistry;
|
|
|
23
23
|
return {
|
|
24
24
|
dispose() {
|
|
25
25
|
if (support) {
|
|
26
|
-
const idx = _supports.indexOf(support);
|
|
26
|
+
const idx = ( _supports.indexOf(support));
|
|
27
27
|
if (idx >= 0) {
|
|
28
28
|
_supports.splice(idx, 1);
|
|
29
29
|
support = undefined;
|
|
@@ -103,7 +103,7 @@ function getOutOfWorkspaceEditorResources(accessor) {
|
|
|
103
103
|
const LINE_COLON_PATTERN = /\s?[#:\(](?:line )?(\d*)(?:[#:,](\d*))?(?:-(\d*)(?:[#:,](\d*))?)?\)?:?\s*$/;
|
|
104
104
|
function extractRangeFromFilter(filter, unless) {
|
|
105
105
|
if (!filter || unless?.some(value => {
|
|
106
|
-
const unlessCharPos = filter.indexOf(value);
|
|
106
|
+
const unlessCharPos = ( filter.indexOf(value));
|
|
107
107
|
return unlessCharPos === 0 || unlessCharPos > 0 && !LINE_COLON_PATTERN.test(filter.substring(unlessCharPos + 1));
|
|
108
108
|
})) {
|
|
109
109
|
return undefined;
|
|
@@ -241,11 +241,11 @@ const extractSearchQueryFromLines = lines => {
|
|
|
241
241
|
break;
|
|
242
242
|
case "Flags":
|
|
243
243
|
{
|
|
244
|
-
query.isRegexp = value.indexOf("RegExp") !== -1;
|
|
245
|
-
query.isCaseSensitive = value.indexOf("CaseSensitive") !== -1;
|
|
246
|
-
query.useExcludeSettingsAndIgnoreFiles = value.indexOf("IgnoreExcludeSettings") === -1;
|
|
247
|
-
query.matchWholeWord = value.indexOf("WordMatch") !== -1;
|
|
248
|
-
query.onlyOpenEditors = value.indexOf("OpenEditors") !== -1;
|
|
244
|
+
query.isRegexp = ( value.indexOf("RegExp")) !== -1;
|
|
245
|
+
query.isCaseSensitive = ( value.indexOf("CaseSensitive")) !== -1;
|
|
246
|
+
query.useExcludeSettingsAndIgnoreFiles = ( value.indexOf("IgnoreExcludeSettings")) === -1;
|
|
247
|
+
query.matchWholeWord = ( value.indexOf("WordMatch")) !== -1;
|
|
248
|
+
query.onlyOpenEditors = ( value.indexOf("OpenEditors")) !== -1;
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
}
|
|
@@ -138,7 +138,7 @@ let SnippetCompletionProvider = class SnippetCompletionProvider {
|
|
|
138
138
|
if (!triggerCharacterLow && (/\s/.test(lineContentLow[position.column - 2]) || !lineContentLow) ) {
|
|
139
139
|
for (const snippet of snippets) {
|
|
140
140
|
const insert = Range.fromPositions(position);
|
|
141
|
-
const replace = lineContentLow.indexOf(snippet.prefixLow, columnOffset) === columnOffset ? insert.setEndPosition(position.lineNumber, position.column + snippet.prefixLow.length) : insert;
|
|
141
|
+
const replace = ( lineContentLow.indexOf(snippet.prefixLow, columnOffset)) === columnOffset ? insert.setEndPosition(position.lineNumber, position.column + snippet.prefixLow.length) : insert;
|
|
142
142
|
suggestions.push(( new SnippetCompletion(snippet, {
|
|
143
143
|
replace,
|
|
144
144
|
insert
|
|
@@ -1017,27 +1017,27 @@ var ConfiguringTask;
|
|
|
1017
1017
|
}
|
|
1018
1018
|
let identifier;
|
|
1019
1019
|
if (isString(customize)) {
|
|
1020
|
-
if (customize.indexOf(grunt) === 0) {
|
|
1020
|
+
if (( customize.indexOf(grunt)) === 0) {
|
|
1021
1021
|
identifier = {
|
|
1022
1022
|
type: "grunt",
|
|
1023
1023
|
task: customize.substring(grunt.length)
|
|
1024
1024
|
};
|
|
1025
|
-
} else if (customize.indexOf(jake) === 0) {
|
|
1025
|
+
} else if (( customize.indexOf(jake)) === 0) {
|
|
1026
1026
|
identifier = {
|
|
1027
1027
|
type: "jake",
|
|
1028
1028
|
task: customize.substring(jake.length)
|
|
1029
1029
|
};
|
|
1030
|
-
} else if (customize.indexOf(gulp) === 0) {
|
|
1030
|
+
} else if (( customize.indexOf(gulp)) === 0) {
|
|
1031
1031
|
identifier = {
|
|
1032
1032
|
type: "gulp",
|
|
1033
1033
|
task: customize.substring(gulp.length)
|
|
1034
1034
|
};
|
|
1035
|
-
} else if (customize.indexOf(npm) === 0) {
|
|
1035
|
+
} else if (( customize.indexOf(npm)) === 0) {
|
|
1036
1036
|
identifier = {
|
|
1037
1037
|
type: "npm",
|
|
1038
1038
|
script: customize.substring(npm.length + 4)
|
|
1039
1039
|
};
|
|
1040
|
-
} else if (customize.indexOf(typescript) === 0) {
|
|
1040
|
+
} else if (( customize.indexOf(typescript)) === 0) {
|
|
1041
1041
|
identifier = {
|
|
1042
1042
|
type: "typescript",
|
|
1043
1043
|
tsconfig: customize.substring(typescript.length + 6)
|
|
@@ -44,7 +44,7 @@ let AgentHostTerminalService = class AgentHostTerminalService extends Disposable
|
|
|
44
44
|
this._entries.push(entry);
|
|
45
45
|
this._reconcile();
|
|
46
46
|
return toDisposable(() => {
|
|
47
|
-
const idx = this._entries.indexOf(entry);
|
|
47
|
+
const idx = ( this._entries.indexOf(entry));
|
|
48
48
|
if (idx >= 0) {
|
|
49
49
|
this._entries.splice(idx, 1);
|
|
50
50
|
this._reconcile();
|
|
@@ -132,7 +132,7 @@ let TerminalTabList = class TerminalTabList extends WorkbenchList {
|
|
|
132
132
|
this._themeService.onDidColorThemeChange(() => this.refresh()),
|
|
133
133
|
this._terminalGroupService.onDidChangeActiveInstance(e => {
|
|
134
134
|
if (e) {
|
|
135
|
-
const i = this._terminalGroupService.instances.indexOf(e);
|
|
135
|
+
const i = ( this._terminalGroupService.instances.indexOf(e));
|
|
136
136
|
this.setSelection([i]);
|
|
137
137
|
this.reveal(i);
|
|
138
138
|
}
|
|
@@ -348,7 +348,7 @@ let TerminalTabsRenderer = class TerminalTabsRenderer {
|
|
|
348
348
|
template.element.classList.toggle("is-active", this._terminalGroupService.activeInstance === instance);
|
|
349
349
|
let prefix = "";
|
|
350
350
|
if (group.terminalInstances.length > 1) {
|
|
351
|
-
const terminalIndex = group.terminalInstances.indexOf(instance);
|
|
351
|
+
const terminalIndex = ( group.terminalInstances.indexOf(instance));
|
|
352
352
|
if (terminalIndex === 0) {
|
|
353
353
|
prefix = `┌ `;
|
|
354
354
|
} else if (terminalIndex === group.terminalInstances.length - 1) {
|
|
@@ -572,7 +572,7 @@ let TerminalTabsAccessibilityProvider = class TerminalTabsAccessibilityProvider
|
|
|
572
572
|
let ariaLabel = "";
|
|
573
573
|
const tab = this._terminalGroupService.getGroupForInstance(instance);
|
|
574
574
|
if (tab && tab.terminalInstances?.length > 1) {
|
|
575
|
-
const terminalIndex = tab.terminalInstances.indexOf(instance);
|
|
575
|
+
const terminalIndex = ( tab.terminalInstances.indexOf(instance));
|
|
576
576
|
ariaLabel = ( localize(
|
|
577
577
|
21787,
|
|
578
578
|
"Terminal {0} {1}, split {2} of {3}",
|
|
@@ -731,7 +731,7 @@ let TerminalTabsDragAndDrop = class TerminalTabsDragAndDrop extends Disposable {
|
|
|
731
731
|
this._terminalService.setActiveInstance(sourceInstances[0]);
|
|
732
732
|
const targetGroup = this._terminalGroupService.getGroupForInstance(sourceInstances[0]);
|
|
733
733
|
if (targetGroup) {
|
|
734
|
-
const index = this._terminalGroupService.groups.indexOf(targetGroup);
|
|
734
|
+
const index = ( this._terminalGroupService.groups.indexOf(targetGroup));
|
|
735
735
|
this._listService.lastFocusedList?.setSelection([index]);
|
|
736
736
|
}
|
|
737
737
|
return;
|
|
@@ -740,7 +740,7 @@ let TerminalTabsDragAndDrop = class TerminalTabsDragAndDrop extends Disposable {
|
|
|
740
740
|
this._terminalService.setActiveInstance(sourceInstances[0]);
|
|
741
741
|
const targetGroup = this._terminalGroupService.getGroupForInstance(sourceInstances[0]);
|
|
742
742
|
if (targetGroup) {
|
|
743
|
-
const index = this._terminalGroupService.groups.indexOf(targetGroup);
|
|
743
|
+
const index = ( this._terminalGroupService.groups.indexOf(targetGroup));
|
|
744
744
|
this._listService.lastFocusedList?.setSelection([index]);
|
|
745
745
|
}
|
|
746
746
|
}
|
|
@@ -334,7 +334,7 @@ let DecorationAddon = class DecorationAddon extends Disposable {
|
|
|
334
334
|
const commandItems = this._registeredMenuItems.get(command);
|
|
335
335
|
if (commandItems) {
|
|
336
336
|
for (const item of ( items.values())) {
|
|
337
|
-
const index = commandItems.indexOf(item);
|
|
337
|
+
const index = ( commandItems.indexOf(item));
|
|
338
338
|
if (index !== -1) {
|
|
339
339
|
commandItems.splice(index, 1);
|
|
340
340
|
}
|
|
@@ -124,7 +124,7 @@ let MarkNavigationAddon = class MarkNavigationAddon extends Disposable {
|
|
|
124
124
|
if (skipEmptyCommands && this._isEmptyCommand(this._currentMarker)) {
|
|
125
125
|
markerIndex = this._findPreviousMarker(true);
|
|
126
126
|
} else {
|
|
127
|
-
markerIndex = this._getMarkers(skipEmptyCommands).indexOf(this._currentMarker) - 1;
|
|
127
|
+
markerIndex = ( this._getMarkers(skipEmptyCommands).indexOf(this._currentMarker)) - 1;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
if (markerIndex < 0) {
|
|
@@ -168,7 +168,7 @@ let MarkNavigationAddon = class MarkNavigationAddon extends Disposable {
|
|
|
168
168
|
if (skipEmptyCommands && this._isEmptyCommand(this._currentMarker)) {
|
|
169
169
|
markerIndex = this._findNextMarker(true);
|
|
170
170
|
} else {
|
|
171
|
-
markerIndex = this._getMarkers(skipEmptyCommands).indexOf(this._currentMarker) + 1;
|
|
171
|
+
markerIndex = ( this._getMarkers(skipEmptyCommands).indexOf(this._currentMarker)) + 1;
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
if (markerIndex >= this._getMarkers(skipEmptyCommands).length) {
|
|
@@ -27,7 +27,7 @@ class TestId {
|
|
|
27
27
|
return !idString.includes(TestIdPathParts.Delimiter);
|
|
28
28
|
}
|
|
29
29
|
static root(idString) {
|
|
30
|
-
const idx = idString.indexOf(TestIdPathParts.Delimiter);
|
|
30
|
+
const idx = ( idString.indexOf(TestIdPathParts.Delimiter));
|
|
31
31
|
return idx === -1 ? idString : idString.slice(0, idx);
|
|
32
32
|
}
|
|
33
33
|
static fromString(idString) {
|
|
@@ -154,7 +154,7 @@ var ITestTaskState;
|
|
|
154
154
|
const testTagDelimiter = "\u0000";
|
|
155
155
|
const namespaceTestTag = (ctrlId, tagId) => ctrlId + testTagDelimiter + tagId;
|
|
156
156
|
const denamespaceTestTag = namespaced => {
|
|
157
|
-
const index = namespaced.indexOf(testTagDelimiter);
|
|
157
|
+
const index = ( namespaced.indexOf(testTagDelimiter));
|
|
158
158
|
return {
|
|
159
159
|
ctrlId: namespaced.slice(0, index),
|
|
160
160
|
tagId: namespaced.slice(index + 1)
|
|
@@ -299,7 +299,7 @@ let ReleaseNotesManager = class ReleaseNotesManager extends Disposable {
|
|
|
299
299
|
try {
|
|
300
300
|
if (useCurrentFile) {
|
|
301
301
|
const file = this._codeEditorService.getActiveCodeEditor()?.getModel()?.getValue();
|
|
302
|
-
text = file ? file.substring(file.indexOf("#")) : undefined;
|
|
302
|
+
text = file ? file.substring(( file.indexOf("#"))) : undefined;
|
|
303
303
|
} else {
|
|
304
304
|
text = await asTextOrError(await this._requestService.request({
|
|
305
305
|
url,
|
|
@@ -128,7 +128,7 @@ async function configureOpenerTrustedDomainsHandler(
|
|
|
128
128
|
case "trust":
|
|
129
129
|
{
|
|
130
130
|
const itemToTrust = pickedResult.toTrust;
|
|
131
|
-
if (trustedDomains.indexOf(itemToTrust) === -1) {
|
|
131
|
+
if (( trustedDomains.indexOf(itemToTrust)) === -1) {
|
|
132
132
|
storageService.remove(TRUSTED_DOMAINS_CONTENT_STORAGE_KEY, StorageScope.APPLICATION);
|
|
133
133
|
storageService.store(
|
|
134
134
|
TRUSTED_DOMAINS_STORAGE_KEY,
|
|
@@ -68,7 +68,7 @@ let ActivityService = class ActivityService extends Disposable {
|
|
|
68
68
|
activities.push(activity);
|
|
69
69
|
this._onDidChangeActivity.fire(viewContainer);
|
|
70
70
|
return toDisposable(() => {
|
|
71
|
-
const idx = activities.indexOf(activity);
|
|
71
|
+
const idx = ( activities.indexOf(activity));
|
|
72
72
|
if (idx !== -1) {
|
|
73
73
|
activities.splice(idx, 1);
|
|
74
74
|
}
|
|
@@ -124,7 +124,7 @@ let ActivityService = class ActivityService extends Disposable {
|
|
|
124
124
|
activities.push(activity);
|
|
125
125
|
this._onDidChangeActivity.fire(id);
|
|
126
126
|
return toDisposable(() => {
|
|
127
|
-
const idx = activities.indexOf(activity);
|
|
127
|
+
const idx = ( activities.indexOf(activity));
|
|
128
128
|
if (idx !== -1) {
|
|
129
129
|
activities.splice(idx, 1);
|
|
130
130
|
}
|
|
@@ -389,7 +389,7 @@ let AuthenticationService = class AuthenticationService extends Disposable {
|
|
|
389
389
|
this._delegates.sort((a, b) => b.priority - a.priority);
|
|
390
390
|
return {
|
|
391
391
|
dispose: () => {
|
|
392
|
-
const index = this._delegates.indexOf(delegate);
|
|
392
|
+
const index = ( this._delegates.indexOf(delegate));
|
|
393
393
|
if (index !== -1) {
|
|
394
394
|
this._delegates.splice(index, 1);
|
|
395
395
|
}
|
|
@@ -66,7 +66,7 @@ class ConfigurationResolverExpression {
|
|
|
66
66
|
parseString(object, propertyName, value, replaceKeyName, replacementPath) {
|
|
67
67
|
let pos = 0;
|
|
68
68
|
while (pos < value.length) {
|
|
69
|
-
const match = value.indexOf("${", pos);
|
|
69
|
+
const match = ( value.indexOf("${", pos));
|
|
70
70
|
if (match === -1) {
|
|
71
71
|
break;
|
|
72
72
|
}
|
|
@@ -11,7 +11,10 @@ function columnToEditorGroup(editorGroupService, configurationService, column =
|
|
|
11
11
|
for (let i = 0; i <= column; i++) {
|
|
12
12
|
const editorGroups = editorGroupService.getGroups(GroupsOrder.GRID_APPEARANCE);
|
|
13
13
|
if (!editorGroups[i]) {
|
|
14
|
-
editorGroupService.addGroup(
|
|
14
|
+
editorGroupService.addGroup(
|
|
15
|
+
editorGroups[i - 1],
|
|
16
|
+
preferredSideBySideGroupDirection(configurationService)
|
|
17
|
+
);
|
|
15
18
|
}
|
|
16
19
|
}
|
|
17
20
|
groupInColumn = editorGroupService.getGroups(GroupsOrder.GRID_APPEARANCE)[column];
|
|
@@ -19,8 +22,8 @@ function columnToEditorGroup(editorGroupService, configurationService, column =
|
|
|
19
22
|
return groupInColumn?.id ?? SIDE_GROUP;
|
|
20
23
|
}
|
|
21
24
|
function editorGroupToColumn(editorGroupService, editorGroup) {
|
|
22
|
-
const group = (typeof editorGroup ===
|
|
23
|
-
return editorGroupService.getGroups(GroupsOrder.GRID_APPEARANCE).indexOf(group ?? editorGroupService.activeGroup);
|
|
25
|
+
const group = (typeof editorGroup === "number") ? editorGroupService.getGroup(editorGroup) : editorGroup;
|
|
26
|
+
return ( editorGroupService.getGroups(GroupsOrder.GRID_APPEARANCE).indexOf(group ?? editorGroupService.activeGroup));
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
export { columnToEditorGroup, editorGroupToColumn };
|
|
@@ -209,7 +209,7 @@ function globMatchesResource(globPattern, resource) {
|
|
|
209
209
|
if (( excludedSchemes.has(resource.scheme))) {
|
|
210
210
|
return false;
|
|
211
211
|
}
|
|
212
|
-
const matchOnPath = typeof globPattern === "string" && globPattern.indexOf(posix.sep) >= 0;
|
|
212
|
+
const matchOnPath = typeof globPattern === "string" && ( globPattern.indexOf(posix.sep)) >= 0;
|
|
213
213
|
const target = matchOnPath ? `${resource.scheme}:${resource.path}` : basename(resource);
|
|
214
214
|
return match(globPattern, target, {
|
|
215
215
|
ignoreCase: true
|