@codingame/monaco-vscode-api 1.81.8-next.2 → 1.82.0-next.0
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/README.md +14 -0
- package/api.js +12 -8
- package/extensions.d.ts +1 -0
- package/extensions.js +3 -0
- package/missing-services.js +69 -20
- package/monaco-editor-treemending.patch +1407 -1026
- package/monaco-treemending.js +2 -2
- package/monaco.d.ts +1 -1
- package/monaco.js +3 -0
- package/package.json +3 -3
- package/service-override/extensions.d.ts +1 -1
- package/service-override/extensions.js +5 -1
- package/service-override/keybindings.d.ts +4 -1
- package/service-override/keybindings.js +35 -6
- package/service-override/quickaccess.d.ts +2 -1
- package/service-override/quickaccess.js +5 -2
- package/service-override/search.js +2 -2
- package/service-override/snippets.d.ts +1 -1
- package/service-override/storage.d.ts +1 -1
- package/service-override/theme.d.ts +1 -1
- package/service-override/tools/editor.d.ts +1 -1
- package/service-override/tools/editor.js +4 -3
- package/service-override/views.d.ts +1 -1
- package/service-override/views.js +4 -2
- package/vscode/src/vs/base/browser/contextmenu.d.ts +1 -1
- package/vscode/src/vs/base/browser/dom.d.ts +1 -1
- package/vscode/src/vs/base/browser/keyboardEvent.d.ts +1 -1
- package/vscode/src/vs/base/browser/mouseEvent.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +7 -1
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/contextview/contextview.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/grid/grid.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/grid/gridview.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/grid/gridview.js +1 -0
- package/vscode/src/vs/base/browser/ui/iconLabel/iconHoverDelegate.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabelHover.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -2
- package/vscode/src/vs/base/browser/ui/sash/sash.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/splitview.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +5 -1
- package/vscode/src/vs/base/common/actions.d.ts +1 -1
- package/vscode/src/vs/base/common/async.d.ts +1 -1
- package/vscode/src/vs/base/common/buffer.d.ts +1 -1
- package/vscode/src/vs/base/common/codicons.d.ts +5 -0
- package/vscode/src/vs/base/common/collections.d.ts +1 -1
- package/vscode/src/vs/base/common/dataTransfer.d.ts +1 -1
- package/vscode/src/vs/base/common/errors.d.ts +1 -1
- package/vscode/src/vs/base/common/event.d.ts +10 -2
- package/vscode/src/vs/base/common/filters.d.ts +1 -1
- package/vscode/src/vs/base/common/glob.d.ts +1 -1
- package/vscode/src/vs/base/common/htmlContent.d.ts +1 -1
- package/vscode/src/vs/base/common/jsonSchema.d.ts +1 -1
- package/vscode/src/vs/base/common/keybindings.d.ts +1 -1
- package/vscode/src/vs/base/common/lifecycle.d.ts +1 -1
- package/vscode/src/vs/base/common/{observableImpl → observableInternal}/base.d.ts +1 -1
- package/vscode/src/vs/base/common/path.d.ts +1 -1
- package/vscode/src/vs/base/common/performance.d.ts +1 -1
- package/vscode/src/vs/base/common/platform.d.ts +1 -1
- package/vscode/src/vs/base/common/prefixTree.js +76 -13
- package/vscode/src/vs/base/common/processes.d.ts +1 -1
- package/vscode/src/vs/base/common/product.d.ts +10 -6
- package/vscode/src/vs/base/common/resources.d.ts +1 -1
- package/vscode/src/vs/base/common/stream.d.ts +1 -1
- package/vscode/src/vs/base/common/ternarySearchTree.d.ts +1 -1
- package/vscode/src/vs/base/common/themables.d.ts +1 -1
- package/vscode/src/vs/base/common/types.d.ts +1 -1
- package/vscode/src/vs/base/common/uri.d.ts +1 -1
- package/vscode/src/vs/base/common/uriIpc.d.ts +1 -1
- package/vscode/src/vs/base/parts/ipc/common/ipc.d.ts +1 -1
- package/vscode/src/vs/base/parts/ipc/common/ipc.net.d.ts +1 -1
- package/vscode/src/vs/base/parts/storage/common/storage.d.ts +1 -1
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +2 -2
- package/vscode/src/vs/editor/browser/services/bulkEditService.d.ts +1 -1
- package/vscode/src/vs/editor/browser/services/codeEditorService.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditorWidget2/diffEditorWidget2.contribution.js +122 -26
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +25 -5
- package/vscode/src/vs/editor/common/core/dimension.d.ts +1 -1
- package/vscode/src/vs/editor/common/core/editOperation.d.ts +1 -1
- package/vscode/src/vs/editor/common/core/lineRange.d.ts +8 -1
- package/vscode/src/vs/editor/common/core/offsetRange.d.ts +47 -0
- package/vscode/src/vs/editor/common/core/position.d.ts +1 -1
- package/vscode/src/vs/editor/common/core/range.d.ts +1 -1
- package/vscode/src/vs/editor/common/core/selection.d.ts +1 -1
- package/vscode/src/vs/editor/common/diff/documentDiffProvider.d.ts +3 -2
- package/vscode/src/vs/editor/common/diff/{smartLinesDiffComputer.d.ts → legacyLinesDiffComputer.d.ts} +1 -1
- package/vscode/src/vs/editor/common/diff/linesDiffComputer.d.ts +1 -0
- package/vscode/src/vs/editor/common/editorCommon.d.ts +1 -1
- package/vscode/src/vs/editor/common/encodedTokenAttributes.d.ts +1 -1
- package/vscode/src/vs/editor/common/languageFeatureRegistry.d.ts +1 -1
- package/vscode/src/vs/editor/common/languageSelector.d.ts +1 -1
- package/vscode/src/vs/editor/common/languages/language.d.ts +1 -1
- package/vscode/src/vs/editor/common/languages/languageConfiguration.d.ts +1 -1
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.d.ts +1 -1
- package/vscode/src/vs/editor/common/languages/supports/electricCharacter.d.ts +1 -1
- package/vscode/src/vs/editor/common/languages/supports/languageBracketsConfiguration.d.ts +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +37 -7
- package/vscode/src/vs/editor/common/model.d.ts +1 -1
- package/vscode/src/vs/editor/common/services/editorWorker.d.ts +2 -2
- package/vscode/src/vs/editor/common/services/languageFeatureDebounce.d.ts +1 -1
- package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +1 -0
- package/vscode/src/vs/editor/common/services/resolverService.d.ts +1 -1
- package/vscode/src/vs/editor/common/services/unicodeTextModelHighlighter.d.ts +1 -1
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +1 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/folding/browser/folding.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/folding/browser/foldingModel.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/folding/browser/foldingRanges.d.ts +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.d.ts +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +1 -1
- package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +1 -1
- package/vscode/src/vs/platform/action/common/action.d.ts +1 -1
- package/vscode/src/vs/platform/actions/browser/floatingMenu.js +73 -0
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +1 -1
- package/vscode/src/vs/platform/actions/common/actions.d.ts +5 -2
- package/vscode/src/vs/platform/audioCues/browser/audioCueService.d.ts +10 -3
- package/vscode/src/vs/platform/commands/common/commands.d.ts +1 -1
- package/vscode/src/vs/platform/configuration/common/configuration.d.ts +1 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.d.ts +1 -1
- package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +1 -1
- package/vscode/src/vs/platform/credentials/common/credentials.d.ts +1 -1
- package/vscode/src/vs/platform/diagnostics/common/diagnostics.d.ts +1 -1
- package/vscode/src/vs/platform/dialogs/common/dialogs.d.ts +1 -1
- package/vscode/src/vs/platform/editor/common/editor.d.ts +1 -1
- package/vscode/src/vs/platform/environment/common/environment.d.ts +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.d.ts +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.js +13 -14
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1 -1
- package/vscode/src/vs/platform/files/common/files.d.ts +1 -1
- package/vscode/src/vs/platform/instantiation/common/descriptors.d.ts +1 -1
- package/vscode/src/vs/platform/instantiation/common/instantiation.d.ts +1 -1
- package/vscode/src/vs/platform/jsonschemas/common/jsonContributionRegistry.d.ts +1 -1
- package/vscode/src/vs/platform/keybinding/common/keybinding.d.ts +1 -1
- package/vscode/src/vs/platform/keybinding/common/keybindingResolver.d.ts +1 -1
- package/vscode/src/vs/platform/keybinding/common/keybindingsRegistry.d.ts +1 -1
- package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +1 -1
- package/vscode/src/vs/platform/log/common/log.d.ts +1 -1
- package/vscode/src/vs/platform/markers/common/markers.d.ts +1 -1
- package/vscode/src/vs/platform/notification/common/notification.d.ts +1 -1
- package/vscode/src/vs/platform/opener/common/opener.d.ts +1 -1
- package/vscode/src/vs/platform/policy/common/policy.d.ts +1 -1
- package/vscode/src/vs/platform/progress/common/progress.d.ts +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickAccess.d.ts +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +17 -13
- package/vscode/src/vs/platform/registry/common/platform.d.ts +1 -1
- package/vscode/src/vs/platform/remote/browser/browserSocketFactory.d.ts +1 -1
- package/vscode/src/vs/platform/remote/common/managedSocket.js +80 -1
- package/vscode/src/vs/platform/remote/common/remoteAgentConnection.d.ts +1 -1
- package/vscode/src/vs/platform/remote/common/remoteAgentEnvironment.d.ts +1 -1
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.d.ts +1 -1
- package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.d.ts +1 -1
- package/vscode/src/vs/platform/secrets/common/secrets.d.ts +1 -1
- package/vscode/src/vs/platform/storage/common/storage.d.ts +24 -5
- package/vscode/src/vs/platform/storage/common/storage.js +4 -2
- package/vscode/src/vs/platform/telemetry/common/gdprTypings.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +1 -1
- package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +4 -2
- package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +21 -3
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.d.ts +32 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +14 -9
- package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +4 -2
- package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +18 -4
- package/vscode/src/vs/platform/terminal/common/environmentVariable.d.ts +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +1 -1
- package/vscode/src/vs/platform/terminal/common/terminalProcess.d.ts +1 -1
- package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +6 -3
- package/vscode/src/vs/platform/theme/common/colorRegistry.d.ts +1 -1
- package/vscode/src/vs/platform/theme/common/iconRegistry.d.ts +1 -1
- package/vscode/src/vs/platform/theme/common/themeService.d.ts +1 -1
- package/vscode/src/vs/platform/tunnel/common/tunnel.d.ts +1 -1
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +1 -1
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +5 -1
- package/vscode/src/vs/platform/window/common/window.d.ts +1 -1
- package/vscode/src/vs/platform/workspace/common/workspace.d.ts +1 -1
- package/vscode/src/vs/platform/workspace/common/workspaceTrust.d.ts +1 -1
- package/vscode/src/vs/platform/workspaces/common/workspaces.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadAiEmbeddingVector.js +29 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.js +33 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChat.js +13 -16
- package/vscode/src/vs/workbench/api/browser/mainThreadChatProvider.js +59 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSlashCommands.js +46 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatVariables.js +29 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +5 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadEditor.js +1 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +4 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadInlineChat.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +31 -14
- package/vscode/src/vs/workbench/api/browser/mainThreadManagedSockets.js +12 -67
- package/vscode/src/vs/workbench/api/browser/mainThreadStorage.js +7 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +36 -11
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +21 -17
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +4 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +2 -3
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +10 -1
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +55 -16
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +32 -7
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +10 -2
- package/vscode/src/vs/workbench/api/common/extHostAiRelatedInformation.js +34 -0
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +21 -2
- package/vscode/src/vs/workbench/api/common/extHostChat.js +12 -31
- package/vscode/src/vs/workbench/api/common/extHostChatProvider.js +70 -0
- package/vscode/src/vs/workbench/api/common/extHostChatSlashCommand.js +53 -0
- package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +37 -0
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +11 -0
- package/vscode/src/vs/workbench/api/common/extHostComments.js +1 -2
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +2 -3
- package/vscode/src/vs/workbench/api/common/extHostDecorations.js +6 -4
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +8 -6
- package/vscode/src/vs/workbench/api/common/extHostEmbeddingVector.js +34 -0
- package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +5 -4
- package/vscode/src/vs/workbench/api/common/extHostFileSystemConsumer.js +11 -10
- package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +3 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +45 -15
- package/vscode/src/vs/workbench/api/common/extHostRequireInterceptor.js +5 -3
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +17 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +12 -11
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +66 -53
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +32 -18
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +19 -5
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +128 -6
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +28 -13
- package/vscode/src/vs/workbench/api/common/extHostWindow.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +2 -3
- package/vscode/src/vs/workbench/api/common/extensionHostMain.js +2 -2
- package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.js +5 -3
- package/vscode/src/vs/workbench/browser/codeeditor.js +34 -67
- package/vscode/src/vs/workbench/browser/dnd.js +3 -2
- package/vscode/src/vs/workbench/browser/part.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarActions.js +37 -20
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +21 -22
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +4 -2
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +10 -7
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialogHandler.js +4 -2
- package/vscode/src/vs/workbench/browser/parts/editor/accessibilityStatus.js +19 -24
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +11 -9
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +1 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +17 -16
- package/vscode/src/vs/workbench/browser/parts/editor/editor.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editor.js +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +1 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +25 -16
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +6 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +4 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +12 -12
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +10 -8
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +13 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +10 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +14 -16
- package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +6 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/noTabsTitleControl.js +6 -4
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +7 -5
- package/vscode/src/vs/workbench/browser/parts/editor/tabsTitleControl.js +42 -32
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +13 -6
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +4 -2
- package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +6 -4
- package/vscode/src/vs/workbench/browser/parts/editor/titleControl.js +6 -5
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +5 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +8 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +9 -7
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +14 -11
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +14 -10
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +4 -2
- package/vscode/src/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarItem.js +12 -2
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarModel.js +21 -23
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +10 -4
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -2
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +13 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewsViewlet.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/web.api.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +37 -7
- package/vscode/src/vs/workbench/common/composite.d.ts +1 -1
- package/vscode/src/vs/workbench/common/contextkeys.js +12 -10
- package/vscode/src/vs/workbench/common/contributions.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +6 -8
- package/vscode/src/vs/workbench/common/editor/editorGroupModel.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +15 -5
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +7 -5
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +5 -4
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +5 -3
- package/vscode/src/vs/workbench/common/editor.d.ts +3 -1
- package/vscode/src/vs/workbench/common/editor.js +18 -1
- package/vscode/src/vs/workbench/common/memento.d.ts +1 -1
- package/vscode/src/vs/workbench/common/panecomposite.d.ts +1 -1
- package/vscode/src/vs/workbench/common/resources.js +11 -9
- package/vscode/src/vs/workbench/common/theme.js +118 -10
- package/vscode/src/vs/workbench/common/views.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibility.contribution.js +5 -241
- package/vscode/src/vs/workbench/contrib/accessibility/browser/{accessibilityContribution.js → accessibilityConfiguration.js} +50 -73
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +312 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +376 -81
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +216 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/unfocusedViewDimmingContribution.js +63 -0
- package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCueDebuggerContribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCueLineFeatureContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +4 -1
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.js +8 -3
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +10 -7
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +204 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatProvider.js +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.js +3 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +21 -10
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +45 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +4 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +4 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +14 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +0 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +7 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadRangeDecorator.js +4 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +15 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +2 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +2 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +2 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +7 -5
- package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +4 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +1 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +13 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +10 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +5 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +5 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +0 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +3 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +5 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +1 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +27 -26
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +1 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +17 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +10 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +10 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +5 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +4 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +5 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +19 -11
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +25 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +225 -113
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/contributedOpeners.js +4 -2
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +4 -2
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +4 -3
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +4 -2
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +29 -5
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +2 -1
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +11 -8
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/files.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +4 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +11 -6
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +22 -19
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +11 -7
- package/vscode/src/vs/workbench/contrib/files/common/files.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/files/common/files.js +6 -5
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +16 -14
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +5 -3
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +7 -5
- package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +4 -2
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +16 -23
- package/vscode/src/vs/workbench/contrib/markers/browser/markersModel.js +1 -2
- package/vscode/src/vs/workbench/contrib/markers/browser/markersTable.js +10 -6
- package/vscode/src/vs/workbench/contrib/markers/browser/markersView.js +1 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +7 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +5 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +27 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +0 -24
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +14 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +1 -6
- package/vscode/src/vs/workbench/contrib/output/browser/logViewer.js +7 -4
- package/vscode/src/vs/workbench/contrib/output/browser/outputLinkProvider.js +4 -2
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +16 -11
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditor.js +13 -8
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferences.contribution.js +77 -62
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesRenderers.js +5 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesSearch.js +114 -36
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditor2.js +92 -73
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTree.js +21 -14
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +110 -103
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsWidgets.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +4 -4
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +38 -36
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +6 -2
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +5 -4
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +2 -2
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +66 -36
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +7 -5
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +57 -55
- package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +232 -0
- package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +7 -5
- package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +33 -3
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +1 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +3 -3
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +23 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +5 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +162 -90
- package/vscode/src/vs/workbench/contrib/search/browser/searchNotebookHelpers.js +57 -23
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +10 -6
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +80 -58
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +7 -5
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +7 -6
- package/vscode/src/vs/workbench/contrib/search/common/constants.js +2 -1
- package/vscode/src/vs/workbench/contrib/search/common/searchHistoryService.js +7 -5
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +10 -7
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +1 -2
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +7 -5
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCodeActionProvider.js +9 -6
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -6
- package/vscode/src/vs/workbench/contrib/snippets/browser/tabCompletion.js +5 -3
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/baseTerminalBackend.js +5 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +54 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/terminal.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.js +3 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +56 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +44 -31
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.js +4 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +5 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorService.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEvents.js +47 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroup.js +9 -9
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroupService.js +13 -18
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +86 -73
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstanceService.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +15 -103
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.js +1 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileService.js +11 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +4 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +4 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalService.js +49 -32
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabbedView.js +3 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.js +9 -13
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalView.js +30 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +91 -25
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariableService.js +4 -2
- package/vscode/src/vs/workbench/contrib/terminal/common/history.js +6 -6
- package/vscode/src/vs/workbench/contrib/terminal/common/remote/remoteTerminalChannel.js +6 -7
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +35 -2
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +3 -7
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalConfiguration.js +62 -10
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +8 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminal.accessibility.contribution.js +48 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibilityHelp.js +42 -17
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleBuffer.js +23 -17
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleWidget.js +30 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.js +98 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.js +8 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService.js +12 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +44 -17
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +2 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -7
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +4 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +5 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +4 -2
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +5 -4
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +28 -0
- package/vscode/src/vs/workbench/services/activity/common/activity.d.ts +1 -1
- package/vscode/src/vs/workbench/services/{semanticSimilarity/common/semanticSimilarityService.js → aiEmbeddingVector/common/aiEmbeddingVectorService.js} +18 -13
- package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.js +10 -0
- package/vscode/src/vs/workbench/services/configuration/browser/configuration.js +6 -4
- package/vscode/src/vs/workbench/services/configuration/browser/configurationService.js +1 -1
- package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.js +5 -6
- package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.js +2 -2
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +12 -9
- package/vscode/src/vs/workbench/services/editor/browser/editorService.js +6 -6
- package/vscode/src/vs/workbench/services/editor/common/editorGroupColumn.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +4 -3
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +8 -6
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +4 -3
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostKind.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +5 -4
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProxy.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocation.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +10 -5
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +9 -0
- package/vscode/src/vs/workbench/services/extensions/common/proxyIdentifier.d.ts +1 -1
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +10 -9
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +14 -11
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/hover/browser/hover.d.ts +2 -2
- package/vscode/src/vs/workbench/services/hover/browser/hoverService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/hover/browser/hoverWidget.js +11 -3
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +6 -5
- package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionWorkerServiceImpl.js +10 -8
- package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.d.ts +1 -1
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.js +6 -4
- package/vscode/src/vs/workbench/services/localization/common/locale.js +3 -0
- package/vscode/src/vs/workbench/services/notification/common/notificationService.js +5 -3
- package/vscode/src/vs/workbench/services/output/common/output.d.ts +1 -1
- package/vscode/src/vs/workbench/services/path/common/pathService.js +4 -3
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +5 -3
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +12 -11
- package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +4 -3
- package/vscode/src/vs/workbench/services/preferences/common/preferences.js +3 -2
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +5 -3
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +4 -2
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +6 -817
- package/vscode/src/vs/workbench/services/remote/common/{remoteExplorerService.d.ts → tunnelModel.d.ts} +1 -1
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +860 -0
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.d.ts +1 -1
- package/vscode/src/vs/workbench/services/search/common/search.d.ts +1 -1
- package/vscode/src/vs/workbench/services/search/common/searchService.js +41 -26
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +12 -3
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.js +2 -1
- package/vscode/src/vs/workbench/services/storage/browser/storageService.js +4 -2
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.d.ts +1 -1
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.d.ts +1 -1
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.d.ts +1 -1
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/textMateWorkerTokenizerController.js +1 -1
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/threadedBackgroundTokenizerFactory.js +9 -7
- package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +7 -5
- package/vscode/src/vs/workbench/services/textfile/browser/browserTextFileService.js +1 -1
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +8 -6
- package/vscode/src/vs/workbench/services/textfile/common/encoding.js +5 -3
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +19 -17
- package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +4 -1
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +1 -1
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +5 -3
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.d.ts +1 -1
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.js +12 -9
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +4 -2
- package/vscode/src/vs/workbench/services/update/browser/updateService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/url/browser/urlService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.d.ts +1 -1
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +14 -13
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +4 -5
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopy.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +1 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopy.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +17 -8
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileOperationParticipant.js +1 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workspaces/browser/workspacesService.js +8 -11
- package/vscode/src/vs/workbench/api/browser/mainThreadSemanticSimilarity.js +0 -29
- package/vscode/src/vs/workbench/api/common/extHostSemanticSimilarity.js +0 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/quickQuestionActions/quickQuestionAction.js +0 -47
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +0 -4
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskQuickPick.js +0 -386
- package/vscode/src/vs/workbench/contrib/tasks/browser/tasksQuickAccess.js +0 -109
- /package/vscode/src/vs/workbench/contrib/search/{browser → common}/notebookSearch.js +0 -0
|
@@ -17,6 +17,7 @@ import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/com
|
|
|
17
17
|
import { ServiceCollection } from 'monaco-editor/esm/vs/platform/instantiation/common/serviceCollection.js';
|
|
18
18
|
import { MatchFocusKey, FileFocusKey, FolderFocusKey, IsEditableItemKey } from '../common/constants.js';
|
|
19
19
|
import { defaultCountBadgeStyles } from 'monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js';
|
|
20
|
+
var FolderMatchRenderer_1, FileMatchRenderer_1, MatchRenderer_1;
|
|
20
21
|
class SearchDelegate {
|
|
21
22
|
static { this.ITEM_HEIGHT = 22; }
|
|
22
23
|
getHeight(element) {
|
|
@@ -37,6 +38,7 @@ class SearchDelegate {
|
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
let FolderMatchRenderer = class FolderMatchRenderer extends Disposable {
|
|
41
|
+
static { FolderMatchRenderer_1 = this; }
|
|
40
42
|
static { this.TEMPLATE_ID = 'folderMatch'; }
|
|
41
43
|
constructor(searchView, labels, contextService, labelService, instantiationService, contextKeyService) {
|
|
42
44
|
super();
|
|
@@ -46,7 +48,7 @@ let FolderMatchRenderer = class FolderMatchRenderer extends Disposable {
|
|
|
46
48
|
this.labelService = labelService;
|
|
47
49
|
this.instantiationService = instantiationService;
|
|
48
50
|
this.contextKeyService = contextKeyService;
|
|
49
|
-
this.templateId =
|
|
51
|
+
this.templateId = FolderMatchRenderer_1.TEMPLATE_ID;
|
|
50
52
|
}
|
|
51
53
|
renderCompressedElements(node, index, templateData, height) {
|
|
52
54
|
const compressed = node.element;
|
|
@@ -136,13 +138,14 @@ let FolderMatchRenderer = class FolderMatchRenderer extends Disposable {
|
|
|
136
138
|
templateData.actions.context = { viewer: this.searchView.getControl(), element: folder };
|
|
137
139
|
}
|
|
138
140
|
};
|
|
139
|
-
FolderMatchRenderer = ( __decorate([
|
|
141
|
+
FolderMatchRenderer = FolderMatchRenderer_1 = ( __decorate([
|
|
140
142
|
( __param(2, IWorkspaceContextService)),
|
|
141
143
|
( __param(3, ILabelService)),
|
|
142
144
|
( __param(4, IInstantiationService)),
|
|
143
145
|
( __param(5, IContextKeyService))
|
|
144
146
|
], FolderMatchRenderer));
|
|
145
147
|
let FileMatchRenderer = class FileMatchRenderer extends Disposable {
|
|
148
|
+
static { FileMatchRenderer_1 = this; }
|
|
146
149
|
static { this.TEMPLATE_ID = 'fileMatch'; }
|
|
147
150
|
constructor(searchView, labels, contextService, configurationService, instantiationService, contextKeyService) {
|
|
148
151
|
super();
|
|
@@ -152,7 +155,7 @@ let FileMatchRenderer = class FileMatchRenderer extends Disposable {
|
|
|
152
155
|
this.configurationService = configurationService;
|
|
153
156
|
this.instantiationService = instantiationService;
|
|
154
157
|
this.contextKeyService = contextKeyService;
|
|
155
|
-
this.templateId =
|
|
158
|
+
this.templateId = FileMatchRenderer_1.TEMPLATE_ID;
|
|
156
159
|
}
|
|
157
160
|
renderCompressedElements(node, index, templateData, height) {
|
|
158
161
|
throw new Error('Should never happen since node is incompressible.');
|
|
@@ -213,13 +216,14 @@ let FileMatchRenderer = class FileMatchRenderer extends Disposable {
|
|
|
213
216
|
templateData.disposables.dispose();
|
|
214
217
|
}
|
|
215
218
|
};
|
|
216
|
-
FileMatchRenderer = ( __decorate([
|
|
219
|
+
FileMatchRenderer = FileMatchRenderer_1 = ( __decorate([
|
|
217
220
|
( __param(2, IWorkspaceContextService)),
|
|
218
221
|
( __param(3, IConfigurationService)),
|
|
219
222
|
( __param(4, IInstantiationService)),
|
|
220
223
|
( __param(5, IContextKeyService))
|
|
221
224
|
], FileMatchRenderer));
|
|
222
225
|
let MatchRenderer = class MatchRenderer extends Disposable {
|
|
226
|
+
static { MatchRenderer_1 = this; }
|
|
223
227
|
static { this.TEMPLATE_ID = 'match'; }
|
|
224
228
|
constructor(searchModel, searchView, contextService, configurationService, instantiationService, contextKeyService) {
|
|
225
229
|
super();
|
|
@@ -229,7 +233,7 @@ let MatchRenderer = class MatchRenderer extends Disposable {
|
|
|
229
233
|
this.configurationService = configurationService;
|
|
230
234
|
this.instantiationService = instantiationService;
|
|
231
235
|
this.contextKeyService = contextKeyService;
|
|
232
|
-
this.templateId =
|
|
236
|
+
this.templateId = MatchRenderer_1.TEMPLATE_ID;
|
|
233
237
|
}
|
|
234
238
|
renderCompressedElements(node, index, templateData, height) {
|
|
235
239
|
throw new Error('Should never happen since node is incompressible.');
|
|
@@ -305,7 +309,7 @@ let MatchRenderer = class MatchRenderer extends Disposable {
|
|
|
305
309
|
return lineNumStr + numLinesStr;
|
|
306
310
|
}
|
|
307
311
|
};
|
|
308
|
-
MatchRenderer = ( __decorate([
|
|
312
|
+
MatchRenderer = MatchRenderer_1 = ( __decorate([
|
|
309
313
|
( __param(2, IWorkspaceContextService)),
|
|
310
314
|
( __param(3, IConfigurationService)),
|
|
311
315
|
( __param(4, IInstantiationService)),
|
|
@@ -10,7 +10,6 @@ import { Iterable } from 'monaco-editor/esm/vs/base/common/iterator.js';
|
|
|
10
10
|
import { DisposableStore, Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
11
11
|
import * as platform from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
12
12
|
import * as strings from 'monaco-editor/esm/vs/base/common/strings.js';
|
|
13
|
-
import { withNullAsUndefined } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
14
13
|
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
15
14
|
import * as network from 'monaco-editor/esm/vs/base/common/network.js';
|
|
16
15
|
import './media/searchview.css.js';
|
|
@@ -59,7 +58,7 @@ import { SearchViewVisibleKey, FirstMatchFocusKey, FileMatchOrMatchFocusKey, Fil
|
|
|
59
58
|
import { IReplaceService } from './replace.js';
|
|
60
59
|
import { SearchStateKey, SearchUIState, getOutOfWorkspaceEditorResources } from '../common/search.js';
|
|
61
60
|
import { SearchHistoryService, ISearchHistoryService } from '../common/searchHistoryService.js';
|
|
62
|
-
import { searchMatchComparer, FileMatch, SearchResult, FolderMatch, Match, FolderMatchWithResource, MatchInNotebook,
|
|
61
|
+
import { searchMatchComparer, FileMatch, SearchResult, FolderMatch, Match, FolderMatchWithResource, MatchInNotebook, ISearchViewModelWorkbenchService } from './searchModel.js';
|
|
63
62
|
import { createEditorFromSearchResult } from '../../searchEditor/browser/searchEditorActions.js';
|
|
64
63
|
import { SIDE_GROUP, ACTIVE_GROUP, IEditorService } from '../../../services/editor/common/editorService.js';
|
|
65
64
|
import { IPreferencesService } from '../../../services/preferences/common/preferences.js';
|
|
@@ -70,6 +69,7 @@ import { INotebookService } from '../../notebook/common/notebookService.js';
|
|
|
70
69
|
import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
71
70
|
import { TextSearchCompleteMessageType } from '../../../services/search/common/searchExtTypes.js';
|
|
72
71
|
import { IDialogService } from '../../../../platform/dialogs/common/dialogs.js';
|
|
72
|
+
var SearchView_1;
|
|
73
73
|
const $ = dom.$;
|
|
74
74
|
const SEARCH_CANCELLED_MESSAGE = ( nls.localize(
|
|
75
75
|
'searchCanceled',
|
|
@@ -77,8 +77,9 @@ const SEARCH_CANCELLED_MESSAGE = ( nls.localize(
|
|
|
77
77
|
));
|
|
78
78
|
const DEBOUNCE_DELAY = 75;
|
|
79
79
|
let SearchView = class SearchView extends ViewPane {
|
|
80
|
+
static { SearchView_1 = this; }
|
|
80
81
|
static { this.ACTIONS_RIGHT_CLASS_NAME = 'actions-right'; }
|
|
81
|
-
constructor(options, fileService, editorService, codeEditorService, progressService, notificationService, dialogService, commandService, contextViewService, instantiationService, viewDescriptorService, configurationService, contextService,
|
|
82
|
+
constructor(options, fileService, editorService, codeEditorService, progressService, notificationService, dialogService, commandService, contextViewService, instantiationService, viewDescriptorService, configurationService, contextService, searchViewModelWorkbenchService, contextKeyService, replaceService, textFileService, preferencesService, themeService, searchHistoryService, contextMenuService, accessibilityService, keybindingService, storageService, openerService, telemetryService, notebookService, logService) {
|
|
82
83
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService);
|
|
83
84
|
this.fileService = fileService;
|
|
84
85
|
this.editorService = editorService;
|
|
@@ -89,7 +90,7 @@ let SearchView = class SearchView extends ViewPane {
|
|
|
89
90
|
this.commandService = commandService;
|
|
90
91
|
this.contextViewService = contextViewService;
|
|
91
92
|
this.contextService = contextService;
|
|
92
|
-
this.
|
|
93
|
+
this.searchViewModelWorkbenchService = searchViewModelWorkbenchService;
|
|
93
94
|
this.replaceService = replaceService;
|
|
94
95
|
this.textFileService = textFileService;
|
|
95
96
|
this.preferencesService = preferencesService;
|
|
@@ -137,7 +138,7 @@ let SearchView = class SearchView extends ViewPane {
|
|
|
137
138
|
this.refreshTree();
|
|
138
139
|
}
|
|
139
140
|
});
|
|
140
|
-
this.viewModel = this._register(this.
|
|
141
|
+
this.viewModel = this._register(this.searchViewModelWorkbenchService.searchModel);
|
|
141
142
|
this.queryBuilder = this.instantiationService.createInstance(QueryBuilder);
|
|
142
143
|
this.memento = ( new Memento(this.id, storageService));
|
|
143
144
|
this.viewletState = this.memento.getMemento(1 , 1 );
|
|
@@ -156,21 +157,19 @@ let SearchView = class SearchView extends ViewPane {
|
|
|
156
157
|
this._register(this.storageService.onWillSaveState(() => {
|
|
157
158
|
this._saveSearchHistoryService();
|
|
158
159
|
}));
|
|
159
|
-
this._register(this.storageService.onDidChangeValue((
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
this.searchWidget.prependReplaceHistory(restoredHistory.replace);
|
|
173
|
-
}
|
|
160
|
+
this._register(this.storageService.onDidChangeValue(1 , SearchHistoryService.SEARCH_HISTORY_KEY, this._register(( new DisposableStore())))(() => {
|
|
161
|
+
const restoredHistory = this.searchHistoryService.load();
|
|
162
|
+
if (restoredHistory.include) {
|
|
163
|
+
this.inputPatternIncludes.prependHistory(restoredHistory.include);
|
|
164
|
+
}
|
|
165
|
+
if (restoredHistory.exclude) {
|
|
166
|
+
this.inputPatternExcludes.prependHistory(restoredHistory.exclude);
|
|
167
|
+
}
|
|
168
|
+
if (restoredHistory.search) {
|
|
169
|
+
this.searchWidget.prependSearchHistory(restoredHistory.search);
|
|
170
|
+
}
|
|
171
|
+
if (restoredHistory.replace) {
|
|
172
|
+
this.searchWidget.prependReplaceHistory(restoredHistory.replace);
|
|
174
173
|
}
|
|
175
174
|
}));
|
|
176
175
|
}
|
|
@@ -205,6 +204,29 @@ let SearchView = class SearchView extends ViewPane {
|
|
|
205
204
|
dom.hide(this.searchWithoutFolderMessageElement);
|
|
206
205
|
}
|
|
207
206
|
}
|
|
207
|
+
refreshInputs() {
|
|
208
|
+
this.pauseSearching = true;
|
|
209
|
+
this.searchWidget.setValue(this.viewModel.searchResult.query?.contentPattern.pattern ?? '');
|
|
210
|
+
this.searchWidget.setReplaceAllActionState(false);
|
|
211
|
+
this.searchWidget.toggleReplace(true);
|
|
212
|
+
this.inputPatternIncludes.setOnlySearchInOpenEditors(this.viewModel.searchResult.query?.onlyOpenEditors || false);
|
|
213
|
+
this.inputPatternExcludes.setUseExcludesAndIgnoreFiles(!this.viewModel.searchResult.query?.userDisabledExcludesAndIgnoreFiles || true);
|
|
214
|
+
this.searchIncludePattern.setValue('');
|
|
215
|
+
this.searchExcludePattern.setValue('');
|
|
216
|
+
this.pauseSearching = false;
|
|
217
|
+
}
|
|
218
|
+
async importSearchResult(searchModel) {
|
|
219
|
+
searchModel.transferSearchResult(this.viewModel);
|
|
220
|
+
this.onSearchResultsChanged();
|
|
221
|
+
this.refreshInputs();
|
|
222
|
+
const collapseResults = this.searchConfig.collapseResults;
|
|
223
|
+
if (collapseResults !== 'alwaysCollapse' && this.viewModel.searchResult.matches().length === 1) {
|
|
224
|
+
const onlyMatch = this.viewModel.searchResult.matches()[0];
|
|
225
|
+
if (onlyMatch.count() < 50) {
|
|
226
|
+
this.tree.expand(onlyMatch);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
208
230
|
renderBody(parent) {
|
|
209
231
|
super.renderBody(parent);
|
|
210
232
|
this.container = dom.append(parent, dom.$('.search-view'));
|
|
@@ -293,7 +315,7 @@ let SearchView = class SearchView extends ViewPane {
|
|
|
293
315
|
if (filePatterns !== '' || patternExclusions !== '' || patternIncludes !== '' || queryDetailsExpanded !== '' || !useExcludesAndIgnoreFiles) {
|
|
294
316
|
this.toggleQueryDetails(true, true, true);
|
|
295
317
|
}
|
|
296
|
-
this._register(this.viewModel.
|
|
318
|
+
this._register(this.viewModel.onSearchResultChanged((event) => this.onSearchResultsChanged(event)));
|
|
297
319
|
this._register(this.onDidChangeBodyVisibility(visible => this.onVisibilityChanged(visible)));
|
|
298
320
|
this.updateIndentStyles(this.themeService.getFileIconTheme());
|
|
299
321
|
this._register(this.themeService.onDidFileIconThemeChange(this.updateIndentStyles, this));
|
|
@@ -709,12 +731,12 @@ let SearchView = class SearchView extends ViewPane {
|
|
|
709
731
|
overrideStyles: {
|
|
710
732
|
listBackground: this.getBackgroundColor()
|
|
711
733
|
},
|
|
712
|
-
|
|
734
|
+
paddingBottom: SearchDelegate.ITEM_HEIGHT
|
|
713
735
|
}));
|
|
714
736
|
this._register(this.tree.onContextMenu(e => this.onContextMenu(e)));
|
|
715
737
|
const updateHasSomeCollapsible = () => this.toggleCollapseStateDelayer.trigger(() => this.hasSomeCollapsibleResultKey.set(this.hasSomeCollapsible()));
|
|
716
738
|
updateHasSomeCollapsible();
|
|
717
|
-
this._register(this.viewModel.
|
|
739
|
+
this._register(this.viewModel.onSearchResultChanged(() => updateHasSomeCollapsible()));
|
|
718
740
|
this._register(this.tree.onDidChangeCollapseState(() => updateHasSomeCollapsible()));
|
|
719
741
|
this._register(Event.debounce(this.tree.onDidOpen, (last, event) => event, DEBOUNCE_DELAY, true)(options => {
|
|
720
742
|
if (options.element instanceof Match) {
|
|
@@ -746,8 +768,8 @@ let SearchView = class SearchView extends ViewPane {
|
|
|
746
768
|
this.lastFocusState = 'tree';
|
|
747
769
|
}
|
|
748
770
|
let editable = false;
|
|
749
|
-
if (focus instanceof
|
|
750
|
-
editable = !focus.isWebviewMatch();
|
|
771
|
+
if (focus instanceof Match) {
|
|
772
|
+
editable = (focus instanceof MatchInNotebook) ? !focus.isWebviewMatch() : true;
|
|
751
773
|
}
|
|
752
774
|
else if (focus instanceof FileMatch) {
|
|
753
775
|
editable = !focus.hasOnlyReadOnlyMatches();
|
|
@@ -992,7 +1014,7 @@ let SearchView = class SearchView extends ViewPane {
|
|
|
992
1014
|
return;
|
|
993
1015
|
}
|
|
994
1016
|
const actionsPosition = this.searchConfig.actionsPosition;
|
|
995
|
-
this.getContainer().classList.toggle(
|
|
1017
|
+
this.getContainer().classList.toggle(SearchView_1.ACTIONS_RIGHT_CLASS_NAME, actionsPosition === 'right');
|
|
996
1018
|
this.searchWidget.setWidth(this.size.width - 28 );
|
|
997
1019
|
this.inputPatternExcludes.setWidth(this.size.width - 28 );
|
|
998
1020
|
this.inputPatternIncludes.setWidth(this.size.width - 28 );
|
|
@@ -1218,9 +1240,10 @@ let SearchView = class SearchView extends ViewPane {
|
|
|
1218
1240
|
return;
|
|
1219
1241
|
}
|
|
1220
1242
|
if (!this.pauseSearching) {
|
|
1243
|
+
const delay = options.triggeredOnType ? options.delay : 0;
|
|
1221
1244
|
this.triggerQueryDelayer.trigger(() => {
|
|
1222
1245
|
this._onQueryChanged(options.preserveFocus, options.triggeredOnType);
|
|
1223
|
-
},
|
|
1246
|
+
}, delay);
|
|
1224
1247
|
}
|
|
1225
1248
|
}
|
|
1226
1249
|
_onQueryChanged(preserveFocus, triggeredOnType = false) {
|
|
@@ -1262,7 +1285,7 @@ let SearchView = class SearchView extends ViewPane {
|
|
|
1262
1285
|
const options = {
|
|
1263
1286
|
_reason: 'searchView',
|
|
1264
1287
|
extraFileResources: this.instantiationService.invokeFunction(getOutOfWorkspaceEditorResources),
|
|
1265
|
-
maxResults:
|
|
1288
|
+
maxResults: this.searchConfig.maxResults ?? undefined,
|
|
1266
1289
|
disregardIgnoreFiles: !useExcludesAndIgnoreFiles || undefined,
|
|
1267
1290
|
disregardExcludeSettings: !useExcludesAndIgnoreFiles || undefined,
|
|
1268
1291
|
onlyOpenEditors: onlySearchInOpenEditors,
|
|
@@ -1494,8 +1517,8 @@ let SearchView = class SearchView extends ViewPane {
|
|
|
1494
1517
|
this.searchWidget.setReplaceAllActionState(false);
|
|
1495
1518
|
this.tree.setSelection([]);
|
|
1496
1519
|
this.tree.setFocus([]);
|
|
1497
|
-
|
|
1498
|
-
|
|
1520
|
+
const result = this.viewModel.search(query);
|
|
1521
|
+
return result.asyncResults.then(onComplete, onError);
|
|
1499
1522
|
}
|
|
1500
1523
|
onOpenSettings(e) {
|
|
1501
1524
|
dom.EventHelper.stop(e, false);
|
|
@@ -1614,7 +1637,7 @@ let SearchView = class SearchView extends ViewPane {
|
|
|
1614
1637
|
this.open(lineMatch, preserveFocus, sideBySide, pinned, resource);
|
|
1615
1638
|
}
|
|
1616
1639
|
async open(element, preserveFocus, sideBySide, pinned, resourceInput) {
|
|
1617
|
-
const selection = this.
|
|
1640
|
+
const selection = getEditorSelectionFromMatch(element, this.viewModel);
|
|
1618
1641
|
const oldParentMatches = element instanceof Match ? element.parent().matches() : [];
|
|
1619
1642
|
const resource = resourceInput ?? (element instanceof Match ? element.parent().resource : element.resource);
|
|
1620
1643
|
let editor;
|
|
@@ -1623,7 +1646,6 @@ let SearchView = class SearchView extends ViewPane {
|
|
|
1623
1646
|
pinned,
|
|
1624
1647
|
selection,
|
|
1625
1648
|
revealIfVisible: true,
|
|
1626
|
-
indexedCellOptions: element instanceof MatchInNotebook ? { cellIndex: element.cellIndex, selection: element.range } : undefined,
|
|
1627
1649
|
};
|
|
1628
1650
|
try {
|
|
1629
1651
|
editor = await this.editorService.openEditor({
|
|
@@ -1703,29 +1725,6 @@ let SearchView = class SearchView extends ViewPane {
|
|
|
1703
1725
|
this.viewModel.searchResult.rangeHighlightDecorations.removeHighlightRange();
|
|
1704
1726
|
}, errors.onUnexpectedError);
|
|
1705
1727
|
}
|
|
1706
|
-
getSelectionFrom(element) {
|
|
1707
|
-
let match = null;
|
|
1708
|
-
if (element instanceof Match) {
|
|
1709
|
-
match = element;
|
|
1710
|
-
}
|
|
1711
|
-
if (element instanceof FileMatch && element.count() > 0) {
|
|
1712
|
-
match = element.matches()[element.matches().length - 1];
|
|
1713
|
-
}
|
|
1714
|
-
if (match) {
|
|
1715
|
-
const range = match.range();
|
|
1716
|
-
if (this.viewModel.isReplaceActive() && !!this.viewModel.replaceString) {
|
|
1717
|
-
const replaceString = match.replaceString;
|
|
1718
|
-
return {
|
|
1719
|
-
startLineNumber: range.startLineNumber,
|
|
1720
|
-
startColumn: range.startColumn,
|
|
1721
|
-
endLineNumber: range.startLineNumber,
|
|
1722
|
-
endColumn: range.startColumn + replaceString.length
|
|
1723
|
-
};
|
|
1724
|
-
}
|
|
1725
|
-
return range;
|
|
1726
|
-
}
|
|
1727
|
-
return undefined;
|
|
1728
|
-
}
|
|
1729
1728
|
onUntitledDidDispose(resource) {
|
|
1730
1729
|
if (!this.viewModel) {
|
|
1731
1730
|
return;
|
|
@@ -1840,7 +1839,7 @@ let SearchView = class SearchView extends ViewPane {
|
|
|
1840
1839
|
super.dispose();
|
|
1841
1840
|
}
|
|
1842
1841
|
};
|
|
1843
|
-
SearchView = ( __decorate([
|
|
1842
|
+
SearchView = SearchView_1 = ( __decorate([
|
|
1844
1843
|
( __param(1, IFileService)),
|
|
1845
1844
|
( __param(2, IEditorService)),
|
|
1846
1845
|
( __param(3, ICodeEditorService)),
|
|
@@ -1853,7 +1852,7 @@ SearchView = ( __decorate([
|
|
|
1853
1852
|
( __param(10, IViewDescriptorService)),
|
|
1854
1853
|
( __param(11, IConfigurationService)),
|
|
1855
1854
|
( __param(12, IWorkspaceContextService)),
|
|
1856
|
-
( __param(13,
|
|
1855
|
+
( __param(13, ISearchViewModelWorkbenchService)),
|
|
1857
1856
|
( __param(14, IContextKeyService)),
|
|
1858
1857
|
( __param(15, IReplaceService)),
|
|
1859
1858
|
( __param(16, ITextFileService)),
|
|
@@ -1891,4 +1890,27 @@ class SearchLinkButton extends Disposable {
|
|
|
1891
1890
|
}));
|
|
1892
1891
|
}
|
|
1893
1892
|
}
|
|
1894
|
-
|
|
1893
|
+
function getEditorSelectionFromMatch(element, viewModel) {
|
|
1894
|
+
let match = null;
|
|
1895
|
+
if (element instanceof Match) {
|
|
1896
|
+
match = element;
|
|
1897
|
+
}
|
|
1898
|
+
if (element instanceof FileMatch && element.count() > 0) {
|
|
1899
|
+
match = element.matches()[element.matches().length - 1];
|
|
1900
|
+
}
|
|
1901
|
+
if (match) {
|
|
1902
|
+
const range = match.range();
|
|
1903
|
+
if (viewModel.isReplaceActive() && !!viewModel.replaceString) {
|
|
1904
|
+
const replaceString = match.replaceString;
|
|
1905
|
+
return {
|
|
1906
|
+
startLineNumber: range.startLineNumber,
|
|
1907
|
+
startColumn: range.startColumn,
|
|
1908
|
+
endLineNumber: range.startLineNumber,
|
|
1909
|
+
endColumn: range.startColumn + replaceString.length
|
|
1910
|
+
};
|
|
1911
|
+
}
|
|
1912
|
+
return range;
|
|
1913
|
+
}
|
|
1914
|
+
return undefined;
|
|
1915
|
+
}
|
|
1916
|
+
export { SearchView, getEditorSelectionFromMatch };
|
|
@@ -32,6 +32,7 @@ import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiati
|
|
|
32
32
|
import { IEditorService } from '../../../services/editor/common/editorService.js';
|
|
33
33
|
import { NotebookEditorInput } from '../../../../../../../override/vs/workbench/contrib/notebook/common/notebookEditorInput.js';
|
|
34
34
|
import { SearchFindInput } from './searchFindInput.js';
|
|
35
|
+
var SearchWidget_1;
|
|
35
36
|
const SingleLineInputHeight = 26;
|
|
36
37
|
class ReplaceAllAction extends Action {
|
|
37
38
|
static { this.ID = 'search.action.replaceAll'; }
|
|
@@ -65,6 +66,7 @@ function stopPropagationForMultiLineDownwards(event, value, textarea) {
|
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
let SearchWidget = class SearchWidget extends Widget {
|
|
69
|
+
static { SearchWidget_1 = this; }
|
|
68
70
|
static { this.INPUT_MAX_HEIGHT = 134; }
|
|
69
71
|
static { this.REPLACE_ALL_DISABLED_LABEL = ( nls.localize(
|
|
70
72
|
'search.action.replaceAll.disabled.label',
|
|
@@ -278,7 +280,7 @@ let SearchWidget = class SearchWidget extends Widget {
|
|
|
278
280
|
history: options.searchHistory,
|
|
279
281
|
showHistoryHint: () => showHistoryKeybindingHint(this.keybindingService),
|
|
280
282
|
flexibleHeight: true,
|
|
281
|
-
flexibleMaxHeight:
|
|
283
|
+
flexibleMaxHeight: SearchWidget_1.INPUT_MAX_HEIGHT,
|
|
282
284
|
showCommonFindToggles: true,
|
|
283
285
|
inputBoxStyles: options.inputBoxStyles,
|
|
284
286
|
toggleStyles: options.toggleStyles
|
|
@@ -375,7 +377,7 @@ let SearchWidget = class SearchWidget extends Widget {
|
|
|
375
377
|
history: options.replaceHistory,
|
|
376
378
|
showHistoryHint: () => showHistoryKeybindingHint(this.keybindingService),
|
|
377
379
|
flexibleHeight: true,
|
|
378
|
-
flexibleMaxHeight:
|
|
380
|
+
flexibleMaxHeight: SearchWidget_1.INPUT_MAX_HEIGHT,
|
|
379
381
|
inputBoxStyles: options.inputBoxStyles,
|
|
380
382
|
toggleStyles: options.toggleStyles
|
|
381
383
|
}, this.contextKeyService, true)));
|
|
@@ -391,7 +393,7 @@ let SearchWidget = class SearchWidget extends Widget {
|
|
|
391
393
|
this._register(this.replaceInput.inputBox.onDidChange(() => this._onReplaceValueChanged.fire()));
|
|
392
394
|
this._register(this.replaceInput.inputBox.onDidHeightChange(() => this._onDidHeightChange.fire()));
|
|
393
395
|
this.replaceAllAction = ( new ReplaceAllAction(this));
|
|
394
|
-
this.replaceAllAction.label =
|
|
396
|
+
this.replaceAllAction.label = SearchWidget_1.REPLACE_ALL_DISABLED_LABEL;
|
|
395
397
|
this.replaceActionBar = this._register(( new ActionBar(this.replaceContainer)));
|
|
396
398
|
this.replaceActionBar.push([this.replaceAllAction], { icon: true, label: false });
|
|
397
399
|
this.onkeydown(this.replaceActionBar.domNode, (keyboardEvent) => this.onReplaceActionbarKeyDown(keyboardEvent));
|
|
@@ -424,7 +426,7 @@ let SearchWidget = class SearchWidget extends Widget {
|
|
|
424
426
|
setReplaceAllActionState(enabled) {
|
|
425
427
|
if (this.replaceAllAction && (this.replaceAllAction.enabled !== enabled)) {
|
|
426
428
|
this.replaceAllAction.enabled = enabled;
|
|
427
|
-
this.replaceAllAction.label = enabled ?
|
|
429
|
+
this.replaceAllAction.label = enabled ? SearchWidget_1.REPLACE_ALL_ENABLED_LABEL(this.keybindingService) : SearchWidget_1.REPLACE_ALL_DISABLED_LABEL;
|
|
428
430
|
this.updateReplaceActiveState();
|
|
429
431
|
}
|
|
430
432
|
}
|
|
@@ -599,7 +601,7 @@ let SearchWidget = class SearchWidget extends Widget {
|
|
|
599
601
|
return this.configurationService.getValue('search');
|
|
600
602
|
}
|
|
601
603
|
};
|
|
602
|
-
SearchWidget = ( __decorate([
|
|
604
|
+
SearchWidget = SearchWidget_1 = ( __decorate([
|
|
603
605
|
( __param(2, IContextViewService)),
|
|
604
606
|
( __param(3, IContextKeyService)),
|
|
605
607
|
( __param(4, IKeybindingService)),
|
|
@@ -12,11 +12,12 @@ import { Range } from 'monaco-editor/esm/vs/editor/common/core/range.js';
|
|
|
12
12
|
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
13
13
|
import { ICodeEditorService } from 'monaco-editor/esm/vs/editor/browser/services/codeEditorService.js';
|
|
14
14
|
import { getSelectionSearchString } from 'monaco-editor/esm/vs/editor/contrib/find/browser/findController.js';
|
|
15
|
-
import { withNullAsUndefined } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
16
15
|
import { prepareQuery, pieceToQuery, scoreFuzzy2 } from 'monaco-editor/esm/vs/base/common/fuzzyScorer.js';
|
|
17
16
|
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
18
17
|
import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
18
|
+
var SymbolsQuickAccessProvider_1;
|
|
19
19
|
let SymbolsQuickAccessProvider = class SymbolsQuickAccessProvider extends PickerQuickAccessProvider {
|
|
20
|
+
static { SymbolsQuickAccessProvider_1 = this; }
|
|
20
21
|
static { this.PREFIX = '#'; }
|
|
21
22
|
static { this.TYPING_SEARCH_DELAY = 200; }
|
|
22
23
|
static { this.TREAT_AS_GLOBAL_SYMBOL_TYPES = ( new Set([
|
|
@@ -31,12 +32,12 @@ let SymbolsQuickAccessProvider = class SymbolsQuickAccessProvider extends Picker
|
|
|
31
32
|
get defaultFilterValue() {
|
|
32
33
|
const editor = this.codeEditorService.getFocusedCodeEditor();
|
|
33
34
|
if (editor) {
|
|
34
|
-
return
|
|
35
|
+
return getSelectionSearchString(editor) ?? undefined;
|
|
35
36
|
}
|
|
36
37
|
return undefined;
|
|
37
38
|
}
|
|
38
39
|
constructor(labelService, openerService, editorService, configurationService, codeEditorService) {
|
|
39
|
-
super(
|
|
40
|
+
super(SymbolsQuickAccessProvider_1.PREFIX, {
|
|
40
41
|
canAcceptInBackground: true,
|
|
41
42
|
noResultsPick: {
|
|
42
43
|
label: ( localize('noSymbolResults', "No matching workspace symbols"))
|
|
@@ -47,7 +48,7 @@ let SymbolsQuickAccessProvider = class SymbolsQuickAccessProvider extends Picker
|
|
|
47
48
|
this.editorService = editorService;
|
|
48
49
|
this.configurationService = configurationService;
|
|
49
50
|
this.codeEditorService = codeEditorService;
|
|
50
|
-
this.delayer = this._register(( new ThrottledDelayer(
|
|
51
|
+
this.delayer = this._register(( new ThrottledDelayer(SymbolsQuickAccessProvider_1.TYPING_SEARCH_DELAY)));
|
|
51
52
|
}
|
|
52
53
|
get configuration() {
|
|
53
54
|
const editorConfig = this.configurationService.getValue().workbench?.editor;
|
|
@@ -84,7 +85,7 @@ let SymbolsQuickAccessProvider = class SymbolsQuickAccessProvider extends Picker
|
|
|
84
85
|
const symbolPicks = [];
|
|
85
86
|
const openSideBySideDirection = this.configuration.openSideBySideDirection;
|
|
86
87
|
for (const { symbol, provider } of workspaceSymbols) {
|
|
87
|
-
if (options?.skipLocal && !(
|
|
88
|
+
if (options?.skipLocal && !( SymbolsQuickAccessProvider_1.TREAT_AS_GLOBAL_SYMBOL_TYPES.has(symbol.kind)) && !!symbol.containerName) {
|
|
88
89
|
continue;
|
|
89
90
|
}
|
|
90
91
|
const symbolLabel = symbol.name;
|
|
@@ -209,7 +210,7 @@ let SymbolsQuickAccessProvider = class SymbolsQuickAccessProvider extends Picker
|
|
|
209
210
|
return 0;
|
|
210
211
|
}
|
|
211
212
|
};
|
|
212
|
-
SymbolsQuickAccessProvider = ( __decorate([
|
|
213
|
+
SymbolsQuickAccessProvider = SymbolsQuickAccessProvider_1 = ( __decorate([
|
|
213
214
|
( __param(0, ILabelService)),
|
|
214
215
|
( __param(1, IOpenerService)),
|
|
215
216
|
( __param(2, IEditorService)),
|
|
@@ -22,6 +22,7 @@ const AddCursorsAtSearchResults = 'addCursorsAtSearchResults';
|
|
|
22
22
|
const RevealInSideBarForSearchResults = 'search.action.revealInSideBar';
|
|
23
23
|
const ReplaceInFilesActionId = 'workbench.action.replaceInFiles';
|
|
24
24
|
const ShowAllSymbolsActionId = 'workbench.action.showAllSymbols';
|
|
25
|
+
const QuickTextSearchActionId = 'workbench.action.experimental.quickTextSearch';
|
|
25
26
|
const CancelSearchActionId = 'search.action.cancel';
|
|
26
27
|
const RefreshSearchResultsActionId = 'search.action.refreshSearchResults';
|
|
27
28
|
const FocusNextSearchResultActionId = 'search.action.focusNextSearchResult';
|
|
@@ -62,4 +63,4 @@ const ViewHasReplacePatternKey = ( new RawContextKey('viewHasReplacePattern', fa
|
|
|
62
63
|
const ViewHasFilePatternKey = ( new RawContextKey('viewHasFilePattern', false));
|
|
63
64
|
const ViewHasSomeCollapsibleKey = ( new RawContextKey('viewHasSomeCollapsibleResult', false));
|
|
64
65
|
const InTreeViewKey = ( new RawContextKey('inTreeView', false));
|
|
65
|
-
export { AddCursorsAtSearchResults, CancelSearchActionId, ClearSearchHistoryCommandId, ClearSearchResultsActionId, CloseReplaceWidgetActionId, CollapseSearchResultsActionId, CopyAllCommandId, CopyMatchCommandId, CopyPathCommandId, ExcludeFolderFromSearchId, ExpandSearchResultsActionId, FileFocusKey, FileMatchOrFolderMatchFocusKey, FileMatchOrFolderMatchWithResourceFocusKey, FileMatchOrMatchFocusKey, FindInFilesActionId, FindInFolderId, FindInWorkspaceId, FirstMatchFocusKey, FocusNextInputActionId, FocusNextSearchResultActionId, FocusPreviousInputActionId, FocusPreviousSearchResultActionId, FocusSearchFromResults, FocusSearchListCommandID, FolderFocusKey, HasSearchResults, InTreeViewKey, InputBoxFocusedKey, IsEditableItemKey, MatchFocusKey, OpenInEditorCommandId, OpenMatch, OpenMatchToSide, PatternExcludesFocusedKey, PatternIncludesFocusedKey, RefreshSearchResultsActionId, RemoveActionId, ReplaceActionId, ReplaceActiveKey, ReplaceAllInFileActionId, ReplaceAllInFolderActionId, ReplaceInFilesActionId, ReplaceInputBoxFocusedKey, ResourceFolderFocusKey, RestrictSearchToFolderId, RevealInSideBarForSearchResults, SearchInputBoxFocusedKey, SearchViewFocusedKey, SearchViewVisibleKey, ShowAllSymbolsActionId, ToggleCaseSensitiveCommandId, TogglePreserveCaseId, ToggleQueryDetailsActionId, ToggleRegexCommandId, ToggleSearchOnTypeActionId, ToggleWholeWordCommandId, ViewAsListActionId, ViewAsTreeActionId, ViewHasFilePatternKey, ViewHasReplacePatternKey, ViewHasSearchPatternKey, ViewHasSomeCollapsibleKey };
|
|
66
|
+
export { AddCursorsAtSearchResults, CancelSearchActionId, ClearSearchHistoryCommandId, ClearSearchResultsActionId, CloseReplaceWidgetActionId, CollapseSearchResultsActionId, CopyAllCommandId, CopyMatchCommandId, CopyPathCommandId, ExcludeFolderFromSearchId, ExpandSearchResultsActionId, FileFocusKey, FileMatchOrFolderMatchFocusKey, FileMatchOrFolderMatchWithResourceFocusKey, FileMatchOrMatchFocusKey, FindInFilesActionId, FindInFolderId, FindInWorkspaceId, FirstMatchFocusKey, FocusNextInputActionId, FocusNextSearchResultActionId, FocusPreviousInputActionId, FocusPreviousSearchResultActionId, FocusSearchFromResults, FocusSearchListCommandID, FolderFocusKey, HasSearchResults, InTreeViewKey, InputBoxFocusedKey, IsEditableItemKey, MatchFocusKey, OpenInEditorCommandId, OpenMatch, OpenMatchToSide, PatternExcludesFocusedKey, PatternIncludesFocusedKey, QuickTextSearchActionId, RefreshSearchResultsActionId, RemoveActionId, ReplaceActionId, ReplaceActiveKey, ReplaceAllInFileActionId, ReplaceAllInFolderActionId, ReplaceInFilesActionId, ReplaceInputBoxFocusedKey, ResourceFolderFocusKey, RestrictSearchToFolderId, RevealInSideBarForSearchResults, SearchInputBoxFocusedKey, SearchViewFocusedKey, SearchViewVisibleKey, ShowAllSymbolsActionId, ToggleCaseSensitiveCommandId, TogglePreserveCaseId, ToggleQueryDetailsActionId, ToggleRegexCommandId, ToggleSearchOnTypeActionId, ToggleWholeWordCommandId, ViewAsListActionId, ViewAsTreeActionId, ViewHasFilePatternKey, ViewHasReplacePatternKey, ViewHasSearchPatternKey, ViewHasSomeCollapsibleKey };
|
|
@@ -3,8 +3,10 @@ import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
|
3
3
|
import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
|
|
4
4
|
import { isEmptyObject } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
5
5
|
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
6
|
+
var SearchHistoryService_1;
|
|
6
7
|
const ISearchHistoryService = ( createDecorator('searchHistoryService'));
|
|
7
8
|
let SearchHistoryService = class SearchHistoryService {
|
|
9
|
+
static { SearchHistoryService_1 = this; }
|
|
8
10
|
static { this.SEARCH_HISTORY_KEY = 'workbench.search.history'; }
|
|
9
11
|
constructor(storageService) {
|
|
10
12
|
this.storageService = storageService;
|
|
@@ -12,12 +14,12 @@ let SearchHistoryService = class SearchHistoryService {
|
|
|
12
14
|
this.onDidClearHistory = this._onDidClearHistory.event;
|
|
13
15
|
}
|
|
14
16
|
clearHistory() {
|
|
15
|
-
this.storageService.remove(
|
|
17
|
+
this.storageService.remove(SearchHistoryService_1.SEARCH_HISTORY_KEY, 1 );
|
|
16
18
|
this._onDidClearHistory.fire();
|
|
17
19
|
}
|
|
18
20
|
load() {
|
|
19
21
|
let result;
|
|
20
|
-
const raw = this.storageService.get(
|
|
22
|
+
const raw = this.storageService.get(SearchHistoryService_1.SEARCH_HISTORY_KEY, 1 );
|
|
21
23
|
if (raw) {
|
|
22
24
|
try {
|
|
23
25
|
result = JSON.parse(raw);
|
|
@@ -29,14 +31,14 @@ let SearchHistoryService = class SearchHistoryService {
|
|
|
29
31
|
}
|
|
30
32
|
save(history) {
|
|
31
33
|
if (isEmptyObject(history)) {
|
|
32
|
-
this.storageService.remove(
|
|
34
|
+
this.storageService.remove(SearchHistoryService_1.SEARCH_HISTORY_KEY, 1 );
|
|
33
35
|
}
|
|
34
36
|
else {
|
|
35
|
-
this.storageService.store(
|
|
37
|
+
this.storageService.store(SearchHistoryService_1.SEARCH_HISTORY_KEY, JSON.stringify(history), 1 , 0 );
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
};
|
|
39
|
-
SearchHistoryService = ( __decorate([
|
|
41
|
+
SearchHistoryService = SearchHistoryService_1 = ( __decorate([
|
|
40
42
|
( __param(0, IStorageService))
|
|
41
43
|
], SearchHistoryService));
|
|
42
44
|
export { ISearchHistoryService, SearchHistoryService };
|
|
@@ -4,7 +4,7 @@ import { StandardKeyboardEvent } from 'monaco-editor/esm/vs/base/browser/keyboar
|
|
|
4
4
|
import { alert } from 'monaco-editor/esm/vs/base/browser/ui/aria/aria.js';
|
|
5
5
|
import { Delayer } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
6
6
|
import { DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
7
|
-
import { assertIsDefined
|
|
7
|
+
import { assertIsDefined } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
8
8
|
import './media/searchEditor.css.js';
|
|
9
9
|
import { Position } from 'monaco-editor/esm/vs/editor/common/core/position.js';
|
|
10
10
|
import { Range } from 'monaco-editor/esm/vs/editor/common/core/range.js';
|
|
@@ -47,14 +47,16 @@ import { EditorExtensionsRegistry } from 'monaco-editor/esm/vs/editor/browser/ed
|
|
|
47
47
|
import { UnusualLineTerminatorsDetector } from 'monaco-editor/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js';
|
|
48
48
|
import { getInputBoxStyle, defaultToggleStyles } from 'monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js';
|
|
49
49
|
import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
50
|
+
var SearchEditor_1;
|
|
50
51
|
const RESULT_LINE_REGEX = /^(\s+)(\d+)(: | )(\s*)(.*)$/;
|
|
51
52
|
const FILE_LINE_REGEX = /^(\S.*):$/;
|
|
52
53
|
let SearchEditor = class SearchEditor extends AbstractTextCodeEditor {
|
|
54
|
+
static { SearchEditor_1 = this; }
|
|
53
55
|
static { this.ID = SearchEditorID; }
|
|
54
56
|
static { this.SEARCH_EDITOR_VIEW_STATE_PREFERENCE_KEY = 'searchEditorViewState'; }
|
|
55
57
|
get searchResultEditor() { return this.editorControl; }
|
|
56
58
|
constructor(telemetryService, themeService, storageService, modelService, contextService, labelService, instantiationService, contextViewService, commandService, openerService, notificationService, progressService, textResourceService, editorGroupService, editorService, configurationService, fileService, logService) {
|
|
57
|
-
super(
|
|
59
|
+
super(SearchEditor_1.ID, telemetryService, instantiationService, storageService, textResourceService, themeService, editorService, editorGroupService, fileService);
|
|
58
60
|
this.modelService = modelService;
|
|
59
61
|
this.contextService = contextService;
|
|
60
62
|
this.labelService = labelService;
|
|
@@ -273,8 +275,8 @@ let SearchEditor = class SearchEditor extends AbstractTextCodeEditor {
|
|
|
273
275
|
modifyContextLines(increase) {
|
|
274
276
|
this.queryEditorWidget.modifyContextLines(increase);
|
|
275
277
|
}
|
|
276
|
-
toggleQueryDetails() {
|
|
277
|
-
this.toggleIncludesExcludes();
|
|
278
|
+
toggleQueryDetails(shouldShow) {
|
|
279
|
+
this.toggleIncludesExcludes(shouldShow);
|
|
278
280
|
}
|
|
279
281
|
deleteResultBlock() {
|
|
280
282
|
const linesToDelete = ( new Set());
|
|
@@ -437,7 +439,7 @@ let SearchEditor = class SearchEditor extends AbstractTextCodeEditor {
|
|
|
437
439
|
const options = {
|
|
438
440
|
_reason: 'searchEditor',
|
|
439
441
|
extraFileResources: this.instantiationService.invokeFunction(getOutOfWorkspaceEditorResources),
|
|
440
|
-
maxResults:
|
|
442
|
+
maxResults: this.searchConfig.maxResults ?? undefined,
|
|
441
443
|
disregardIgnoreFiles: !config.useExcludeSettingsAndIgnoreFiles || undefined,
|
|
442
444
|
disregardExcludeSettings: !config.useExcludeSettingsAndIgnoreFiles || undefined,
|
|
443
445
|
excludePattern: config.filesToExclude,
|
|
@@ -471,7 +473,8 @@ let SearchEditor = class SearchEditor extends AbstractTextCodeEditor {
|
|
|
471
473
|
this.ongoingOperations++;
|
|
472
474
|
const { configurationModel } = await startInput.resolveModels();
|
|
473
475
|
configurationModel.updateConfig(config);
|
|
474
|
-
|
|
476
|
+
const result = this.searchModel.search(query);
|
|
477
|
+
startInput.ongoingSearchOperation = result.asyncResults.finally(() => {
|
|
475
478
|
this.ongoingOperations--;
|
|
476
479
|
if (this.ongoingOperations === 0) {
|
|
477
480
|
this.searchOperation.stop();
|
|
@@ -654,7 +657,7 @@ let SearchEditor = class SearchEditor extends AbstractTextCodeEditor {
|
|
|
654
657
|
return this.getInput()?.getName() ?? ( localize('searchEditor', "Search"));
|
|
655
658
|
}
|
|
656
659
|
};
|
|
657
|
-
SearchEditor = ( __decorate([
|
|
660
|
+
SearchEditor = SearchEditor_1 = ( __decorate([
|
|
658
661
|
( __param(0, ITelemetryService)),
|
|
659
662
|
( __param(1, IThemeService)),
|
|
660
663
|
( __param(2, IStorageService)),
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
|
|
2
|
-
import { withNullAsUndefined } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
3
2
|
import './media/searchEditor.css.js';
|
|
4
3
|
import { isDiffEditor } from 'monaco-editor/esm/vs/editor/browser/editorBrowser.js';
|
|
5
4
|
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
@@ -87,7 +86,7 @@ const openNewSearchEditor = async (accessor, _args = {}, toSide = false) => {
|
|
|
87
86
|
const workspaceContextService = accessor.get(IWorkspaceContextService);
|
|
88
87
|
const historyService = accessor.get(IHistoryService);
|
|
89
88
|
const activeWorkspaceRootUri = historyService.getLastActiveWorkspaceRoot(Schemas.file);
|
|
90
|
-
const lastActiveWorkspaceRoot = activeWorkspaceRootUri ?
|
|
89
|
+
const lastActiveWorkspaceRoot = activeWorkspaceRootUri ? workspaceContextService.getWorkspaceFolder(activeWorkspaceRootUri) ?? undefined : undefined;
|
|
91
90
|
const activeEditorControl = editorService.activeTextEditorControl;
|
|
92
91
|
let activeModel;
|
|
93
92
|
let selected = '';
|