@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
package/README.md
ADDED
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
# @codingame/monaco-vscode-api · [](https://www.npmjs.com/package/@codingame/monaco-vscode-api) [](https://www.npmjs.com/package/@codingame/monaco-vscode-api) [](https://github.com/codingame/monaco-vscode-api/pulls)
|
|
2
|
+
|
|
3
|
+
[NPM module](https://www.npmjs.com/) that implements the VSCode api and redirects calls to Monaco editor.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install vscode@npm:@codingame/monaco-vscode-api
|
|
9
|
+
npm install -D @types/vscode
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
⚠️ And add in your package.json ⚠️:
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"scripts": {
|
|
16
|
+
"postinstall": "monaco-treemending",
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Why?
|
|
22
|
+
|
|
23
|
+
Monaco-editor is a library that is constructed using code from vscode and goes through an intense treeshaking process.
|
|
24
|
+
|
|
25
|
+
However, due to the inclusion of additional code from VSCode in this library that utilizes internal modules bundled in monaco, this treeshaking is a problem here.
|
|
26
|
+
|
|
27
|
+
To **tree-mend** (to **un**treeshake it) monaco-editor, this library provides a script that will apply a patch on the local installation of monaco-editor, restoring all the code that was treeshaken during the monaco-editor build process
|
|
28
|
+
|
|
29
|
+
## Troubleshooting
|
|
30
|
+
|
|
31
|
+
### If you use Vite
|
|
32
|
+
|
|
33
|
+
This library uses a lot the `new URL('asset.extension', import.meta.url)` syntax which [is supported by vite](https://vitejs.dev/guide/assets.html#new-url-url-import-meta-url)
|
|
34
|
+
|
|
35
|
+
While it works great in `build` mode (because rollup is used), there is some issues in `watch`` mode:
|
|
36
|
+
- import.meta.url is not replaced while creating bundles, it is an issue when the syntax is used inside a dependency
|
|
37
|
+
- vite is still trying to inject/transform javascript assets files, breaking the code by injecting ESM imports in commonjs files
|
|
38
|
+
|
|
39
|
+
There are workarounds for both:
|
|
40
|
+
|
|
41
|
+
- We can help vite by replacing `import.meta.url` by the original module path (you need the --experimental-import-meta-resolve note option):
|
|
42
|
+
```typescript
|
|
43
|
+
{
|
|
44
|
+
...
|
|
45
|
+
optimizeDeps: {
|
|
46
|
+
esbuildOptions: {
|
|
47
|
+
plugins: [{
|
|
48
|
+
name: 'import.meta.url',
|
|
49
|
+
setup ({ onLoad }) {
|
|
50
|
+
// Help vite that bundles/move files in dev mode without touching `import.meta.url` which breaks asset urls
|
|
51
|
+
onLoad({ filter: /.*\.js/, namespace: 'file' }, async args => {
|
|
52
|
+
const code = fs.readFileSync(args.path, 'utf8')
|
|
53
|
+
|
|
54
|
+
const assetImportMetaUrlRE = /\bnew\s+URL\s*\(\s*('[^']+'|"[^"]+"|`[^`]+`)\s*,\s*import\.meta\.url\s*(?:,\s*)?\)/g
|
|
55
|
+
let i = 0
|
|
56
|
+
let newCode = ''
|
|
57
|
+
for (let match = assetImportMetaUrlRE.exec(code); match != null; match = assetImportMetaUrlRE.exec(code)) {
|
|
58
|
+
newCode += code.slice(i, match.index)
|
|
59
|
+
|
|
60
|
+
const path = match[1].slice(1, -1)
|
|
61
|
+
const resolved = await import.meta.resolve!(path, url.pathToFileURL(args.path))
|
|
62
|
+
|
|
63
|
+
newCode += `new URL(${JSON.stringify(url.fileURLToPath(resolved))}, import.meta.url)`
|
|
64
|
+
|
|
65
|
+
i = assetImportMetaUrlRE.lastIndex
|
|
66
|
+
}
|
|
67
|
+
newCode += code.slice(i)
|
|
68
|
+
|
|
69
|
+
return { contents: newCode }
|
|
70
|
+
})
|
|
71
|
+
}
|
|
72
|
+
}]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### If using Angular and getting `Not allowed to load local resource:` errors
|
|
79
|
+
|
|
80
|
+
*The short version*: set up and use a custom webpack config file and add this under `module`:
|
|
81
|
+
```typescript
|
|
82
|
+
parser: {
|
|
83
|
+
javascript: {
|
|
84
|
+
url: true,
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
See [this issue](https://github.com/CodinGame/monaco-vscode-api/issues/186) or this [StackOverflow answer](https://stackoverflow.com/a/75252098) for more details, and [this discussion](https://github.com/angular/angular-cli/issues/24617) for more context.
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
# Usage
|
|
93
|
+
|
|
94
|
+
## Monaco standalone services
|
|
95
|
+
|
|
96
|
+
Also, monaco-editor use `standalone` versions or the vscode services, which are much simpler.
|
|
97
|
+
|
|
98
|
+
You may want to provide your custom implementations of them. To do so, you can use the `initialize` method from `vscode/services`.
|
|
99
|
+
Also, monaco-editor doesn't provide good type for them, so this library does it.
|
|
100
|
+
|
|
101
|
+
Example:
|
|
102
|
+
|
|
103
|
+
```typescript
|
|
104
|
+
import { INotificationService, initialize } from 'vscode/services'
|
|
105
|
+
|
|
106
|
+
class MyCustomNotificationService implements INotificationService { ... }
|
|
107
|
+
await initialize({
|
|
108
|
+
get [INotificationService.toString()] () {
|
|
109
|
+
return new MyCustomNotificationService(...)
|
|
110
|
+
}
|
|
111
|
+
})
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Additionally, 25 packages that include the vscode version of some services (with some glue to make it work with monaco) are published:
|
|
115
|
+
|
|
116
|
+
- **Extensions** (included by default): `@codingame/monaco-vscode-extensions-service-override`
|
|
117
|
+
- Support for VSCode extensions. A worker configuration can be past to it:
|
|
118
|
+
- Then, everything runs in one worker, where extensions run in an iframe, with all the implications (can be created by the bundler directly). The worker script is expected to be hosted on a separate domain.
|
|
119
|
+
- **Files** (included by default): `@codingame/monaco-vscode-files-service-override`
|
|
120
|
+
- It adds the memory filesystem for `file://` files, but also adds the support for lazy loaded extension files. It adds separate memory user files (e.g. config, keybindings), cache files and log files.
|
|
121
|
+
- **QuickAccess** (included by default): `@codingame/monaco-vscode-quickaccess-service-override`
|
|
122
|
+
- Enables the quickaccess menu in the editor (press F1 or ctrl+shift+p)
|
|
123
|
+
- **Notifications**: `@codingame/monaco-vscode-notifications-service-override`
|
|
124
|
+
- This services enables vscode notifications you usually find in the bottom right corner.
|
|
125
|
+
- **Dialogs**: `@codingame/monaco-vscode-dialogs-service-override`
|
|
126
|
+
- Enable vscode modal dialogs. It allows users to select an action to do. Those actions are exposed to the vscode API. Additionally, this service can be used by the language client to delegate questions to the user.
|
|
127
|
+
- **Model**: `@codingame/monaco-vscode-model-service-override`
|
|
128
|
+
- This service creates and takes care of model references. For example:
|
|
129
|
+
- Create model if content is unknown
|
|
130
|
+
- Count references
|
|
131
|
+
- Destroy models when they are no longer used
|
|
132
|
+
- **Editor**: `@codingame/monaco-vscode-editor-service-override`
|
|
133
|
+
- Enable editor support. This is usually needed when working with the language server protocol. Without enabling the editor service, it will only be able to resolve the currently open model (only internal file links will work).
|
|
134
|
+
- **Views**: `@codingame/monaco-vscode-views-service-override`
|
|
135
|
+
- Enable full views support. Is exclusive with the `editor` service. Do not use both services at the same time.
|
|
136
|
+
- **Configuration**: `@codingame/monaco-vscode-configuration-service-override`
|
|
137
|
+
- Allows to change the configuration of not only the editors, but every part of vscode. The language client for instance uses it to send the requested configuration to the server. The default configuration service already allows to change the configuration. This service overrides makes it rely on a user configuration file (with json schema, overridable by language including all vscode features).
|
|
138
|
+
- **Keybindings**: `@codingame/monaco-vscode-keybindings-service-override`
|
|
139
|
+
- Enables platform specific keybindings and make it rely on a user definded keybindings configuration (if available).
|
|
140
|
+
- **Languages**: `@codingame/monaco-vscode-languages-service-override`
|
|
141
|
+
- Enable language support. It's like the standalone service with 2 differences:
|
|
142
|
+
- It handle the language extension point (getting languages from vscode extensions)
|
|
143
|
+
- It triggers the `onLanguage:${language}` event (to load vscode extension listening to those events)
|
|
144
|
+
- **Textmate**: `@codingame/monaco-vscode-textmate-service-override`
|
|
145
|
+
- Allows to use textmate grammars. Depends on *themes* service. vscode extensions use textmate grammars exclusively for highlighting. Once this is enabled monarch grammars can no longer be loaded by monaco-editor.
|
|
146
|
+
- **Themes**: `@codingame/monaco-vscode-theme-service-override`
|
|
147
|
+
- Allows to use VSCode themes.
|
|
148
|
+
- **Snippets**: `@codingame/monaco-vscode-snippets-service-override`
|
|
149
|
+
- Add snippet extension point (register vscode extension snippets)
|
|
150
|
+
- **Audio cue**: `@codingame/monaco-vscode-audio-cue-service-override`
|
|
151
|
+
- If enabled the editor may provides audible hints
|
|
152
|
+
- **Debug**: `@codingame/monaco-vscode-debug-service-override`
|
|
153
|
+
- Activate debugging support
|
|
154
|
+
- **Preferences**: `@codingame/monaco-vscode-preferences-service-override`
|
|
155
|
+
- Allow to read and write preferences
|
|
156
|
+
- **Output**: `@codingame/monaco-vscode-output-service-override`
|
|
157
|
+
- Output panel support. *Hint*: It only makes sense to enable it when *Views* service is used.
|
|
158
|
+
- **Terminal**: `@codingame/monaco-vscode-terminal-service-override`
|
|
159
|
+
- Terminal panel support. *Hint*: It only makes sense to enable it when *Views* service is used.
|
|
160
|
+
- **Search**: `@codingame/monaco-vscode-search-service-override`
|
|
161
|
+
- search panel support. *Hint*: It only makes sense to enable it when *Views* service is used.
|
|
162
|
+
- **Markers**: `@codingame/monaco-vscode-markers-service-override`
|
|
163
|
+
- It adds the problems panel tab. *Hint*: It only makes sense to enable it when *Views* service is used.
|
|
164
|
+
- **SCM**: `@codingame/monaco-vscode-scm-service-override`
|
|
165
|
+
- It adds the SCM API that can be used to implement source control. *Hint*: It only makes sense to enable it when *Views* service is used.
|
|
166
|
+
- **Testing**: `@codingame/monaco-vscode-testing-service-override`
|
|
167
|
+
- It adds the Tests API. *Hint*: It makes more sense to enable it when *Views* service is used.
|
|
168
|
+
- **Language detection worker**: `@codingame/monaco-vscode-language-detection-worker-service-override`
|
|
169
|
+
- When opening an untitled model or a file without extension or if vscode is unable to guess the language simply by the file extension or by reading the first line. Then it will use tensorflow in a worker to try to guess the most probable language (here we are only able to rely on the open source model).
|
|
170
|
+
- **Storage**: `@codingame/monaco-vscode-storage-service-override`
|
|
171
|
+
- Define your own storage or use the default BrowserStorageService. The storage service is used in many places either as a cache or as a user preference store. For instance:
|
|
172
|
+
- Current loaded theme is stored in there to be loaded faster on start.
|
|
173
|
+
- Every panel/view positions are stored in there.
|
|
174
|
+
- **LifeCycle**: `@codingame/monaco-vscode-lifecycle-service-override`
|
|
175
|
+
- Allow other services to veto a page reload (for instance when not all open files are saved)
|
|
176
|
+
- **Remote agent**: `@codingame/monaco-vscode-remote-agent-service-override`
|
|
177
|
+
- Connect to a remote vscode agent and have access to:
|
|
178
|
+
- The remote filesystem
|
|
179
|
+
- The remote file search
|
|
180
|
+
- Running terminals
|
|
181
|
+
- Running vscode extensions (not web-compatible)
|
|
182
|
+
- and probably more?
|
|
183
|
+
|
|
184
|
+
Another package `@codingame/monaco-vscode-server` is published, which expose a `vscode-ext-host-server` bin to start the remote agent
|
|
185
|
+
- **Accessibility**: `@codingame/monaco-vscode-accessibility-service-override`
|
|
186
|
+
- Register accessibility helpers
|
|
187
|
+
- **Workspace trust**: `@codingame/monaco-vscode-workspace-trust-service-override`
|
|
188
|
+
- Ask user it they trust the current workspace, disable some features if not
|
|
189
|
+
- **Extension Gallery**: `@codingame/monaco-vscode-extension-gallery-service-override`
|
|
190
|
+
- Support for the VSCode marketplace, it allows to install extensions from the marketplace.
|
|
191
|
+
Usage:
|
|
192
|
+
|
|
193
|
+
```typescript
|
|
194
|
+
import * as vscode from 'vscode'
|
|
195
|
+
import { initialize } from 'vscode/services'
|
|
196
|
+
import getEditorServiceOverride from '@codingame/monaco-vscode-editor-service-override'
|
|
197
|
+
import getConfigurationServiceOverride, { updateUserConfiguration, configurationRegistry } from '@codingame/monaco-vscode-configuration-service-override'
|
|
198
|
+
|
|
199
|
+
await initialize({
|
|
200
|
+
...getModelEditorServiceOverride((model, input, sideBySide) => {
|
|
201
|
+
// Open a new editor here and return it
|
|
202
|
+
// It will be called when for instance the user ctrl+click on an import
|
|
203
|
+
}),
|
|
204
|
+
...getConfigurationServiceOverride(vscode.Uri.file('/tmp/'))
|
|
205
|
+
})
|
|
206
|
+
|
|
207
|
+
updateUserConfiguration(`{
|
|
208
|
+
"editor.fontSize": 12,
|
|
209
|
+
"[java]": {
|
|
210
|
+
"editor.fontSize": 15,
|
|
211
|
+
}
|
|
212
|
+
}`)
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Troubleshoot
|
|
216
|
+
|
|
217
|
+
`initialize` can only be called once ( and it should be called BEFORE creating your first editor).
|
|
218
|
+
|
|
219
|
+
## Editor configuration
|
|
220
|
+
|
|
221
|
+
The editors created using `monaco.editor.create` don't use the configuration from the configurationService.
|
|
222
|
+
|
|
223
|
+
This library exposes functions to create editors binded on the configuration service:
|
|
224
|
+
|
|
225
|
+
before:
|
|
226
|
+
|
|
227
|
+
```typescript
|
|
228
|
+
import * as monaco from 'monaco-editor'
|
|
229
|
+
const model = monaco.editor.createModel(...)
|
|
230
|
+
const editor = monaco.editor.create({ model, ... })
|
|
231
|
+
|
|
232
|
+
...
|
|
233
|
+
|
|
234
|
+
model.dispose()
|
|
235
|
+
editor.dispose()
|
|
236
|
+
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
after:
|
|
240
|
+
|
|
241
|
+
```typescript
|
|
242
|
+
import { createConfiguredEditor, createModelReference } from 'vscode/monaco'
|
|
243
|
+
|
|
244
|
+
const modelRef = await createModelReference(...)
|
|
245
|
+
|
|
246
|
+
const editor = createConfiguredEditor({ model: modelRef.object.textEditorModel })
|
|
247
|
+
|
|
248
|
+
...
|
|
249
|
+
|
|
250
|
+
await modelRef.object.save()
|
|
251
|
+
|
|
252
|
+
...
|
|
253
|
+
|
|
254
|
+
modelRef.dispose()
|
|
255
|
+
editor.dispose()
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
`createConfiguredEditor` returns a subclass of what is returned by `monaco.editor.create`, the `updateOptions` method can still be used.
|
|
261
|
+
The only difference is that is will use the `configurationService` as a default configuration
|
|
262
|
+
|
|
263
|
+
`createModelReference` return a reference to a model. The value is fetched from the memory filesystem (which is written if you provide the second argument).
|
|
264
|
+
The reference can then be disposed, the model will only be disposed if there is no remaining references.
|
|
265
|
+
|
|
266
|
+
## VSCode api usage
|
|
267
|
+
|
|
268
|
+
To be able to use the VSCode api directly from your code, you need to import `vscode/localExtensionHost` and the services to be initialized.
|
|
269
|
+
|
|
270
|
+
You will then be able to import it as if you were in a VSCode extension:
|
|
271
|
+
|
|
272
|
+
```typescript
|
|
273
|
+
import * as vscode from 'vscode'
|
|
274
|
+
import 'vscode/localExtensionHost'
|
|
275
|
+
|
|
276
|
+
const range = new vscode.Range(...)
|
|
277
|
+
vscode.languages.registerCompletionItemProvider(...)
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
The api will use the manifest of a default vscode extension, which can be overriden by providing it to the `initialize` function.
|
|
281
|
+
|
|
282
|
+
You can also register a new extension from its manifest:
|
|
283
|
+
```typescript
|
|
284
|
+
import { registerExtension, initialize, ExtensionHostKind } from 'vscode/extensions'
|
|
285
|
+
|
|
286
|
+
await initialize()
|
|
287
|
+
|
|
288
|
+
const extension = {
|
|
289
|
+
name: 'my-extension',
|
|
290
|
+
publisher: 'someone',
|
|
291
|
+
version: '1.0.0',
|
|
292
|
+
engines: {
|
|
293
|
+
vscode: '*'
|
|
294
|
+
},
|
|
295
|
+
contributes: {
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
const { registerFileUrl, getApi } = registerExtension(extension, ExtensionHostKind.LocalProcess)
|
|
299
|
+
|
|
300
|
+
registerFileUrl('/file-extension-path.json', new URL('./file-real-path.json', import.meta.url).toString())
|
|
301
|
+
|
|
302
|
+
const vscode = await getApi()
|
|
303
|
+
|
|
304
|
+
vscode.languages.registerCompletionItemProvider(...)
|
|
305
|
+
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
### Default vscode extensions
|
|
309
|
+
|
|
310
|
+
VSCode uses a bunch of default extensions. Most of them are used to load the default languages and grammars (see https://github.com/microsoft/vscode/tree/main/extensions).
|
|
311
|
+
|
|
312
|
+
This library bundles and publishes them and allows to import the ones you want:
|
|
313
|
+
```typescript
|
|
314
|
+
import '@codingame/monaco-vscode-javascript-default-extension'
|
|
315
|
+
import '@codingame/monaco-vscode-json-default-extension'
|
|
316
|
+
...
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
### Loading vsix file
|
|
320
|
+
|
|
321
|
+
VSCode extension are bundled as vsix files.
|
|
322
|
+
This library publishes a rollup plugin (vite-compatible) that allows to load a vsix file.
|
|
323
|
+
|
|
324
|
+
- rollup/vite config:
|
|
325
|
+
```typescript
|
|
326
|
+
import vsixPlugin from '@codingame/monaco-vscode-rollup-vsix-plugin'
|
|
327
|
+
...
|
|
328
|
+
plugins: [
|
|
329
|
+
...,
|
|
330
|
+
vsixPlugin()
|
|
331
|
+
]
|
|
332
|
+
```
|
|
333
|
+
- code:
|
|
334
|
+
```typescript
|
|
335
|
+
import './extension.vsix'
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
### Localization
|
|
339
|
+
|
|
340
|
+
This library also offers the possibility to localize vscode and the extensions in the supported languages. To do so, import one of the following packages before anything else:
|
|
341
|
+
- `@codingame/monaco-vscode-language-pack-cs`
|
|
342
|
+
- `@codingame/monaco-vscode-language-pack-de`
|
|
343
|
+
- `@codingame/monaco-vscode-language-pack-es`
|
|
344
|
+
- `@codingame/monaco-vscode-language-pack-fr`
|
|
345
|
+
- `@codingame/monaco-vscode-language-pack-it`
|
|
346
|
+
- `@codingame/monaco-vscode-language-pack-ja`
|
|
347
|
+
- `@codingame/monaco-vscode-language-pack-ko`
|
|
348
|
+
- `@codingame/monaco-vscode-language-pack-pl`
|
|
349
|
+
- `@codingame/monaco-vscode-language-pack-pt-br`
|
|
350
|
+
- `@codingame/monaco-vscode-language-pack-qps-ploc`
|
|
351
|
+
- `@codingame/monaco-vscode-language-pack-ru`
|
|
352
|
+
- `@codingame/monaco-vscode-language-pack-tr`
|
|
353
|
+
- `@codingame/monaco-vscode-language-pack-zh-hans`
|
|
354
|
+
- `@codingame/monaco-vscode-language-pack-zh-hant`
|
|
355
|
+
|
|
356
|
+
⚠️ The language pack should be imported and loaded BEFORE anything else from monaco-editor or this library is loaded. Otherwise, some translations would be missing. ⚠️
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
### Demo
|
|
360
|
+
|
|
361
|
+
Try it out on https://codingame.github.io/monaco-vscode-api/
|
|
362
|
+
|
|
363
|
+
There is a demo that showcases the service-override features. It allows to register contributions with the same syntaxes as in VSCode.
|
|
364
|
+
It includes:
|
|
365
|
+
|
|
366
|
+
- Languages
|
|
367
|
+
- VSCode themes
|
|
368
|
+
- Textmate grammars (requires vscode themes)
|
|
369
|
+
- Notifications/Dialogs
|
|
370
|
+
- Model/Editor services
|
|
371
|
+
- Configuration service, with user configuration editor
|
|
372
|
+
- Keybinding service, with user keybindings editor
|
|
373
|
+
- Debuggers
|
|
374
|
+
|
|
375
|
+
From CLI run:
|
|
376
|
+
|
|
377
|
+
```bash
|
|
378
|
+
# build monaco-vscode-api (the demo use it as a local dependency)
|
|
379
|
+
npm ci
|
|
380
|
+
npm run build
|
|
381
|
+
# start demo
|
|
382
|
+
cd demo
|
|
383
|
+
npm ci
|
|
384
|
+
npm start
|
|
385
|
+
# OR: for vite debug output
|
|
386
|
+
npm run start:debug
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
For the debug feature, also run:
|
|
390
|
+
```bash
|
|
391
|
+
npm run start:debugServer
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
⚠️ Building monaco-vscode-api is only supported on Linux or Mac. It you use Windows, have a look at [WSL](https://learn.microsoft.com/windows/wsl/install) ⚠️
|
|
395
|
+
|
|
396
|
+
#### Remote agent
|
|
397
|
+
|
|
398
|
+
To connect to a remote agent, run:
|
|
399
|
+
```bash
|
|
400
|
+
npm run start:extHostServer
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
Then go to http://localhost:5173/?remoteAuthority=localhost:8000
|
|
404
|
+
|
|
405
|
+
You can also go to http://localhost:5173/?remoteAuthority=localhost:8000&remotePath=/any/path/on/your/machine to open a directory on your machine as the current workspace
|
|
406
|
+
|
|
407
|
+
### History
|
|
408
|
+
|
|
409
|
+
This project was mainly created to make the implementation of [monaco-languageclient](https://github.com/TypeFox/monaco-languageclient) more robust and maintainable.
|
|
410
|
+
|
|
411
|
+
monaco-languageclient uses [vscode-languageclient](https://www.npmjs.com/package/vscode-languageclient) which was built to run inside a VSCode extension. VSCode extensions communicate with the editor via an [API](https://www.npmjs.com/package/@types/vscode) they can import into their code.
|
|
412
|
+
|
|
413
|
+
[The VSCode api](https://code.visualstudio.com/api/references/vscode-api) exports:
|
|
414
|
+
|
|
415
|
+
- Some functions to interact with the IDE ([language feature registrations](https://code.visualstudio.com/api/references/vscode-api#languages), [command execution](https://code.visualstudio.com/api/references/vscode-api#commands)...)
|
|
416
|
+
- A lot of utility classes (Range, Position...)
|
|
417
|
+
|
|
418
|
+
The first implementations of [monaco-languageclient](https://github.com/TypeFox/monaco-languageclient) were using a fake VSCode api implementation. The vscode-languageclient was hacked so the VSCode<->protocol object converters were mainly bypassed, so the fake VSCode api was receiving [Language Server Protocol](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/) objects. Then the objects were transformed using custom transformers into [Monaco](https://www.npmjs.com/package/monaco-editor) objects to communicate with the monaco api.
|
|
419
|
+
|
|
420
|
+
This approach has some disadvantages:
|
|
421
|
+
|
|
422
|
+
- There is a lot of code to transform LSP objects into Monaco objects
|
|
423
|
+
- It's hard to follow the updates of VSCode and the language server protocol
|
|
424
|
+
- It doesn't behave exactly the same as in VSCode
|
|
425
|
+
|
|
426
|
+
With this library, it would be possible to plug vscode-languageclient directly on top of monaco, monaco-languageclient still helps to do so by:
|
|
427
|
+
|
|
428
|
+
- Adding some tweaks to the VSCode LanguageClient (Removing unsupported features...)
|
|
429
|
+
- Providing some examples on how to build an app using it
|
|
430
|
+
- Adding some tools (DisposableCollection)
|
package/api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Breakpoint as Breakpoint$1, TerminalOutputAnchor as TerminalOutputAnchor$1, ChatMessage as ChatMessage$1, ChatMessageRole as ChatMessageRole$1, ChatVariableLevel as ChatVariableLevel$1, CallHierarchyIncomingCall as CallHierarchyIncomingCall$1, CallHierarchyItem as CallHierarchyItem$1, CallHierarchyOutgoingCall as CallHierarchyOutgoingCall$1, CodeAction as CodeAction$1, CodeActionKind as CodeActionKind$1, CodeActionTriggerKind as CodeActionTriggerKind$1, CodeLens as CodeLens$1, Color as Color$1, ColorInformation as ColorInformation$1, ColorPresentation as ColorPresentation$1, ColorThemeKind as ColorThemeKind$1, CommentMode as CommentMode$1, CommentState as CommentState$1, CommentThreadCollapsibleState as CommentThreadCollapsibleState$1, CommentThreadState as CommentThreadState$1, CompletionItem as CompletionItem$1, CompletionItemKind as CompletionItemKind$1, CompletionItemTag as CompletionItemTag$1, CompletionList as CompletionList$1, CompletionTriggerKind as CompletionTriggerKind$1, ConfigurationTarget as ConfigurationTarget$1, CustomExecution as CustomExecution$1, DebugAdapterExecutable as DebugAdapterExecutable$1, DebugAdapterInlineImplementation as DebugAdapterInlineImplementation$1, DebugAdapterNamedPipeServer as DebugAdapterNamedPipeServer$1, DebugAdapterServer as DebugAdapterServer$1, DebugConsoleMode as DebugConsoleMode$1, DecorationRangeBehavior as DecorationRangeBehavior$1, Diagnostic as Diagnostic$1, DiagnosticRelatedInformation as DiagnosticRelatedInformation$1, DiagnosticSeverity as DiagnosticSeverity$1, DiagnosticTag as DiagnosticTag$1, Disposable as Disposable$1, DocumentHighlight as DocumentHighlight$1, DocumentHighlightKind as DocumentHighlightKind$1, DocumentLink as DocumentLink$1, DocumentSymbol as DocumentSymbol$1, EndOfLine as EndOfLine$1, EnvironmentVariableMutatorType as EnvironmentVariableMutatorType$1, EvaluatableExpression as EvaluatableExpression$1, InlineValueText as InlineValueText$1, InlineValueVariableLookup as InlineValueVariableLookup$1, InlineValueEvaluatableExpression as InlineValueEvaluatableExpression$1, InlineCompletionTriggerKind as InlineCompletionTriggerKind$1, ExtensionKind as ExtensionKind$1, ExtensionMode as ExtensionMode$1, ExternalUriOpenerPriority as ExternalUriOpenerPriority$1, FileChangeType as FileChangeType$1, FileDecoration as FileDecoration$1, FileSystemError as FileSystemError$1, FoldingRange as FoldingRange$1, FoldingRangeKind as FoldingRangeKind$1, FunctionBreakpoint as FunctionBreakpoint$1, InlineSuggestion, InlineSuggestionList, Hover as Hover$1, Location as Location$1, MarkdownString as MarkdownString$1, ParameterInformation as ParameterInformation$1, PortAutoForwardAction as PortAutoForwardAction$1, Position as Position$1, ProcessExecution as ProcessExecution$1, ProgressLocation as ProgressLocation$1, QuickInputButtons as QuickInputButtons$1, Range as Range$1, RelativePattern as RelativePattern$1, Selection as Selection$1, SelectionRange as SelectionRange$1, SemanticTokens as SemanticTokens$1, SemanticTokensBuilder as SemanticTokensBuilder$1, SemanticTokensEdit as SemanticTokensEdit$1, SemanticTokensEdits as SemanticTokensEdits$1, SemanticTokensLegend as SemanticTokensLegend$1, ShellExecution as ShellExecution$1, ShellQuoting as ShellQuoting$1, SignatureHelp as SignatureHelp$1, SignatureHelpTriggerKind as SignatureHelpTriggerKind$1, SignatureInformation as SignatureInformation$1, SnippetString as SnippetString$1, SourceBreakpoint as SourceBreakpoint$1, StandardTokenType as StandardTokenType$1, StatusBarAlignment as StatusBarAlignment$1, SymbolInformation as SymbolInformation$1, SymbolKind as SymbolKind$1, SymbolTag as SymbolTag$1, Task as Task$1, TaskGroup as TaskGroup$1, TaskPanelKind as TaskPanelKind$1, TaskRevealKind as TaskRevealKind$1, TaskScope as TaskScope$1, TerminalLink as TerminalLink$1,
|
|
1
|
+
import { Breakpoint as Breakpoint$1, TerminalOutputAnchor as TerminalOutputAnchor$1, ChatMessage as ChatMessage$1, ChatMessageRole as ChatMessageRole$1, ChatVariableLevel as ChatVariableLevel$1, CallHierarchyIncomingCall as CallHierarchyIncomingCall$1, CallHierarchyItem as CallHierarchyItem$1, CallHierarchyOutgoingCall as CallHierarchyOutgoingCall$1, CodeAction as CodeAction$1, CodeActionKind as CodeActionKind$1, CodeActionTriggerKind as CodeActionTriggerKind$1, CodeLens as CodeLens$1, Color as Color$1, ColorInformation as ColorInformation$1, ColorPresentation as ColorPresentation$1, ColorThemeKind as ColorThemeKind$1, CommentMode as CommentMode$1, CommentState as CommentState$1, CommentThreadCollapsibleState as CommentThreadCollapsibleState$1, CommentThreadState as CommentThreadState$1, CompletionItem as CompletionItem$1, CompletionItemKind as CompletionItemKind$1, CompletionItemTag as CompletionItemTag$1, CompletionList as CompletionList$1, CompletionTriggerKind as CompletionTriggerKind$1, ConfigurationTarget as ConfigurationTarget$1, CustomExecution as CustomExecution$1, DebugAdapterExecutable as DebugAdapterExecutable$1, DebugAdapterInlineImplementation as DebugAdapterInlineImplementation$1, DebugAdapterNamedPipeServer as DebugAdapterNamedPipeServer$1, DebugAdapterServer as DebugAdapterServer$1, DebugConsoleMode as DebugConsoleMode$1, DecorationRangeBehavior as DecorationRangeBehavior$1, Diagnostic as Diagnostic$1, DiagnosticRelatedInformation as DiagnosticRelatedInformation$1, DiagnosticSeverity as DiagnosticSeverity$1, DiagnosticTag as DiagnosticTag$1, Disposable as Disposable$1, DocumentHighlight as DocumentHighlight$1, DocumentHighlightKind as DocumentHighlightKind$1, DocumentLink as DocumentLink$1, DocumentSymbol as DocumentSymbol$1, EndOfLine as EndOfLine$1, EnvironmentVariableMutatorType as EnvironmentVariableMutatorType$1, EvaluatableExpression as EvaluatableExpression$1, InlineValueText as InlineValueText$1, InlineValueVariableLookup as InlineValueVariableLookup$1, InlineValueEvaluatableExpression as InlineValueEvaluatableExpression$1, InlineCompletionTriggerKind as InlineCompletionTriggerKind$1, ExtensionKind as ExtensionKind$1, ExtensionMode as ExtensionMode$1, ExternalUriOpenerPriority as ExternalUriOpenerPriority$1, FileChangeType as FileChangeType$1, FileDecoration as FileDecoration$1, FileSystemError as FileSystemError$1, FoldingRange as FoldingRange$1, FoldingRangeKind as FoldingRangeKind$1, FunctionBreakpoint as FunctionBreakpoint$1, InlineSuggestion, InlineSuggestionList, Hover as Hover$1, Location as Location$1, MarkdownString as MarkdownString$1, ParameterInformation as ParameterInformation$1, PortAutoForwardAction as PortAutoForwardAction$1, Position as Position$1, ProcessExecution as ProcessExecution$1, ProgressLocation as ProgressLocation$1, QuickInputButtons as QuickInputButtons$1, Range as Range$1, RelativePattern as RelativePattern$1, Selection as Selection$1, SelectionRange as SelectionRange$1, SemanticTokens as SemanticTokens$1, SemanticTokensBuilder as SemanticTokensBuilder$1, SemanticTokensEdit as SemanticTokensEdit$1, SemanticTokensEdits as SemanticTokensEdits$1, SemanticTokensLegend as SemanticTokensLegend$1, ShellExecution as ShellExecution$1, ShellQuoting as ShellQuoting$1, SignatureHelp as SignatureHelp$1, SignatureHelpTriggerKind as SignatureHelpTriggerKind$1, SignatureInformation as SignatureInformation$1, SnippetString as SnippetString$1, SourceBreakpoint as SourceBreakpoint$1, StandardTokenType as StandardTokenType$1, StatusBarAlignment as StatusBarAlignment$1, SymbolInformation as SymbolInformation$1, SymbolKind as SymbolKind$1, SymbolTag as SymbolTag$1, Task as Task$1, TaskGroup as TaskGroup$1, TaskPanelKind as TaskPanelKind$1, TaskRevealKind as TaskRevealKind$1, TaskScope as TaskScope$1, TerminalLink as TerminalLink$1, TerminalQuickFixOpener as TerminalQuickFixOpener$1, TerminalLocation as TerminalLocation$1, TerminalProfile as TerminalProfile$1, TerminalExitReason as TerminalExitReason$1, TextDocumentSaveReason as TextDocumentSaveReason$1, TextEdit as TextEdit$1, SnippetTextEdit as SnippetTextEdit$1, TextEditorLineNumbersStyle as TextEditorLineNumbersStyle$1, TextEditorRevealType as TextEditorRevealType$1, TextEditorSelectionChangeKind as TextEditorSelectionChangeKind$1, SyntaxTokenType as SyntaxTokenType$1, TextDocumentChangeReason as TextDocumentChangeReason$1, ThemeColor as ThemeColor$1, ThemeIcon as ThemeIcon$1, TreeItem as TreeItem$1, TreeItemCheckboxState as TreeItemCheckboxState$1, TreeItemCollapsibleState as TreeItemCollapsibleState$1, TypeHierarchyItem as TypeHierarchyItem$1, ViewColumn as ViewColumn$1, WorkspaceEdit as WorkspaceEdit$1, DocumentDropEdit as DocumentDropEdit$1, DocumentPasteEdit as DocumentPasteEdit$1, InlayHint as InlayHint$1, InlayHintLabelPart as InlayHintLabelPart$1, InlayHintKind as InlayHintKind$1, RemoteAuthorityResolverError as RemoteAuthorityResolverError$1, ResolvedAuthority as ResolvedAuthority$1, ManagedResolvedAuthority as ManagedResolvedAuthority$1, SourceControlInputBoxValidationType as SourceControlInputBoxValidationType$1, ExtensionRuntime as ExtensionRuntime$1, TimelineItem as TimelineItem$1, NotebookRange as NotebookRange$1, NotebookCellKind as NotebookCellKind$1, NotebookCellExecutionState as NotebookCellExecutionState$1, NotebookCellData as NotebookCellData$1, NotebookData as NotebookData$1, NotebookRendererScript as NotebookRendererScript$1, NotebookCellStatusBarAlignment as NotebookCellStatusBarAlignment$1, NotebookEditorRevealType as NotebookEditorRevealType$1, NotebookCellOutput as NotebookCellOutput$1, NotebookCellOutputItem as NotebookCellOutputItem$1, NotebookCellStatusBarItem as NotebookCellStatusBarItem$1, NotebookControllerAffinity as NotebookControllerAffinity$1, NotebookControllerAffinity2 as NotebookControllerAffinity2$1, NotebookEdit as NotebookEdit$1, NotebookKernelSourceAction as NotebookKernelSourceAction$1, PortAttributes as PortAttributes$1, LinkedEditingRanges as LinkedEditingRanges$1, TestResultState as TestResultState$1, TestRunRequest as TestRunRequest$1, TestMessage as TestMessage$1, TestTag as TestTag$1, TestRunProfileKind as TestRunProfileKind$1, DataTransfer as DataTransfer$1, DataTransferItem as DataTransferItem$1, CoveredCount as CoveredCount$1, FileCoverage as FileCoverage$1, StatementCoverage as StatementCoverage$1, BranchCoverage as BranchCoverage$1, FunctionCoverage as FunctionCoverage$1, LanguageStatusSeverity as LanguageStatusSeverity$1, QuickPickItemKind as QuickPickItemKind$1, InputBoxValidationSeverity as InputBoxValidationSeverity$1, TextTabInput, TextDiffTabInput, TextMergeTabInput, CustomEditorTabInput, NotebookEditorTabInput, NotebookDiffEditorTabInput, WebviewEditorTabInput, TerminalEditorTabInput, InteractiveWindowInput, InteractiveSessionVoteDirection as InteractiveSessionVoteDirection$1, InteractiveSessionCopyKind as InteractiveSessionCopyKind$1, InteractiveEditorResponseFeedbackKind as InteractiveEditorResponseFeedbackKind$1, StackFrameFocus as StackFrameFocus$1, ThreadFocus as ThreadFocus$1, RelatedInformationType as RelatedInformationType$1, ChatAgentResultFeedbackKind as ChatAgentResultFeedbackKind$1, ChatEditorTabInput, SpeechToTextStatus as SpeechToTextStatus$1, ChatAgentCompletionItem as ChatAgentCompletionItem$1, MultiDocumentHighlight as MultiDocumentHighlight$1, NotebookVariablesRequestKind as NotebookVariablesRequestKind$1, TerminalQuickFixCommand } from './vscode/src/vs/workbench/api/common/extHostTypes.js';
|
|
2
2
|
import * as errors from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
3
3
|
import * as files from 'monaco-editor/esm/vs/platform/files/common/files.js';
|
|
4
4
|
import * as languageConfiguration from 'monaco-editor/esm/vs/editor/common/languages/languageConfiguration.js';
|
|
@@ -29,7 +29,7 @@ function createProxy(key) {
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
const api = {
|
|
32
|
-
version: "1.
|
|
32
|
+
version: "1.85.0",
|
|
33
33
|
tasks: createProxy('tasks'),
|
|
34
34
|
notebooks: createProxy('notebooks'),
|
|
35
35
|
scm: createProxy('scm'),
|
|
@@ -47,6 +47,7 @@ const api = {
|
|
|
47
47
|
interactive: createProxy('interactive'),
|
|
48
48
|
ai: createProxy('ai'),
|
|
49
49
|
chat: createProxy('chat'),
|
|
50
|
+
speech: createProxy('speech'),
|
|
50
51
|
Breakpoint: Breakpoint$1,
|
|
51
52
|
TerminalOutputAnchor: TerminalOutputAnchor$1,
|
|
52
53
|
ChatMessage: ChatMessage$1,
|
|
@@ -153,7 +154,6 @@ const api = {
|
|
|
153
154
|
TaskRevealKind: TaskRevealKind$1,
|
|
154
155
|
TaskScope: TaskScope$1,
|
|
155
156
|
TerminalLink: TerminalLink$1,
|
|
156
|
-
TerminalQuickFixExecuteTerminalCommand: TerminalQuickFixCommand,
|
|
157
157
|
TerminalQuickFixOpener: TerminalQuickFixOpener$1,
|
|
158
158
|
TerminalLocation: TerminalLocation$1,
|
|
159
159
|
TerminalProfile: TerminalProfile$1,
|
|
@@ -208,7 +208,6 @@ const api = {
|
|
|
208
208
|
TestResultState: TestResultState$1,
|
|
209
209
|
TestRunRequest: TestRunRequest$1,
|
|
210
210
|
TestMessage: TestMessage$1,
|
|
211
|
-
TestMessage2: TestMessage$1,
|
|
212
211
|
TestTag: TestTag$1,
|
|
213
212
|
TestRunProfileKind: TestRunProfileKind$1,
|
|
214
213
|
TextSearchCompleteMessageType: TextSearchCompleteMessageType$1,
|
|
@@ -239,7 +238,14 @@ const api = {
|
|
|
239
238
|
InteractiveEditorResponseFeedbackKind: InteractiveEditorResponseFeedbackKind$1,
|
|
240
239
|
StackFrameFocus: StackFrameFocus$1,
|
|
241
240
|
ThreadFocus: ThreadFocus$1,
|
|
242
|
-
RelatedInformationType: RelatedInformationType$1
|
|
241
|
+
RelatedInformationType: RelatedInformationType$1,
|
|
242
|
+
ChatAgentResultFeedbackKind: ChatAgentResultFeedbackKind$1,
|
|
243
|
+
TabInputChat: ChatEditorTabInput,
|
|
244
|
+
SpeechToTextStatus: SpeechToTextStatus$1,
|
|
245
|
+
ChatAgentCompletionItem: ChatAgentCompletionItem$1,
|
|
246
|
+
MultiDocumentHighlight: MultiDocumentHighlight$1,
|
|
247
|
+
NotebookVariablesRequestKind: NotebookVariablesRequestKind$1,
|
|
248
|
+
TerminalQuickFixTerminalCommand: TerminalQuickFixCommand
|
|
243
249
|
};
|
|
244
|
-
const { version, tasks, notebooks, scm, comments, authentication, tests, extensions, debug, env, commands, window, workspace, languages, l10n, interactive, ai, chat, Breakpoint, TerminalOutputAnchor, ChatMessage, ChatMessageRole, ChatVariableLevel, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CancellationError, CancellationTokenSource, CandidatePortSource, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentState, CommentThreadCollapsibleState, CommentThreadState, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomExecution, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConfigurationProviderTriggerKind, DebugConsoleMode, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentSymbol, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, InlineCompletionTriggerKind, EventEmitter, ExtensionKind, ExtensionMode, ExternalUriOpenerPriority, FileChangeType, FileDecoration, FileDecoration2, FileSystemError, FileType, FilePermission, FoldingRange, FoldingRangeKind, FunctionBreakpoint, InlineCompletionItem, InlineCompletionList, Hover, IndentAction, Location, MarkdownString, OverviewRulerLane, ParameterInformation, PortAutoForwardAction, Position, ProcessExecution, ProgressLocation, QuickInputButtons, Range, RelativePattern, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SourceBreakpoint, StandardTokenType, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TerminalLink,
|
|
245
|
-
export { BranchCoverage, Breakpoint, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CancellationError, CancellationTokenSource, CandidatePortSource, ChatMessage, ChatMessageRole, ChatVariableLevel, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentState, CommentThreadCollapsibleState, CommentThreadState, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CoveredCount, CustomExecution, DataTransfer, DataTransferItem, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConfigurationProviderTriggerKind, DebugConsoleMode, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentDropEdit, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentPasteEdit, DocumentSymbol, EditSessionIdentityMatch, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, EventEmitter, ExtensionKind, ExtensionMode, ExtensionRuntime, ExternalUriOpenerPriority, FileChangeType, FileCoverage, FileDecoration, FileDecoration2, FilePermission, FileSystemError, FileType, FoldingRange, FoldingRangeKind, FunctionBreakpoint, FunctionCoverage, Hover, IndentAction, InlayHint, InlayHintKind, InlayHintLabelPart, InlineCompletionItem, InlineCompletionList, InlineCompletionTriggerKind, InlineValueEvaluatableExpression, InlineValueText, InlineValueVariableLookup, InputBoxValidationSeverity, InteractiveEditorResponseFeedbackKind, InteractiveSessionCopyKind, InteractiveSessionVoteDirection, LanguageStatusSeverity, LinkedEditingRanges, Location, LogLevel, ManagedResolvedAuthority, MarkdownString, NotebookCellData, NotebookCellExecutionState, NotebookCellKind, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarAlignment, NotebookCellStatusBarItem, NotebookControllerAffinity, NotebookControllerAffinity2, NotebookData, NotebookEdit, NotebookEditorRevealType, NotebookKernelSourceAction, NotebookRange, NotebookRendererScript, OverviewRulerLane, ParameterInformation, PortAttributes, PortAutoForwardAction, Position, ProcessExecution, ProgressLocation, QuickInputButtons, QuickPickItemKind, Range, RelatedInformationType, RelativePattern, RemoteAuthorityResolverError, ResolvedAuthority, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SnippetTextEdit, SourceBreakpoint, SourceControlInputBoxValidationType, StackFrameFocus, StandardTokenType, StatementCoverage, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, SyntaxTokenType, TabInputCustom, TabInputInteractiveWindow, TabInputNotebook, TabInputNotebookDiff, TabInputTerminal, TabInputText, TabInputTextDiff, TabInputTextMerge, TabInputWebview, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TelemetryTrustedValue, TerminalExitReason, TerminalLink, TerminalLocation, TerminalOutputAnchor, TerminalProfile,
|
|
250
|
+
const { version, tasks, notebooks, scm, comments, authentication, tests, extensions, debug, env, commands, window, workspace, languages, l10n, interactive, ai, chat, speech, Breakpoint, TerminalOutputAnchor, ChatMessage, ChatMessageRole, ChatVariableLevel, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CancellationError, CancellationTokenSource, CandidatePortSource, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentState, CommentThreadCollapsibleState, CommentThreadState, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomExecution, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConfigurationProviderTriggerKind, DebugConsoleMode, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentSymbol, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, InlineCompletionTriggerKind, EventEmitter, ExtensionKind, ExtensionMode, ExternalUriOpenerPriority, FileChangeType, FileDecoration, FileDecoration2, FileSystemError, FileType, FilePermission, FoldingRange, FoldingRangeKind, FunctionBreakpoint, InlineCompletionItem, InlineCompletionList, Hover, IndentAction, Location, MarkdownString, OverviewRulerLane, ParameterInformation, PortAutoForwardAction, Position, ProcessExecution, ProgressLocation, QuickInputButtons, Range, RelativePattern, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SourceBreakpoint, StandardTokenType, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TerminalLink, TerminalQuickFixOpener, TerminalLocation, TerminalProfile, TerminalExitReason, TextDocumentSaveReason, TextEdit, SnippetTextEdit, TextEditorCursorStyle, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, SyntaxTokenType, TextDocumentChangeReason, ThemeColor, ThemeIcon, TreeItem, TreeItemCheckboxState, TreeItemCollapsibleState, TypeHierarchyItem, UIKind, Uri, ViewColumn, WorkspaceEdit, DocumentDropEdit, DocumentPasteEdit, InlayHint, InlayHintLabelPart, InlayHintKind, RemoteAuthorityResolverError, ResolvedAuthority, ManagedResolvedAuthority, SourceControlInputBoxValidationType, ExtensionRuntime, TimelineItem, NotebookRange, NotebookCellKind, NotebookCellExecutionState, NotebookCellData, NotebookData, NotebookRendererScript, NotebookCellStatusBarAlignment, NotebookEditorRevealType, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarItem, NotebookControllerAffinity, NotebookControllerAffinity2, NotebookEdit, NotebookKernelSourceAction, PortAttributes, LinkedEditingRanges, TestResultState, TestRunRequest, TestMessage, TestTag, TestRunProfileKind, TextSearchCompleteMessageType, DataTransfer, DataTransferItem, CoveredCount, FileCoverage, StatementCoverage, BranchCoverage, FunctionCoverage, LanguageStatusSeverity, QuickPickItemKind, InputBoxValidationSeverity, TabInputText, TabInputTextDiff, TabInputTextMerge, TabInputCustom, TabInputNotebook, TabInputNotebookDiff, TabInputWebview, TabInputTerminal, TabInputInteractiveWindow, TelemetryTrustedValue, LogLevel, EditSessionIdentityMatch, InteractiveSessionVoteDirection, InteractiveSessionCopyKind, InteractiveEditorResponseFeedbackKind, StackFrameFocus, ThreadFocus, RelatedInformationType, ChatAgentResultFeedbackKind, TabInputChat, SpeechToTextStatus, ChatAgentCompletionItem, MultiDocumentHighlight, NotebookVariablesRequestKind, TerminalQuickFixTerminalCommand } = api;
|
|
251
|
+
export { BranchCoverage, Breakpoint, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CancellationError, CancellationTokenSource, CandidatePortSource, ChatAgentCompletionItem, ChatAgentResultFeedbackKind, ChatMessage, ChatMessageRole, ChatVariableLevel, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentState, CommentThreadCollapsibleState, CommentThreadState, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CoveredCount, CustomExecution, DataTransfer, DataTransferItem, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConfigurationProviderTriggerKind, DebugConsoleMode, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentDropEdit, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentPasteEdit, DocumentSymbol, EditSessionIdentityMatch, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, EventEmitter, ExtensionKind, ExtensionMode, ExtensionRuntime, ExternalUriOpenerPriority, FileChangeType, FileCoverage, FileDecoration, FileDecoration2, FilePermission, FileSystemError, FileType, FoldingRange, FoldingRangeKind, FunctionBreakpoint, FunctionCoverage, Hover, IndentAction, InlayHint, InlayHintKind, InlayHintLabelPart, InlineCompletionItem, InlineCompletionList, InlineCompletionTriggerKind, InlineValueEvaluatableExpression, InlineValueText, InlineValueVariableLookup, InputBoxValidationSeverity, InteractiveEditorResponseFeedbackKind, InteractiveSessionCopyKind, InteractiveSessionVoteDirection, LanguageStatusSeverity, LinkedEditingRanges, Location, LogLevel, ManagedResolvedAuthority, MarkdownString, MultiDocumentHighlight, NotebookCellData, NotebookCellExecutionState, NotebookCellKind, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarAlignment, NotebookCellStatusBarItem, NotebookControllerAffinity, NotebookControllerAffinity2, NotebookData, NotebookEdit, NotebookEditorRevealType, NotebookKernelSourceAction, NotebookRange, NotebookRendererScript, NotebookVariablesRequestKind, OverviewRulerLane, ParameterInformation, PortAttributes, PortAutoForwardAction, Position, ProcessExecution, ProgressLocation, QuickInputButtons, QuickPickItemKind, Range, RelatedInformationType, RelativePattern, RemoteAuthorityResolverError, ResolvedAuthority, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SnippetTextEdit, SourceBreakpoint, SourceControlInputBoxValidationType, SpeechToTextStatus, StackFrameFocus, StandardTokenType, StatementCoverage, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, SyntaxTokenType, TabInputChat, TabInputCustom, TabInputInteractiveWindow, TabInputNotebook, TabInputNotebookDiff, TabInputTerminal, TabInputText, TabInputTextDiff, TabInputTextMerge, TabInputWebview, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TelemetryTrustedValue, TerminalExitReason, TerminalLink, TerminalLocation, TerminalOutputAnchor, TerminalProfile, TerminalQuickFixOpener, TerminalQuickFixTerminalCommand, TestMessage, TestResultState, TestRunProfileKind, TestRunRequest, TestTag, TextDocumentChangeReason, TextDocumentSaveReason, TextEdit, TextEditorCursorStyle, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, TextSearchCompleteMessageType, ThemeColor, ThemeIcon, ThreadFocus, TimelineItem, TreeItem, TreeItemCheckboxState, TreeItemCollapsibleState, TypeHierarchyItem, UIKind, Uri, ViewColumn, WorkspaceEdit, ai, authentication, chat, commands, comments, debug, env, extensions, interactive, l10n, languages, notebooks, scm, setDefaultApi, speech, tasks, tests, version, window, workspace };
|
package/assets/clear.mp3
ADDED
|
Binary file
|
|
Binary file
|
package/assets/save.mp3
ADDED
|
Binary file
|
package/contributions.js
CHANGED
|
@@ -17,6 +17,9 @@ import './vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControl
|
|
|
17
17
|
import './vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js';
|
|
18
18
|
import './vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js';
|
|
19
19
|
import './vscode/src/vs/workbench/contrib/codeEditor/browser/editorLineNumberMenu.js';
|
|
20
|
+
import './vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js';
|
|
21
|
+
import './vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js';
|
|
22
|
+
import './vscode/src/vs/workbench/contrib/format/browser/formatModified.js';
|
|
20
23
|
import './vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js';
|
|
21
24
|
import './vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js';
|
|
22
25
|
import './vscode/src/vs/workbench/contrib/codeActions/browser/codeActions.contribution.js';
|
package/extensions.d.ts
CHANGED
|
@@ -3,15 +3,19 @@
|
|
|
3
3
|
/// <reference path="./vscode-dts/vscode.proposed.authSession.d.ts" />
|
|
4
4
|
/// <reference path="./vscode-dts/vscode.proposed.canonicalUriProvider.d.ts" />
|
|
5
5
|
/// <reference path="./vscode-dts/vscode.proposed.chat.d.ts" />
|
|
6
|
-
/// <reference path="./vscode-dts/vscode.proposed.
|
|
6
|
+
/// <reference path="./vscode-dts/vscode.proposed.chatAgents2.d.ts" />
|
|
7
|
+
/// <reference path="./vscode-dts/vscode.proposed.chatAgents2Additions.d.ts" />
|
|
7
8
|
/// <reference path="./vscode-dts/vscode.proposed.chatProvider.d.ts" />
|
|
8
9
|
/// <reference path="./vscode-dts/vscode.proposed.chatRequestAccess.d.ts" />
|
|
9
|
-
/// <reference path="./vscode-dts/vscode.proposed.
|
|
10
|
+
/// <reference path="./vscode-dts/vscode.proposed.chatTab.d.ts" />
|
|
10
11
|
/// <reference path="./vscode-dts/vscode.proposed.chatVariables.d.ts" />
|
|
12
|
+
/// <reference path="./vscode-dts/vscode.proposed.codeActionAI.d.ts" />
|
|
11
13
|
/// <reference path="./vscode-dts/vscode.proposed.codiconDecoration.d.ts" />
|
|
12
14
|
/// <reference path="./vscode-dts/vscode.proposed.commentsDraftState.d.ts" />
|
|
15
|
+
/// <reference path="./vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts" />
|
|
13
16
|
/// <reference path="./vscode-dts/vscode.proposed.customEditorMove.d.ts" />
|
|
14
17
|
/// <reference path="./vscode-dts/vscode.proposed.debugFocus.d.ts" />
|
|
18
|
+
/// <reference path="./vscode-dts/vscode.proposed.defaultChatAgent.d.ts" />
|
|
15
19
|
/// <reference path="./vscode-dts/vscode.proposed.diffCommand.d.ts" />
|
|
16
20
|
/// <reference path="./vscode-dts/vscode.proposed.diffContentOptions.d.ts" />
|
|
17
21
|
/// <reference path="./vscode-dts/vscode.proposed.documentFiltersExclusive.d.ts" />
|
|
@@ -33,7 +37,9 @@
|
|
|
33
37
|
/// <reference path="./vscode-dts/vscode.proposed.interactiveUserActions.d.ts" />
|
|
34
38
|
/// <reference path="./vscode-dts/vscode.proposed.interactiveWindow.d.ts" />
|
|
35
39
|
/// <reference path="./vscode-dts/vscode.proposed.ipc.d.ts" />
|
|
40
|
+
/// <reference path="./vscode-dts/vscode.proposed.languageStatusText.d.ts" />
|
|
36
41
|
/// <reference path="./vscode-dts/vscode.proposed.mappedEditsProvider.d.ts" />
|
|
42
|
+
/// <reference path="./vscode-dts/vscode.proposed.multiDocumentHighlightProvider.d.ts" />
|
|
37
43
|
/// <reference path="./vscode-dts/vscode.proposed.notebookCellExecutionState.d.ts" />
|
|
38
44
|
/// <reference path="./vscode-dts/vscode.proposed.notebookControllerAffinityHidden.d.ts" />
|
|
39
45
|
/// <reference path="./vscode-dts/vscode.proposed.notebookDeprecated.d.ts" />
|
|
@@ -42,6 +48,7 @@
|
|
|
42
48
|
/// <reference path="./vscode-dts/vscode.proposed.notebookLiveShare.d.ts" />
|
|
43
49
|
/// <reference path="./vscode-dts/vscode.proposed.notebookMessaging.d.ts" />
|
|
44
50
|
/// <reference path="./vscode-dts/vscode.proposed.notebookMime.d.ts" />
|
|
51
|
+
/// <reference path="./vscode-dts/vscode.proposed.notebookVariableProvider.d.ts" />
|
|
45
52
|
/// <reference path="./vscode-dts/vscode.proposed.portsAttributes.d.ts" />
|
|
46
53
|
/// <reference path="./vscode-dts/vscode.proposed.profileContentHandlers.d.ts" />
|
|
47
54
|
/// <reference path="./vscode-dts/vscode.proposed.quickDiffProvider.d.ts" />
|
|
@@ -52,11 +59,14 @@
|
|
|
52
59
|
/// <reference path="./vscode-dts/vscode.proposed.saveEditor.d.ts" />
|
|
53
60
|
/// <reference path="./vscode-dts/vscode.proposed.scmActionButton.d.ts" />
|
|
54
61
|
/// <reference path="./vscode-dts/vscode.proposed.scmHistoryProvider.d.ts" />
|
|
62
|
+
/// <reference path="./vscode-dts/vscode.proposed.scmInputBoxActionButton.d.ts" />
|
|
63
|
+
/// <reference path="./vscode-dts/vscode.proposed.scmInputBoxValueProvider.d.ts" />
|
|
55
64
|
/// <reference path="./vscode-dts/vscode.proposed.scmSelectedProvider.d.ts" />
|
|
56
65
|
/// <reference path="./vscode-dts/vscode.proposed.scmTextDocument.d.ts" />
|
|
57
66
|
/// <reference path="./vscode-dts/vscode.proposed.scmValidation.d.ts" />
|
|
58
67
|
/// <reference path="./vscode-dts/vscode.proposed.shareProvider.d.ts" />
|
|
59
68
|
/// <reference path="./vscode-dts/vscode.proposed.showLocal.d.ts" />
|
|
69
|
+
/// <reference path="./vscode-dts/vscode.proposed.speech.d.ts" />
|
|
60
70
|
/// <reference path="./vscode-dts/vscode.proposed.tabInputTextMerge.d.ts" />
|
|
61
71
|
/// <reference path="./vscode-dts/vscode.proposed.taskPresentationGroup.d.ts" />
|
|
62
72
|
/// <reference path="./vscode-dts/vscode.proposed.telemetry.d.ts" />
|
|
@@ -66,8 +76,8 @@
|
|
|
66
76
|
/// <reference path="./vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts" />
|
|
67
77
|
/// <reference path="./vscode-dts/vscode.proposed.terminalSelection.d.ts" />
|
|
68
78
|
/// <reference path="./vscode-dts/vscode.proposed.testCoverage.d.ts" />
|
|
69
|
-
/// <reference path="./vscode-dts/vscode.proposed.testMessageContextValue.d.ts" />
|
|
70
79
|
/// <reference path="./vscode-dts/vscode.proposed.testObserver.d.ts" />
|
|
80
|
+
/// <reference path="./vscode-dts/vscode.proposed.testingActiveProfile.d.ts" />
|
|
71
81
|
/// <reference path="./vscode-dts/vscode.proposed.textSearchProvider.d.ts" />
|
|
72
82
|
/// <reference path="./vscode-dts/vscode.proposed.timeline.d.ts" />
|
|
73
83
|
/// <reference path="./vscode-dts/vscode.proposed.tokenInformation.d.ts" />
|
|
@@ -31,7 +31,7 @@ interface IImageAddonOptions {
|
|
|
31
31
|
*
|
|
32
32
|
* Note: `storageLimit` bytes are calculated from images by multiplying the pixels with 4
|
|
33
33
|
* (4 channels with one byte, images are stored as RGBA8888).
|
|
34
|
-
*
|
|
34
|
+
*
|
|
35
35
|
* Default is 2^16 (4096 x 4096 pixels).
|
|
36
36
|
*/
|
|
37
37
|
pixelLimit?: number;
|