@codingame/monaco-vscode-api 1.83.15 → 1.85.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 +430 -0
- package/api.js +13 -7
- package/assets/clear.mp3 +0 -0
- package/assets/format.mp3 +0 -0
- package/assets/save.mp3 +0 -0
- package/contributions.js +3 -0
- package/extensions.d.ts +13 -3
- package/external/{xterm-addon-image/typings/xterm-addon-image.d.ts → @xterm/addon-image/typings/addon-image.d.ts} +1 -1
- package/external/{xterm → @xterm/xterm}/typings/xterm.d.ts +13 -1
- package/lifecycle.js +2 -2
- package/localExtensionHost.js +6 -3
- package/missing-services.js +170 -22
- package/monaco-editor-treemending.patch +6884 -18018
- package/monaco-treemending.js +2 -2
- package/package.json +7 -7
- package/service-override/tools/editor.d.ts +8 -8
- package/service-override/tools/editor.js +44 -19
- package/services.d.ts +2 -2
- package/services.js +3 -3
- package/vscode/src/vs/base/browser/broadcast.js +6 -5
- package/vscode/src/vs/base/browser/dnd.d.ts +6 -0
- package/vscode/src/vs/base/browser/mouseEvent.d.ts +1 -1
- package/vscode/src/vs/base/browser/touch.d.ts +10 -0
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/iconLabel/iconHoverDelegate.d.ts +22 -15
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +4 -3
- package/vscode/src/vs/base/browser/ui/splitview/paneview.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.d.ts +3 -0
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +34 -11
- package/vscode/src/vs/base/common/actions.d.ts +1 -15
- package/vscode/src/vs/base/common/async.d.ts +1 -31
- package/vscode/src/vs/base/common/event.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +23 -10
- package/vscode/src/vs/base/common/prefixTree.js +140 -0
- package/vscode/src/vs/base/common/product.d.ts +16 -2
- package/vscode/src/vs/base/common/resourceTree.js +135 -0
- package/vscode/src/vs/base/common/skipList.js +1 -0
- package/vscode/src/vs/base/common/tfIdf.js +137 -0
- package/vscode/src/vs/base/common/types.d.ts +13 -1
- package/vscode/src/vs/base/common/verifier.js +62 -0
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +4 -2
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +23 -4
- package/vscode/src/vs/editor/common/core/lineRange.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/offsetRange.d.ts +3 -0
- package/vscode/src/vs/editor/common/core/position.d.ts +1 -0
- package/vscode/src/vs/editor/common/editorCommon.d.ts +2 -1
- package/vscode/src/vs/editor/common/languages.d.ts +23 -1
- package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/resolverService.d.ts +11 -2
- package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +16 -1
- package/vscode/src/vs/platform/action/common/action.d.ts +8 -0
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +4 -0
- package/vscode/src/vs/platform/actions/browser/floatingMenu.js +26 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +8 -0
- package/vscode/src/vs/platform/audioCues/browser/audioCueService.d.ts +6 -0
- package/vscode/src/vs/platform/commands/common/commands.d.ts +13 -5
- package/vscode/src/vs/platform/dialogs/common/dialogs.d.ts +9 -3
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +5 -2
- package/vscode/src/vs/platform/editor/common/editor.d.ts +3 -15
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +3 -15
- package/vscode/src/vs/platform/extensionManagement/common/implicitActivationEvents.js +5 -0
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +0 -1
- package/vscode/src/vs/platform/files/common/files.d.ts +72 -8
- package/vscode/src/vs/platform/files/common/watcher.js +77 -0
- package/vscode/src/vs/platform/keybinding/common/keybindingsRegistry.d.ts +2 -2
- package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +52 -21
- package/vscode/src/vs/platform/request/browser/requestService.js +3 -0
- package/vscode/src/vs/platform/request/common/requestIpc.js +17 -0
- package/vscode/src/vs/platform/storage/common/storage.js +2 -2
- package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +1 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +41 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +12 -7
- package/vscode/src/vs/platform/terminal/common/capabilities/{commandDetectionCapability.d.ts → commandDetection/terminalCommand.d.ts} +3 -2
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +257 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +651 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +29 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +48 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +94 -0
- package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +37 -0
- package/vscode/src/vs/platform/terminal/common/terminalStrings.js +16 -0
- package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +319 -0
- package/vscode/src/vs/platform/window/common/window.d.ts +9 -2
- package/vscode/src/vs/platform/window/common/window.js +6 -1
- package/vscode/src/vs/platform/workspaces/common/workspaces.d.ts +2 -43
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +113 -81
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +5 -4
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +25 -3
- package/vscode/src/vs/workbench/api/common/extHostChat.js +13 -163
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +412 -0
- package/vscode/src/vs/workbench/api/common/extHostChatProvider.js +79 -11
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +13 -12
- package/vscode/src/vs/workbench/api/common/extHostComments.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +8 -6
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +36 -19
- package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +52 -31
- package/vscode/src/vs/workbench/api/common/extHostIssueReporter.js +38 -0
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +28 -3
- package/vscode/src/vs/workbench/api/common/extHostLanguages.js +10 -0
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +117 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +32 -4
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +85 -23
- package/vscode/src/vs/workbench/api/common/extHostSearch.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostSpeech.js +42 -0
- package/vscode/src/vs/workbench/api/common/extHostTask.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +97 -47
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +115 -16
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +66 -36
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +6 -1
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +182 -75
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +176 -4
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +143 -2
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +237 -0
- package/vscode/src/vs/workbench/browser/composite.d.ts +0 -4
- package/vscode/src/vs/workbench/browser/composite.js +5 -4
- package/vscode/src/vs/workbench/browser/dnd.js +72 -23
- package/vscode/src/vs/workbench/browser/labels.js +7 -3
- package/vscode/src/vs/workbench/browser/media/part.css.js +1 -1
- package/vscode/src/vs/workbench/browser/panecomposite.d.ts +2 -2
- package/vscode/src/vs/workbench/browser/panecomposite.js +2 -0
- package/vscode/src/vs/workbench/browser/part.js +33 -2
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +99 -117
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +173 -33
- package/vscode/src/vs/workbench/browser/parts/editor/editor.js +102 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +256 -17
- package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +68 -35
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +35 -16
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +348 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +43 -31
- package/vscode/src/vs/workbench/browser/parts/editor/media/editortabscontrol.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +14 -2
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +277 -0
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +5 -2
- package/vscode/src/vs/workbench/browser/parts/panel/media/panelpart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +3 -38
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.d.ts +54 -52
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +2 -1
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.d.ts +25 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +258 -0
- package/vscode/src/vs/workbench/browser/parts/views/media/paneviewlet.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +2 -5
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +157 -117
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +50 -23
- package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +26 -11
- package/vscode/src/vs/workbench/browser/parts/views/viewsViewlet.js +10 -6
- package/vscode/src/vs/workbench/browser/style.js +2 -1
- package/vscode/src/vs/workbench/browser/web.api.d.ts +39 -2
- package/vscode/src/vs/workbench/browser/window.js +55 -0
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +220 -40
- package/vscode/src/vs/workbench/common/activity.js +3 -0
- package/vscode/src/vs/workbench/common/contextkeys.js +35 -5
- package/vscode/src/vs/workbench/common/contributions.js +4 -3
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +14 -4
- package/vscode/src/vs/workbench/common/editor/diffEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +22 -19
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +4 -3
- package/vscode/src/vs/workbench/common/editor/editorModel.d.ts +1 -2
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +22 -4
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +3 -3
- package/vscode/src/vs/workbench/common/editor.d.ts +60 -30
- package/vscode/src/vs/workbench/common/editor.js +11 -3
- package/vscode/src/vs/workbench/common/theme.js +2 -2
- package/vscode/src/vs/workbench/common/views.d.ts +4 -4
- package/vscode/src/vs/workbench/common/views.js +3 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +97 -8
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +17 -99
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +103 -37
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +2 -3
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +127 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +33 -110
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +64 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +94 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +1 -88
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +3 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +15 -16
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +91 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +9 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +3 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +2 -3
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +1 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +10 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +114 -22
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +4 -1
- package/vscode/src/vs/workbench/contrib/files/browser/explorerFileContrib.js +19 -0
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +10 -8
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +62 -10
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +2 -1
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +9 -8
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +10 -1
- package/vscode/src/vs/workbench/contrib/files/browser/files.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.js +7 -3
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +64 -36
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +42 -17
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +145 -25
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +423 -0
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +82 -0
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +36 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +3 -1
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +24 -3
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +11 -6
- package/vscode/src/vs/workbench/contrib/scm/common/scm.js +1 -2
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/searchNotebookHelpers.js +31 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +61 -41
- package/vscode/src/vs/workbench/contrib/search/{browser/searchNotebookHelpers.js → common/cellSearchModel.js} +4 -63
- package/vscode/src/vs/workbench/contrib/search/common/searchNotebookHelpers.js +40 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +2 -2
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +3 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +92 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +100 -79
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +25 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.js +7 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +64 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +36 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +540 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +104 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +518 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +390 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +17 -11
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +814 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +2 -8
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/getComputedState.js +101 -0
- package/vscode/src/vs/workbench/contrib/testing/common/observableValue.js +30 -0
- package/vscode/src/vs/workbench/contrib/testing/common/storedValue.js +36 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +115 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.js +74 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.js +116 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.js +172 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +384 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResultService.js +156 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.js +156 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testService.js +75 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +72 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +188 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.js +102 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingDecorations.js +29 -0
- package/vscode/src/vs/workbench/{services/editor/browser/editorDropService.js → contrib/testing/common/testingPeekOpener.js} +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testingStates.js +47 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +4 -3
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +8 -9
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewIconManager.js +5 -2
- package/vscode/src/vs/workbench/services/activity/browser/activityService.d.ts +16 -10
- package/vscode/src/vs/workbench/services/activity/common/activity.d.ts +14 -1
- package/vscode/src/vs/workbench/services/activity/common/activity.js +1 -7
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +9 -28
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +273 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +2 -0
- package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +2 -3
- package/vscode/src/vs/workbench/services/editor/browser/editorService.d.ts +7 -5
- package/vscode/src/vs/workbench/services/editor/browser/editorService.js +59 -37
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +193 -94
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.js +2 -2
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +8 -2
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +8 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +62 -16
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +5 -3
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +3 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +4 -9
- package/vscode/src/vs/workbench/services/extensions/common/{extensionHostManager.d.ts → extensionHostManagers.d.ts} +2 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +9 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +22 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +14 -3
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +9 -0
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +3 -3
- package/vscode/src/vs/workbench/services/history/common/history.d.ts +2 -2
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +49 -18
- package/vscode/src/vs/workbench/services/host/browser/host.d.ts +29 -7
- package/vscode/src/vs/workbench/services/hover/browser/hover.d.ts +51 -28
- package/vscode/src/vs/workbench/services/hover/browser/hoverService.d.ts +5 -2
- package/vscode/src/vs/workbench/services/keybinding/browser/unboundCommands.js +2 -2
- package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.d.ts +4 -1
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +40 -36
- package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.d.ts +0 -6
- package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +3 -0
- package/vscode/src/vs/workbench/services/progress/browser/progressIndicator.js +2 -2
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +16 -1
- package/vscode/src/vs/workbench/services/request/browser/requestService.js +48 -0
- package/vscode/src/vs/workbench/services/search/common/searchHelpers.js +4 -4
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +10 -51
- package/vscode/src/vs/workbench/services/suggest/browser/media/suggest.css.js +4 -0
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +10 -0
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +98 -0
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +428 -0
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +83 -0
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +32 -1
- package/vscode/src/vs/workbench/services/textfile/common/textEditorService.js +1 -5
- package/vscode/src/vs/workbench/services/themes/browser/browserHostColorSchemeService.js +4 -3
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +9 -3
- package/vscode/src/vs/workbench/services/title/browser/titleService.d.ts +18 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +18 -3
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.js +16 -7
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +6 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +13 -0
- package/vscode/src/vs/workbench/services/url/browser/urlService.js +2 -1
- package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.js +2 -2
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +9 -0
- package/vscode-dts/vscode.proposed.chatAgents2.d.ts +375 -0
- package/vscode-dts/vscode.proposed.chatAgents2Additions.d.ts +80 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +5 -1
- package/vscode-dts/vscode.proposed.chatRequestAccess.d.ts +68 -10
- package/vscode-dts/vscode.proposed.chatTab.d.ts +21 -0
- package/vscode-dts/vscode.proposed.chatVariables.d.ts +5 -1
- package/vscode-dts/vscode.proposed.codeActionAI.d.ts +16 -0
- package/vscode-dts/vscode.proposed.contribSourceControlInputBoxMenu.d.ts +7 -0
- package/vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts +51 -0
- package/vscode-dts/vscode.proposed.defaultChatAgent.d.ts +30 -0
- package/vscode-dts/vscode.proposed.handleIssueUri.d.ts +26 -0
- package/vscode-dts/vscode.proposed.interactive.d.ts +26 -100
- package/vscode-dts/vscode.proposed.interactiveUserActions.d.ts +14 -7
- package/vscode-dts/vscode.proposed.languageStatusText.d.ts +12 -0
- package/vscode-dts/vscode.proposed.multiDocumentHighlightProvider.d.ts +63 -0
- package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +43 -0
- package/vscode-dts/vscode.proposed.resolvers.d.ts +100 -1
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +9 -1
- package/vscode-dts/vscode.proposed.scmInputBoxActionButton.d.ts +19 -0
- package/vscode-dts/vscode.proposed.scmInputBoxValueProvider.d.ts +25 -0
- package/vscode-dts/vscode.proposed.speech.d.ts +35 -0
- package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +11 -7
- package/vscode-dts/vscode.proposed.testCoverage.d.ts +6 -1
- package/vscode-dts/vscode.proposed.testingActiveProfile.d.ts +21 -0
- package/external/xterm-headless/typings/xterm-headless.d.ts +0 -49
- package/vscode/src/vs/platform/backup/common/backup.d.ts +0 -14
- package/vscode/src/vs/platform/update/common/update.d.ts +0 -112
- package/vscode/src/vs/workbench/api/common/extHostChatAgents.js +0 -62
- package/vscode/src/vs/workbench/api/common/extHostChatSlashCommand.js +0 -62
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +0 -56
- package/vscode/src/vs/workbench/services/files/common/files.js +0 -4
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.d.ts +0 -41
- package/vscode/src/vs/workbench/services/title/common/titleService.d.ts +0 -31
- package/vscode-dts/vscode.proposed.chatAgents.d.ts +0 -39
- package/vscode-dts/vscode.proposed.chatSlashCommands.d.ts +0 -47
- package/vscode-dts/vscode.proposed.testMessageContextValue.d.ts +0 -45
- /package/external/{xterm-addon-canvas/typings/xterm-addon-canvas.d.ts → @xterm/addon-canvas/typings/addon-canvas.d.ts} +0 -0
- /package/external/{xterm-addon-search/typings/xterm-addon-search.d.ts → @xterm/addon-search/typings/addon-search.d.ts} +0 -0
- /package/external/{xterm-addon-serialize/typings/xterm-addon-serialize.d.ts → @xterm/addon-serialize/typings/addon-serialize.d.ts} +0 -0
- /package/external/{xterm-addon-unicode11/typings/xterm-addon-unicode11.d.ts → @xterm/addon-unicode11/typings/addon-unicode11.d.ts} +0 -0
- /package/external/{xterm-addon-webgl/typings/xterm-addon-webgl.d.ts → @xterm/addon-webgl/typings/addon-webgl.d.ts} +0 -0
- /package/vscode/src/vs/workbench/services/title/{common → browser}/titleService.js +0 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { CancellationTokenSource } from 'monaco-editor/esm/vs/base/common/cancellation.js';
|
|
3
|
+
import { Disposable, toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
4
|
+
import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
5
|
+
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
6
|
+
import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
|
|
7
|
+
import { StoredValue } from './storedValue.js';
|
|
8
|
+
import { TestingContextKeys } from './testingContextKeys.js';
|
|
9
|
+
import { ITestService } from './testService.js';
|
|
10
|
+
import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
11
|
+
import { TestId } from './testId.js';
|
|
12
|
+
import { WellDefinedPrefixTree } from '../../../../base/common/prefixTree.js';
|
|
13
|
+
const ITestingContinuousRunService = ( createDecorator('testingContinuousRunService'));
|
|
14
|
+
let TestingContinuousRunService = class TestingContinuousRunService extends Disposable {
|
|
15
|
+
get lastRunProfileIds() {
|
|
16
|
+
return this.lastRun.get(( new Set()));
|
|
17
|
+
}
|
|
18
|
+
constructor(testService, storageService, contextKeyService) {
|
|
19
|
+
super();
|
|
20
|
+
this.testService = testService;
|
|
21
|
+
this.changeEmitter = ( new Emitter());
|
|
22
|
+
this.running = ( new WellDefinedPrefixTree());
|
|
23
|
+
this.onDidChange = this.changeEmitter.event;
|
|
24
|
+
this.isGloballyOn = TestingContextKeys.isContinuousModeOn.bindTo(contextKeyService);
|
|
25
|
+
this.lastRun = this._register(( new StoredValue({
|
|
26
|
+
key: 'lastContinuousRunProfileIds',
|
|
27
|
+
scope: 1 ,
|
|
28
|
+
target: 1 ,
|
|
29
|
+
serialization: {
|
|
30
|
+
deserialize: v => ( new Set(JSON.parse(v))),
|
|
31
|
+
serialize: v => JSON.stringify([...v])
|
|
32
|
+
},
|
|
33
|
+
}, storageService)));
|
|
34
|
+
this._register(toDisposable(() => {
|
|
35
|
+
this.globallyRunning?.dispose();
|
|
36
|
+
for (const cts of ( this.running.values())) {
|
|
37
|
+
cts.dispose();
|
|
38
|
+
}
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
isSpecificallyEnabledFor(testId) {
|
|
42
|
+
return this.running.size > 0 && this.running.hasKey(TestId.fromString(testId).path);
|
|
43
|
+
}
|
|
44
|
+
isEnabledForAParentOf(testId) {
|
|
45
|
+
if (this.globallyRunning) {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
return this.running.size > 0 && this.running.hasKeyOrParent(TestId.fromString(testId).path);
|
|
49
|
+
}
|
|
50
|
+
isEnabledForAChildOf(testId) {
|
|
51
|
+
return this.running.size > 0 && this.running.hasKeyOrChildren(TestId.fromString(testId).path);
|
|
52
|
+
}
|
|
53
|
+
isEnabled() {
|
|
54
|
+
return !!this.globallyRunning || this.running.size > 0;
|
|
55
|
+
}
|
|
56
|
+
start(profile, testId) {
|
|
57
|
+
const cts = ( new CancellationTokenSource());
|
|
58
|
+
if (testId === undefined) {
|
|
59
|
+
this.isGloballyOn.set(true);
|
|
60
|
+
}
|
|
61
|
+
if (!testId) {
|
|
62
|
+
this.globallyRunning?.dispose(true);
|
|
63
|
+
this.globallyRunning = cts;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
this.running.mutate(TestId.fromString(testId).path, c => {
|
|
67
|
+
c?.dispose(true);
|
|
68
|
+
return cts;
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
this.lastRun.store(( new Set(( profile.map(p => p.profileId)))));
|
|
72
|
+
this.testService.startContinuousRun({
|
|
73
|
+
continuous: true,
|
|
74
|
+
targets: ( profile.map(p => ({
|
|
75
|
+
testIds: [testId ?? p.controllerId],
|
|
76
|
+
controllerId: p.controllerId,
|
|
77
|
+
profileGroup: p.group,
|
|
78
|
+
profileId: p.profileId
|
|
79
|
+
}))),
|
|
80
|
+
}, cts.token);
|
|
81
|
+
this.changeEmitter.fire(testId);
|
|
82
|
+
}
|
|
83
|
+
stop(testId) {
|
|
84
|
+
if (!testId) {
|
|
85
|
+
this.globallyRunning?.dispose(true);
|
|
86
|
+
this.globallyRunning = undefined;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
this.running.delete(TestId.fromString(testId).path)?.dispose(true);
|
|
90
|
+
}
|
|
91
|
+
if (testId === undefined) {
|
|
92
|
+
this.isGloballyOn.set(false);
|
|
93
|
+
}
|
|
94
|
+
this.changeEmitter.fire(testId);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
TestingContinuousRunService = ( __decorate([
|
|
98
|
+
( __param(0, ITestService)),
|
|
99
|
+
( __param(1, IStorageService)),
|
|
100
|
+
( __param(2, IContextKeyService))
|
|
101
|
+
], TestingContinuousRunService));
|
|
102
|
+
export { ITestingContinuousRunService, TestingContinuousRunService };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { binarySearch } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
2
|
+
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
3
|
+
class TestDecorations {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.value = [];
|
|
6
|
+
}
|
|
7
|
+
push(value) {
|
|
8
|
+
const searchIndex = binarySearch(this.value, value, (a, b) => a.line - b.line);
|
|
9
|
+
this.value.splice(searchIndex < 0 ? ~searchIndex : searchIndex, 0, value);
|
|
10
|
+
}
|
|
11
|
+
*lines() {
|
|
12
|
+
if (!this.value.length) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
let startIndex = 0;
|
|
16
|
+
let startLine = this.value[0].line;
|
|
17
|
+
for (let i = 1; i < this.value.length; i++) {
|
|
18
|
+
const v = this.value[i];
|
|
19
|
+
if (v.line !== startLine) {
|
|
20
|
+
yield [startLine, this.value.slice(startIndex, i)];
|
|
21
|
+
startLine = v.line;
|
|
22
|
+
startIndex = i;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
yield [startLine, this.value.slice(startIndex)];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const ITestingDecorationsService = ( createDecorator('testingDecorationService'));
|
|
29
|
+
export { ITestingDecorationsService, TestDecorations };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
2
|
-
const
|
|
3
|
-
export {
|
|
2
|
+
const ITestingPeekOpener = ( createDecorator('testingPeekOpener'));
|
|
3
|
+
export { ITestingPeekOpener };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const statePriority = {
|
|
2
|
+
[2 ]: 6,
|
|
3
|
+
[6 ]: 5,
|
|
4
|
+
[4 ]: 4,
|
|
5
|
+
[1 ]: 3,
|
|
6
|
+
[3 ]: 2,
|
|
7
|
+
[0 ]: 0,
|
|
8
|
+
[5 ]: 1,
|
|
9
|
+
};
|
|
10
|
+
const isFailedState = (s) => s === 6 || s === 4 ;
|
|
11
|
+
const isStateWithResult = (s) => s === 6 || s === 4 || s === 3 ;
|
|
12
|
+
Object.entries(statePriority).reduce((acc, [stateStr, priority]) => {
|
|
13
|
+
const state = Number(stateStr);
|
|
14
|
+
acc[state] = { statusNode: true, state, priority };
|
|
15
|
+
return acc;
|
|
16
|
+
}, {});
|
|
17
|
+
const cmpPriority = (a, b) => statePriority[b] - statePriority[a];
|
|
18
|
+
const maxPriority = (...states) => {
|
|
19
|
+
switch (states.length) {
|
|
20
|
+
case 0:
|
|
21
|
+
return 0 ;
|
|
22
|
+
case 1:
|
|
23
|
+
return states[0];
|
|
24
|
+
case 2:
|
|
25
|
+
return statePriority[states[0]] > statePriority[states[1]] ? states[0] : states[1];
|
|
26
|
+
default: {
|
|
27
|
+
let max = states[0];
|
|
28
|
+
for (let i = 1; i < states.length; i++) {
|
|
29
|
+
if (statePriority[max] < statePriority[states[i]]) {
|
|
30
|
+
max = states[i];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return max;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const statesInOrder = ( ( Object.keys(statePriority)).map(s => Number(s))).sort(cmpPriority);
|
|
38
|
+
const terminalStatePriorities = {
|
|
39
|
+
[3 ]: 0,
|
|
40
|
+
[5 ]: 1,
|
|
41
|
+
[4 ]: 2,
|
|
42
|
+
[6 ]: 3,
|
|
43
|
+
};
|
|
44
|
+
const makeEmptyCounts = () => {
|
|
45
|
+
return ( new Uint32Array(statesInOrder.length));
|
|
46
|
+
};
|
|
47
|
+
export { cmpPriority, isFailedState, isStateWithResult, makeEmptyCounts, maxPriority, statePriority, statesInOrder, terminalStatePriorities };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import * as dom from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
2
|
+
import { $window } from 'monaco-editor/esm/vs/base/browser/window.js';
|
|
2
3
|
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
3
4
|
class WebviewWindowDragMonitor extends Disposable {
|
|
4
5
|
constructor(getWebview) {
|
|
5
6
|
super();
|
|
6
|
-
this._register(dom.addDisposableListener(window, dom.EventType.DRAG_START, () => {
|
|
7
|
+
this._register(dom.addDisposableListener($window, dom.EventType.DRAG_START, () => {
|
|
7
8
|
getWebview()?.windowDidDragStart();
|
|
8
9
|
}));
|
|
9
10
|
const onDragEnd = () => {
|
|
10
11
|
getWebview()?.windowDidDragEnd();
|
|
11
12
|
};
|
|
12
|
-
this._register(dom.addDisposableListener(window, dom.EventType.DRAG_END, onDragEnd));
|
|
13
|
-
this._register(dom.addDisposableListener(window, dom.EventType.MOUSE_MOVE, currentEvent => {
|
|
13
|
+
this._register(dom.addDisposableListener($window, dom.EventType.DRAG_END, onDragEnd));
|
|
14
|
+
this._register(dom.addDisposableListener($window, dom.EventType.MOUSE_MOVE, currentEvent => {
|
|
14
15
|
if (currentEvent.buttons === 0) {
|
|
15
16
|
onDragEnd();
|
|
16
17
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import * as dom from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
3
|
+
import { $window } from 'monaco-editor/esm/vs/base/browser/window.js';
|
|
3
4
|
import { Emitter, Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
4
5
|
import { DisposableStore, MutableDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
5
6
|
import { isWeb } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
@@ -12,7 +13,6 @@ import { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeS
|
|
|
12
13
|
import { EditorPane } from '../../../browser/parts/editor/editorPane.js';
|
|
13
14
|
import { WebviewWindowDragMonitor } from '../../webview/browser/webviewWindowDragMonitor.js';
|
|
14
15
|
import { WebviewInput } from './webviewEditorInput.js';
|
|
15
|
-
import { IEditorDropService } from '../../../services/editor/browser/editorDropService.js';
|
|
16
16
|
import { IEditorGroupsService } from '../../../services/editor/common/editorGroupsService.js';
|
|
17
17
|
import { IEditorService } from '../../../services/editor/common/editorService.js';
|
|
18
18
|
import { IHostService } from '../../../services/host/browser/host.js';
|
|
@@ -30,11 +30,11 @@ let WebviewEditor = class WebviewEditor extends EditorPane {
|
|
|
30
30
|
static { WebviewEditor_1 = this; }
|
|
31
31
|
static { this.ID = 'WebviewEditor'; }
|
|
32
32
|
get onDidFocus() { return this._onDidFocusWebview.event; }
|
|
33
|
-
constructor(telemetryService, themeService, storageService,
|
|
33
|
+
constructor(telemetryService, themeService, storageService, _editorGroupsService, _editorService, _workbenchLayoutService, _hostService, _contextKeyService) {
|
|
34
34
|
super(WebviewEditor_1.ID, telemetryService, themeService, storageService);
|
|
35
|
+
this._editorGroupsService = _editorGroupsService;
|
|
35
36
|
this._editorService = _editorService;
|
|
36
37
|
this._workbenchLayoutService = _workbenchLayoutService;
|
|
37
|
-
this._editorDropService = _editorDropService;
|
|
38
38
|
this._hostService = _hostService;
|
|
39
39
|
this._contextKeyService = _contextKeyService;
|
|
40
40
|
this._visible = false;
|
|
@@ -43,7 +43,7 @@ let WebviewEditor = class WebviewEditor extends EditorPane {
|
|
|
43
43
|
this._onFocusWindowHandler = this._register(( new MutableDisposable()));
|
|
44
44
|
this._onDidFocusWebview = this._register(( new Emitter()));
|
|
45
45
|
this._scopedContextKeyService = this._register(( new MutableDisposable()));
|
|
46
|
-
this._register(Event.any(
|
|
46
|
+
this._register(Event.any(_editorGroupsService.activePart.onDidScroll, _editorGroupsService.activePart.onDidAddGroup, _editorGroupsService.activePart.onDidRemoveGroup, _editorGroupsService.activePart.onDidMoveGroup)(() => {
|
|
47
47
|
if (this.webview && this._visible) {
|
|
48
48
|
this.synchronizeWebviewContainerDimensions(this.webview);
|
|
49
49
|
}
|
|
@@ -136,7 +136,7 @@ let WebviewEditor = class WebviewEditor extends EditorPane {
|
|
|
136
136
|
dom.setParentFlowTo(input.webview.container, this._element);
|
|
137
137
|
}
|
|
138
138
|
this._webviewVisibleDisposables.clear();
|
|
139
|
-
this._webviewVisibleDisposables.add(this.
|
|
139
|
+
this._webviewVisibleDisposables.add(this._editorGroupsService.createEditorDropTarget(input.webview.container, {
|
|
140
140
|
containsGroup: (group) => this.group?.id === group.id
|
|
141
141
|
}));
|
|
142
142
|
this._webviewVisibleDisposables.add(( new WebviewWindowDragMonitor(() => this.webview)));
|
|
@@ -147,7 +147,7 @@ let WebviewEditor = class WebviewEditor extends EditorPane {
|
|
|
147
147
|
if (!this._element?.isConnected) {
|
|
148
148
|
return;
|
|
149
149
|
}
|
|
150
|
-
const rootContainer = this._workbenchLayoutService.getContainer("workbench.parts.editor" );
|
|
150
|
+
const rootContainer = this._workbenchLayoutService.getContainer($window, "workbench.parts.editor" );
|
|
151
151
|
webview.layoutWebviewOverElement(this._element.parentElement, dimension, rootContainer);
|
|
152
152
|
}
|
|
153
153
|
trackFocus(webview) {
|
|
@@ -166,8 +166,7 @@ WebviewEditor = WebviewEditor_1 = ( __decorate([
|
|
|
166
166
|
( __param(3, IEditorGroupsService)),
|
|
167
167
|
( __param(4, IEditorService)),
|
|
168
168
|
( __param(5, IWorkbenchLayoutService)),
|
|
169
|
-
( __param(6,
|
|
170
|
-
( __param(7,
|
|
171
|
-
( __param(8, IContextKeyService))
|
|
169
|
+
( __param(6, IHostService)),
|
|
170
|
+
( __param(7, IContextKeyService))
|
|
172
171
|
], WebviewEditor));
|
|
173
172
|
export { CONTEXT_ACTIVE_WEBVIEW_PANEL_ID, WebviewEditor };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import * as dom from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
3
|
+
import { DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
3
4
|
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
4
5
|
import { ILifecycleService } from '../../../services/lifecycle/common/lifecycle.js';
|
|
5
6
|
let WebviewIconManager = class WebviewIconManager {
|
|
@@ -14,12 +15,14 @@ let WebviewIconManager = class WebviewIconManager {
|
|
|
14
15
|
});
|
|
15
16
|
}
|
|
16
17
|
dispose() {
|
|
17
|
-
this.
|
|
18
|
+
this._styleElementDisposable?.dispose();
|
|
19
|
+
this._styleElementDisposable = undefined;
|
|
18
20
|
this._styleElement = undefined;
|
|
19
21
|
}
|
|
20
22
|
get styleElement() {
|
|
21
23
|
if (!this._styleElement) {
|
|
22
|
-
this.
|
|
24
|
+
this._styleElementDisposable = ( new DisposableStore());
|
|
25
|
+
this._styleElement = dom.createStyleSheet(undefined, undefined, this._styleElementDisposable);
|
|
23
26
|
this._styleElement.className = 'webview-icons';
|
|
24
27
|
}
|
|
25
28
|
return this._styleElement;
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
import { IActivityService, IActivity } from '../common/activity.js';
|
|
2
|
-
import { IDisposable } from '../../../../base/common/lifecycle.js';
|
|
3
|
-
import { IViewDescriptorService } from '../../../common/views.js';
|
|
2
|
+
import { Disposable, IDisposable } from '../../../../base/common/lifecycle.js';
|
|
3
|
+
import { ViewContainer, IViewDescriptorService } from '../../../common/views.js';
|
|
4
|
+
import { Event } from '../../../../base/common/event.js';
|
|
4
5
|
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
5
|
-
import { IPaneCompositePartService } from '../../panecomposite/browser/panecomposite.js';
|
|
6
6
|
|
|
7
|
-
declare class ActivityService implements IActivityService {
|
|
8
|
-
private readonly paneCompositeService;
|
|
7
|
+
declare class ActivityService extends Disposable implements IActivityService {
|
|
9
8
|
private readonly viewDescriptorService;
|
|
10
9
|
private readonly instantiationService;
|
|
11
10
|
_serviceBrand: undefined;
|
|
12
|
-
private viewActivities;
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
private readonly viewActivities;
|
|
12
|
+
private readonly _onDidChangeActivity;
|
|
13
|
+
readonly onDidChangeActivity: Event<string | ViewContainer>;
|
|
14
|
+
private readonly viewContainerActivities;
|
|
15
|
+
private readonly globalActivities;
|
|
16
|
+
constructor(viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService);
|
|
17
|
+
showViewContainerActivity(viewContainerId: string, activity: IActivity): IDisposable;
|
|
18
|
+
getViewContainerActivities(viewContainerId: string): IActivity[];
|
|
15
19
|
showViewActivity(viewId: string, activity: IActivity): IDisposable;
|
|
16
|
-
showAccountsActivity(
|
|
17
|
-
showGlobalActivity(
|
|
20
|
+
showAccountsActivity(activity: IActivity): IDisposable;
|
|
21
|
+
showGlobalActivity(activity: IActivity): IDisposable;
|
|
22
|
+
getActivity(id: string): IActivity[];
|
|
23
|
+
private showActivity;
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
export { ActivityService };
|
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
import { ServiceIdentifier } from '../../../../platform/instantiation/common/instantiation.js';
|
|
2
2
|
import { IDisposable } from '../../../../base/common/lifecycle.js';
|
|
3
|
+
import { Event } from '../../../../base/common/event.js';
|
|
4
|
+
import { ViewContainer } from '../../../common/views.js';
|
|
3
5
|
|
|
4
6
|
interface IActivity {
|
|
5
7
|
readonly badge: IBadge;
|
|
6
|
-
readonly clazz?: string;
|
|
7
8
|
readonly priority?: number;
|
|
8
9
|
}
|
|
9
10
|
declare const IActivityService: ServiceIdentifier<IActivityService>;
|
|
10
11
|
interface IActivityService {
|
|
11
12
|
readonly _serviceBrand: undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Emitted when activity changes for a view container or when the activity of the global actions change.
|
|
15
|
+
*/
|
|
16
|
+
readonly onDidChangeActivity: Event<string | ViewContainer>;
|
|
12
17
|
/**
|
|
13
18
|
* Show activity for the given view container
|
|
14
19
|
*/
|
|
15
20
|
showViewContainerActivity(viewContainerId: string, badge: IActivity): IDisposable;
|
|
21
|
+
/**
|
|
22
|
+
* Returns the activity for the given view container
|
|
23
|
+
*/
|
|
24
|
+
getViewContainerActivities(viewContainerId: string): IActivity[];
|
|
16
25
|
/**
|
|
17
26
|
* Show activity for the given view
|
|
18
27
|
*/
|
|
@@ -25,6 +34,10 @@ interface IActivityService {
|
|
|
25
34
|
* Show global activity
|
|
26
35
|
*/
|
|
27
36
|
showGlobalActivity(activity: IActivity): IDisposable;
|
|
37
|
+
/**
|
|
38
|
+
* Return the activity for the given action
|
|
39
|
+
*/
|
|
40
|
+
getActivity(id: string): IActivity[];
|
|
28
41
|
}
|
|
29
42
|
interface IBadge {
|
|
30
43
|
getDescription(): string;
|
|
@@ -19,12 +19,6 @@ class NumberBadge extends BaseBadge {
|
|
|
19
19
|
return this.descriptorFn(this.number);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
class TextBadge extends BaseBadge {
|
|
23
|
-
constructor(text, descriptorFn) {
|
|
24
|
-
super(descriptorFn);
|
|
25
|
-
this.text = text;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
22
|
class IconBadge extends BaseBadge {
|
|
29
23
|
constructor(icon, descriptorFn) {
|
|
30
24
|
super(descriptorFn);
|
|
@@ -33,4 +27,4 @@ class IconBadge extends BaseBadge {
|
|
|
33
27
|
}
|
|
34
28
|
class ProgressBadge extends BaseBadge {
|
|
35
29
|
}
|
|
36
|
-
export { IActivityService, IconBadge, NumberBadge, ProgressBadge
|
|
30
|
+
export { IActivityService, IconBadge, NumberBadge, ProgressBadge };
|
|
@@ -3,7 +3,6 @@ import { flatten } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
|
3
3
|
import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
4
4
|
import { Disposable, MutableDisposable, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
5
5
|
import { isFalsyOrWhitespace } from 'monaco-editor/esm/vs/base/common/strings.js';
|
|
6
|
-
import { isString } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
7
6
|
import * as nls from 'monaco-editor/esm/vs/nls.js';
|
|
8
7
|
import { MenuRegistry, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
|
|
9
8
|
import { CommandsRegistry } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
@@ -57,24 +56,6 @@ function addAccountUsage(storageService, providerId, accountName, extensionId, e
|
|
|
57
56
|
}
|
|
58
57
|
storageService.store(accountKey, JSON.stringify(usages), -1 , 1 );
|
|
59
58
|
}
|
|
60
|
-
async function getCurrentAuthenticationSessionInfo(secretStorageService, productService) {
|
|
61
|
-
const authenticationSessionValue = await secretStorageService.get(`${productService.urlProtocol}.loginAccount`);
|
|
62
|
-
if (authenticationSessionValue) {
|
|
63
|
-
try {
|
|
64
|
-
const authenticationSessionInfo = JSON.parse(authenticationSessionValue);
|
|
65
|
-
if (authenticationSessionInfo
|
|
66
|
-
&& isString(authenticationSessionInfo.id)
|
|
67
|
-
&& isString(authenticationSessionInfo.accessToken)
|
|
68
|
-
&& isString(authenticationSessionInfo.providerId)) {
|
|
69
|
-
return authenticationSessionInfo;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
catch (e) {
|
|
73
|
-
console.error(`Failed parsing current auth session value: ${e}`);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return undefined;
|
|
77
|
-
}
|
|
78
59
|
function readAllowedExtensions(storageService, providerId, accountName) {
|
|
79
60
|
let trustedExtensions = [];
|
|
80
61
|
try {
|
|
@@ -132,7 +113,7 @@ const authenticationExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
|
|
|
132
113
|
}
|
|
133
114
|
}
|
|
134
115
|
}));
|
|
135
|
-
let placeholderMenuItem = MenuRegistry.appendMenuItem(MenuId.AccountsContext, {
|
|
116
|
+
let placeholderMenuItem = ( MenuRegistry.appendMenuItem(MenuId.AccountsContext, {
|
|
136
117
|
command: {
|
|
137
118
|
id: 'noAuthenticationProviders',
|
|
138
119
|
title: ( nls.localizeWithPath(
|
|
@@ -142,7 +123,7 @@ let placeholderMenuItem = MenuRegistry.appendMenuItem(MenuId.AccountsContext, {
|
|
|
142
123
|
)),
|
|
143
124
|
precondition: ( ContextKeyExpr.false())
|
|
144
125
|
},
|
|
145
|
-
});
|
|
126
|
+
}));
|
|
146
127
|
let AuthenticationService = class AuthenticationService extends Disposable {
|
|
147
128
|
constructor(activityService, extensionService, storageService, dialogService, quickInputService, productService) {
|
|
148
129
|
super();
|
|
@@ -237,7 +218,7 @@ let AuthenticationService = class AuthenticationService extends Disposable {
|
|
|
237
218
|
});
|
|
238
219
|
}
|
|
239
220
|
if (!this._authenticationProviders.size) {
|
|
240
|
-
placeholderMenuItem = MenuRegistry.appendMenuItem(MenuId.AccountsContext, {
|
|
221
|
+
placeholderMenuItem = ( MenuRegistry.appendMenuItem(MenuId.AccountsContext, {
|
|
241
222
|
command: {
|
|
242
223
|
id: 'noAuthenticationProviders',
|
|
243
224
|
title: ( nls.localizeWithPath(
|
|
@@ -247,7 +228,7 @@ let AuthenticationService = class AuthenticationService extends Disposable {
|
|
|
247
228
|
)),
|
|
248
229
|
precondition: ( ContextKeyExpr.false())
|
|
249
230
|
},
|
|
250
|
-
});
|
|
231
|
+
}));
|
|
251
232
|
}
|
|
252
233
|
}
|
|
253
234
|
async sessionsUpdate(id, event) {
|
|
@@ -496,7 +477,7 @@ let AuthenticationService = class AuthenticationService extends Disposable {
|
|
|
496
477
|
if (hasExistingRequest) {
|
|
497
478
|
return;
|
|
498
479
|
}
|
|
499
|
-
const menuItem = MenuRegistry.appendMenuItem(MenuId.AccountsContext, {
|
|
480
|
+
const menuItem = ( MenuRegistry.appendMenuItem(MenuId.AccountsContext, {
|
|
500
481
|
group: '3_accessRequests',
|
|
501
482
|
command: {
|
|
502
483
|
id: `${providerId}${extensionId}Access`,
|
|
@@ -505,7 +486,7 @@ let AuthenticationService = class AuthenticationService extends Disposable {
|
|
|
505
486
|
comment: [`The placeholder {0} will be replaced with an authentication provider''s label. {1} will be replaced with an extension name. (1) is to indicate that this menu item contributes to a badge count`]
|
|
506
487
|
}, "Grant access to {0} for {1}... (1)", this.getLabel(providerId), extensionName))
|
|
507
488
|
}
|
|
508
|
-
});
|
|
489
|
+
}));
|
|
509
490
|
const accessCommand = CommandsRegistry.registerCommand({
|
|
510
491
|
id: `${providerId}${extensionId}Access`,
|
|
511
492
|
handler: async (accessor) => {
|
|
@@ -542,7 +523,7 @@ let AuthenticationService = class AuthenticationService extends Disposable {
|
|
|
542
523
|
return;
|
|
543
524
|
}
|
|
544
525
|
const commandId = `${providerId}:${extensionId}:signIn${( Object.keys(providerRequests || [])).length}`;
|
|
545
|
-
const menuItem = MenuRegistry.appendMenuItem(MenuId.AccountsContext, {
|
|
526
|
+
const menuItem = ( MenuRegistry.appendMenuItem(MenuId.AccountsContext, {
|
|
546
527
|
group: '2_signInRequests',
|
|
547
528
|
command: {
|
|
548
529
|
id: commandId,
|
|
@@ -551,7 +532,7 @@ let AuthenticationService = class AuthenticationService extends Disposable {
|
|
|
551
532
|
comment: [`The placeholder {0} will be replaced with an authentication provider's label. {1} will be replaced with an extension name. (1) is to indicate that this menu item contributes to a badge count.`]
|
|
552
533
|
}, "Sign in with {0} to use {1} (1)", provider.label, extensionName))
|
|
553
534
|
}
|
|
554
|
-
});
|
|
535
|
+
}));
|
|
555
536
|
const signInCommand = CommandsRegistry.registerCommand({
|
|
556
537
|
id: commandId,
|
|
557
538
|
handler: async (accessor) => {
|
|
@@ -679,4 +660,4 @@ AuthenticationService = ( __decorate([
|
|
|
679
660
|
( __param(4, IQuickInputService)),
|
|
680
661
|
( __param(5, IProductService))
|
|
681
662
|
], AuthenticationService));
|
|
682
|
-
export { AuthenticationService, addAccountUsage, getAuthenticationProviderActivationEvent,
|
|
663
|
+
export { AuthenticationService, addAccountUsage, getAuthenticationProviderActivationEvent, readAccountUsages, readAllowedExtensions, removeAccountUsage };
|