@codingame/monaco-vscode-api 1.79.1 → 1.79.2-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 +11 -2
- package/dist/api.js +10 -8
- package/dist/composite.d.ts +65 -0
- package/dist/configurationRegistry.d.ts +212 -0
- package/dist/contextkey.d.ts +1 -1
- package/dist/default-extensions/json.js +1 -0
- package/dist/default-extensions/theme-defaults.js +2 -2
- package/dist/editorBrowser.d.ts +272 -3
- package/dist/event.d.ts +6 -1
- package/dist/{extension-tools-0c4c1ad7.js → extension-tools-3c2bf0a4.js} +698 -507
- package/dist/extensions.d.ts +3 -2
- package/dist/extensions.d2.ts +6 -17
- package/dist/extensionsRegistry.d.ts +15 -9
- package/dist/files.d.ts +71 -7
- package/dist/jsonSchema.d.ts +1 -1
- package/dist/keybinding.d.ts +2 -2
- package/dist/languageFeatures.d.ts +703 -61
- package/dist/monaco.d.ts +5 -4
- package/dist/override/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +2 -0
- package/dist/override/vs/workbench/contrib/notebook/browser/notebookEditor.js +2 -0
- package/dist/override/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +2 -0
- package/dist/override/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -1
- package/dist/platform.d.ts +11 -0
- package/dist/rollup-extension-directory-plugin.js +1 -1
- package/dist/rollup-vsix-plugin.js +1 -1
- package/dist/service-override/configuration.d.ts +5 -206
- package/dist/service-override/files.d.ts +2 -2
- package/dist/service-override/files.js +1 -1
- package/dist/service-override/markers.d.ts +7 -0
- package/dist/service-override/markers.js +6 -0
- package/dist/service-override/output.d.ts +7 -0
- package/dist/service-override/output.js +22 -0
- package/dist/service-override/preferences.js +7 -1
- package/dist/service-override/quickaccess.js +0 -9
- package/dist/service-override/search.d.ts +7 -0
- package/dist/service-override/search.js +19 -0
- package/dist/service-override/terminal.d.ts +607 -0
- package/dist/service-override/terminal.js +98 -0
- package/dist/service-override/tools/editor.js +1 -1
- package/dist/service-override/views.d.ts +561 -335
- package/dist/service-override/views.js +51 -11
- package/dist/services.d.ts +2627 -108
- package/dist/services.js +3 -0
- package/dist/severity.d.ts +16 -0
- package/dist/uri.d.ts +22 -11
- package/dist/views.d.ts +270 -0
- package/dist/vscode/vs/base/common/processes.js +24 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/decorations.js +20 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/delegatingEditorImpl.js +106 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffEditorSash.js +59 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffEditorWidget2.contribution.js +41 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffEditorWidget2.js +369 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffModel.js +247 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/lineAlignment.js +179 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/overviewRulerPart.js +121 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/style.css.js +4 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/unchangedRanges.js +184 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/utils.js +88 -0
- package/dist/vscode/vs/platform/extensionManagement/common/extensionManagement.js +38 -1
- package/dist/vscode/vs/platform/extensionManagement/common/extensionManagementUtil.js +5 -1
- package/dist/vscode/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +13 -5
- package/dist/vscode/vs/platform/files/common/fileService.js +43 -5
- package/dist/vscode/vs/platform/files/common/files.js +3 -1
- package/dist/vscode/vs/platform/languagePacks/common/languagePacks.js +4 -1
- package/dist/vscode/vs/platform/log/common/bufferLog.js +34 -0
- package/dist/vscode/vs/platform/log/common/fileLog.js +105 -0
- package/dist/vscode/vs/platform/quickinput/browser/quickPickPin.js +1 -1
- package/dist/vscode/vs/platform/remote/common/remoteAuthorityResolver.js +20 -1
- package/dist/vscode/vs/platform/request/browser/requestService.js +1 -1
- package/dist/vscode/vs/platform/request/common/request.js +3 -3
- package/dist/vscode/vs/platform/storage/common/storage.js +3 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +39 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +565 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +27 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +22 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +46 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +80 -0
- package/dist/vscode/vs/platform/terminal/common/environmentVariable.js +7 -0
- package/dist/vscode/vs/platform/terminal/common/environmentVariableCollection.js +196 -0
- package/dist/vscode/vs/platform/terminal/common/environmentVariableShared.js +23 -0
- package/dist/vscode/vs/platform/terminal/common/terminal.js +21 -1
- package/dist/vscode/vs/platform/terminal/common/terminalDataBuffering.js +45 -0
- package/dist/vscode/vs/platform/terminal/common/terminalEnvironment.js +37 -0
- package/dist/vscode/vs/platform/terminal/common/terminalPlatformConfiguration.js +622 -0
- package/dist/vscode/vs/platform/terminal/common/terminalProfiles.js +107 -0
- package/dist/vscode/vs/platform/terminal/common/terminalRecorder.js +66 -0
- package/dist/vscode/vs/platform/terminal/common/terminalStrings.js +16 -0
- package/dist/vscode/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +321 -0
- package/dist/vscode/vs/platform/userDataSync/common/settingsMerge.js +39 -1
- package/dist/vscode/vs/platform/userDataSync/common/userDataSync.js +19 -0
- package/dist/vscode/vs/platform/workspace/common/canonicalUri.js +3 -0
- package/dist/vscode/vs/platform/workspace/common/virtualWorkspace.js +4 -1
- package/dist/vscode/vs/platform/workspaces/common/workspaces.js +2 -2
- package/dist/vscode/vs/workbench/api/browser/mainThreadCommands.js +2 -3
- package/dist/vscode/vs/workbench/api/browser/mainThreadEditorTabs.js +473 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadLanguageFeatures.js +45 -38
- package/dist/vscode/vs/workbench/api/browser/mainThreadSearch.js +146 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadStatusBar.js +33 -52
- package/dist/vscode/vs/workbench/api/browser/mainThreadTerminalService.js +395 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadTheming.js +22 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadTreeViews.js +10 -5
- package/dist/vscode/vs/workbench/api/browser/mainThreadWindow.js +11 -4
- package/dist/vscode/vs/workbench/api/browser/mainThreadWorkspace.js +34 -11
- package/dist/vscode/vs/workbench/api/browser/statusBarExtensionPoint.js +81 -0
- package/dist/vscode/vs/workbench/api/common/extHost.protocol.js +7 -2
- package/dist/vscode/vs/workbench/api/common/extHostDebugService.js +4 -13
- package/dist/vscode/vs/workbench/api/common/extHostExtensionService.js +30 -15
- package/dist/vscode/vs/workbench/api/common/extHostFileSystemConsumer.js +20 -6
- package/dist/vscode/vs/workbench/api/common/extHostLanguageFeatures.js +41 -8
- package/dist/vscode/vs/workbench/api/common/extHostManagedSockets.js +3 -0
- package/dist/vscode/vs/workbench/api/common/extHostSearch.js +109 -0
- package/dist/vscode/vs/workbench/api/common/extHostStatusBar.js +33 -6
- package/dist/vscode/vs/workbench/api/common/extHostTerminalService.js +879 -1
- package/dist/vscode/vs/workbench/api/common/extHostTheming.js +38 -0
- package/dist/vscode/vs/workbench/api/common/extHostTreeViews.js +8 -5
- package/dist/vscode/vs/workbench/api/common/extHostTypeConverters.js +15 -17
- package/dist/vscode/vs/workbench/api/common/extHostTypes.js +117 -4
- package/dist/vscode/vs/workbench/api/common/extHostWindow.js +28 -6
- package/dist/vscode/vs/workbench/api/common/extHostWorkspace.js +28 -0
- package/dist/vscode/vs/workbench/api/common/shared/dataTransferCache.js +11 -14
- package/dist/vscode/vs/workbench/api/node/extHostTerminalService.js +22 -0
- package/dist/vscode/vs/workbench/browser/actions/layoutActions.js +2 -1
- package/dist/vscode/vs/workbench/browser/actions/windowActions.js +2 -2
- package/dist/vscode/vs/workbench/browser/dnd.js +56 -2
- package/dist/vscode/vs/workbench/browser/parts/compositePart.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/dialogs/dialogHandler.js +2 -2
- package/dist/vscode/vs/workbench/browser/parts/editor/editor.contribution.js +1 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editor.js +1 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorCommands.js +9 -10
- package/dist/vscode/vs/workbench/browser/parts/editor/editorGroupView.js +15 -9
- package/dist/vscode/vs/workbench/browser/parts/editor/editorGroupWatermark.js +13 -17
- package/dist/vscode/vs/workbench/browser/parts/editor/editorStatus.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/editorsObserver.js +2 -2
- package/dist/vscode/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/noTabsTitleControl.js +3 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/tabsTitleControl.js +60 -11
- package/dist/vscode/vs/workbench/browser/parts/editor/textDiffEditor.js +16 -10
- package/dist/vscode/vs/workbench/browser/parts/editor/textResourceEditor.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/views/checkbox.js +10 -0
- package/dist/vscode/vs/workbench/browser/parts/views/treeView.js +78 -14
- package/dist/vscode/vs/workbench/browser/parts/views/viewPaneContainer.js +1 -1
- package/dist/vscode/vs/workbench/browser/workbench.contribution.js +65 -6
- package/dist/vscode/vs/workbench/common/configuration.js +8 -1
- package/dist/vscode/vs/workbench/common/contextkeys.js +9 -1
- package/dist/vscode/vs/workbench/common/editor/editorGroupModel.js +5 -1
- package/dist/vscode/vs/workbench/common/editor/resourceEditorInput.js +6 -3
- package/dist/vscode/vs/workbench/common/editor/textResourceEditorInput.js +9 -6
- package/dist/vscode/vs/workbench/common/editor.js +1 -5
- package/dist/vscode/vs/workbench/common/resources.js +111 -34
- package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +1 -1
- package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.js +1 -1
- package/dist/vscode/vs/workbench/contrib/chat/browser/chat.js +3 -0
- package/dist/vscode/vs/workbench/contrib/chat/common/chatService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +6 -4
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +250 -0
- package/dist/vscode/vs/workbench/contrib/customEditor/browser/customEditorInput.js +290 -0
- package/dist/vscode/vs/workbench/contrib/customEditor/common/customEditor.js +3 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugActionViewItems.js +1 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugCommands.js +2 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +20 -20
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorActions.js +5 -3
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorContribution.js +5 -2
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugHover.js +33 -6
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugSession.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugTaskRunner.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/repl.js +3 -3
- package/dist/vscode/vs/workbench/contrib/debug/common/debugModel.js +29 -17
- package/dist/vscode/vs/workbench/contrib/debug/common/debugStorage.js +11 -10
- package/dist/vscode/vs/workbench/contrib/debug/common/debugger.js +10 -6
- package/dist/vscode/vs/workbench/contrib/extensions/browser/extensionsActions.js +2514 -0
- package/dist/vscode/vs/workbench/contrib/extensions/browser/extensionsIcons.js +82 -0
- package/dist/vscode/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/extensions/common/extensions.js +6 -1
- package/dist/vscode/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +16 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +2 -3
- package/dist/vscode/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +2 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/explorerService.js +10 -6
- package/dist/vscode/vs/workbench/contrib/files/browser/explorerViewlet.js +3 -18
- package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.contribution.js +37 -2
- package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.js +65 -3
- package/dist/vscode/vs/workbench/contrib/files/browser/fileCommands.js +3 -3
- package/dist/vscode/vs/workbench/contrib/files/browser/fileConstants.js +3 -1
- package/dist/vscode/vs/workbench/contrib/files/browser/files.contribution.js +41 -6
- package/dist/vscode/vs/workbench/contrib/files/browser/files.js +1 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerView.js +3 -3
- package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerViewer.js +6 -2
- package/dist/vscode/vs/workbench/contrib/files/common/explorerModel.js +16 -9
- package/dist/vscode/vs/workbench/contrib/files/common/files.js +1 -6
- package/dist/vscode/vs/workbench/contrib/interactive/browser/interactiveDocumentService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +200 -0
- package/dist/vscode/vs/workbench/contrib/interactive/browser/interactiveHistoryService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markers.contribution.js +586 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersFilterOptions.js +75 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersModel.js +201 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersTable.js +451 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersTreeViewer.js +670 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersView.js +857 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersViewActions.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersViewActions.js +132 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/media/markers.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/messages.js +171 -0
- package/dist/vscode/vs/workbench/contrib/markers/common/markers.js +15 -1
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +135 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +421 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +5 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +55 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/editing.js +54 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +108 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +334 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +606 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +307 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +36 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +165 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/telemetry.js +78 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/utils.js +68 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +2 -0
- package/dist/vscode/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +70 -0
- package/dist/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +158 -0
- package/dist/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser.js +6 -1
- package/dist/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/notebook/common/notebookCommon.js +16 -1
- package/dist/vscode/vs/workbench/contrib/notebook/common/notebookService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/output/browser/logViewer.js +64 -0
- package/dist/vscode/vs/workbench/contrib/output/browser/output.contribution.js +378 -0
- package/dist/vscode/vs/workbench/contrib/output/browser/outputServices.js +39 -3
- package/dist/vscode/vs/workbench/contrib/output/browser/outputView.js +220 -0
- package/dist/vscode/vs/workbench/contrib/output/common/outputChannelModel.js +12 -3
- package/dist/vscode/vs/workbench/contrib/output/common/outputLinkComputer.js +129 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +270 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/keybindingsEditor.js +1080 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/media/keybindings.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/media/keybindingsEditor.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/media/preferences.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/media/settingsWidgets.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferences.contribution.js +1154 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesActions.js +94 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesEditor.js +47 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesIcons.js +37 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesRenderers.js +731 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesSearch.js +271 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +479 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsEditor2.js +1465 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsEditorSettingIndicators.js +506 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsLayout.js +296 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsSearchMenu.js +79 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsTree.js +1984 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +759 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsWidgets.js +1008 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/tocTree.js +196 -0
- package/dist/vscode/vs/workbench/contrib/preferences/common/preferences.js +68 -0
- package/dist/vscode/vs/workbench/contrib/preferences/common/preferencesContribution.js +157 -0
- package/dist/vscode/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +67 -0
- package/dist/vscode/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +16 -16
- package/dist/vscode/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +1 -2
- package/dist/vscode/vs/workbench/contrib/remote/browser/remoteExplorer.js +23 -2
- package/dist/vscode/vs/workbench/contrib/remote/browser/tunnelView.js +5 -5
- package/dist/vscode/vs/workbench/contrib/search/browser/media/searchview.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/patternInputWidget.js +217 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/replace.js +3 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/replaceContributions.js +7 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/replaceService.js +222 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/search.contribution.js +54 -15
- package/dist/vscode/vs/workbench/contrib/search/browser/searchActionsBase.js +17 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchFindInput.js +41 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchIcons.js +35 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchMessage.js +58 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchModel.js +1842 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchNotebookHelpers.js +49 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchResultsView.js +379 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchView.js +1867 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchWidget.js +628 -0
- package/dist/vscode/vs/workbench/contrib/search/common/constants.js +30 -1
- package/dist/vscode/vs/workbench/contrib/search/common/search.js +9 -1
- package/dist/vscode/vs/workbench/contrib/search/common/searchHistoryService.js +42 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/constants.js +11 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +477 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditor.js +697 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +188 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +295 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +135 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +268 -0
- package/dist/vscode/vs/workbench/contrib/snippets/browser/tabCompletion.js +2 -2
- package/dist/vscode/vs/workbench/contrib/tasks/common/taskService.js +16 -1
- package/dist/vscode/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +119 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/media/scrollbar.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/media/terminal.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/media/widgets.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/media/xterm.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminal.contribution.js +238 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminal.js +4 -1
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalActions.js +1930 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalCommands.js +22 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalConfigHelper.js +213 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +17 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalEditor.js +186 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +199 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalEditorService.js +239 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalExtensions.js +22 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalGroup.js +482 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalGroupService.js +372 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalIcon.js +60 -1
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalIcons.js +37 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalInstance.js +2123 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalInstanceService.js +79 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalMainContribution.js +82 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalMenus.js +850 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy.js +142 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +618 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProfileQuickpick.js +278 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.js +417 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProfileService.js +213 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +144 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +267 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalService.js +1063 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalStatusList.js +108 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalTabbedView.js +417 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalTabsList.js +680 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalTooltip.js +72 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalUri.js +39 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalView.js +535 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +36 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +469 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +97 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +56 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +416 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +390 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +587 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/environmentVariable.js +3 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/environmentVariableService.js +94 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/history.js +356 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminal.js +266 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -16
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalConfiguration.js +965 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalContextKey.js +157 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalEnvironment.js +272 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalExtensionPoints.js +27 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalStrings.js +86 -0
- package/dist/vscode/vs/workbench/contrib/terminal/electron-sandbox/terminalProfileResolverService.js +46 -0
- package/dist/vscode/vs/workbench/contrib/terminalContrib/links/browser/links.js +3 -0
- package/dist/vscode/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkProviderService.js +26 -0
- package/dist/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.js +3 -0
- package/dist/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService.js +143 -0
- package/dist/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.js +85 -0
- package/dist/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.js +52 -0
- package/dist/vscode/vs/workbench/services/actions/common/menusExtensionPoint.js +14 -6
- package/dist/vscode/vs/workbench/services/assignment/common/assignmentService.js +3 -0
- package/dist/vscode/vs/workbench/services/configuration/browser/configurationService.js +13 -13
- package/dist/vscode/vs/workbench/services/configuration/common/configuration.js +2 -1
- package/dist/vscode/vs/workbench/services/configuration/common/configurationEditing.js +2 -2
- package/dist/vscode/vs/workbench/services/configuration/common/jsonEditingService.js +2 -2
- package/dist/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.js +3 -2
- package/dist/vscode/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.js +4 -0
- package/dist/vscode/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +2 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensionManifestPropertiesService.js +3 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensions.js +14 -2
- package/dist/vscode/vs/workbench/services/extensions/common/extensionsApiProposals.js +10 -1
- package/dist/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +70 -3
- package/dist/vscode/vs/workbench/services/hover/browser/hoverService.js +1 -1
- package/dist/vscode/vs/workbench/services/hover/browser/hoverWidget.js +2 -1
- package/dist/vscode/vs/workbench/services/hover/browser/media/hover.css.js +1 -1
- package/dist/vscode/vs/workbench/services/keybinding/common/keybindingEditing.js +275 -0
- package/dist/vscode/vs/workbench/services/localization/common/locale.js +3 -0
- package/dist/vscode/vs/workbench/services/log/common/logConstants.js +2 -0
- package/dist/vscode/vs/workbench/services/output/common/output.js +4 -1
- package/dist/vscode/vs/workbench/services/preferences/common/preferences.js +22 -1
- package/dist/vscode/vs/workbench/services/preferences/common/preferencesModels.js +6 -0
- package/dist/vscode/vs/workbench/services/preferences/common/preferencesValidation.js +37 -1
- package/dist/vscode/vs/workbench/services/remote/common/remoteAgentService.js +69 -0
- package/dist/vscode/vs/workbench/services/remote/common/remoteExplorerService.js +66 -27
- package/dist/vscode/vs/workbench/services/search/common/fileSearchManager.js +265 -0
- package/dist/vscode/vs/workbench/services/search/common/queryBuilder.js +6 -0
- package/dist/vscode/vs/workbench/services/search/common/replace.js +203 -0
- package/dist/vscode/vs/workbench/services/search/common/search.js +227 -1
- package/dist/vscode/vs/workbench/services/search/common/searchExtTypes.js +6 -0
- package/dist/vscode/vs/workbench/services/search/common/searchHelpers.js +72 -0
- package/dist/vscode/vs/workbench/services/search/common/searchService.js +355 -0
- package/dist/vscode/vs/workbench/services/search/common/textSearchManager.js +309 -0
- package/dist/vscode/vs/workbench/services/suggest/browser/media/suggest.css.js +4 -0
- package/dist/vscode/vs/workbench/services/suggest/browser/simpleCompletionItem.js +10 -0
- package/dist/vscode/vs/workbench/services/suggest/browser/simpleCompletionModel.js +98 -0
- package/dist/vscode/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +399 -0
- package/dist/vscode/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +83 -0
- package/dist/vscode/vs/workbench/services/terminal/common/embedderTerminalService.js +3 -0
- package/dist/vscode/vs/workbench/services/textfile/browser/textFileService.js +1 -1
- package/dist/vscode/vs/workbench/services/textfile/common/textFileEditorModel.js +10 -3
- package/dist/vscode/vs/workbench/services/themes/browser/fileIconThemeData.js +3 -3
- package/dist/vscode/vs/workbench/services/themes/browser/productIconThemeData.js +3 -3
- package/dist/vscode/vs/workbench/services/themes/common/colorThemeData.js +3 -3
- package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorInput.js +6 -4
- package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorModel.js +3 -0
- package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.js +4 -0
- package/dist/vscode/vs/workbench/services/userActivity/common/userActivityRegistry.js +15 -0
- package/dist/vscode/vs/workbench/services/userActivity/common/userActivityService.js +37 -0
- package/dist/vscode/vs/workbench/services/userDataSync/common/userDataSync.js +7 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.js +40 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyService.js +12 -0
- package/dist/vscode/vs/workbench/services/workspaces/common/canonicalUriService.js +19 -0
- package/dist/vscode-default-extensions/css/syntaxes/css.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/json/package.json.js +1 -1
- package/dist/vscode-default-extensions/json/syntaxes/JSONC.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/json/syntaxes/JSONL.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/syntaxes/Bibtex.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/latex/syntaxes/LaTeX.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/latex/syntaxes/TeX.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/lua/syntaxes/lua.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/perl/package.json.js +1 -1
- package/dist/vscode-default-extensions/php/snippets/php.code-snippets.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/sql/language-configuration.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-abyss/themes/abyss-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-defaults/package.json.js +1 -1
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_modern.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_vs.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-defaults/themes/hc_black.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-defaults/themes/hc_light.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-defaults/themes/light_modern.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/light_vs.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-monokai/themes/monokai-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-quietlight/themes/quietlight-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-red/themes/Red-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-seti/icons/vs-seti-icon-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-solarized-light/themes/solarized-light-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/vb/language-configuration.json.extensionResource.js +1 -1
- package/dist/vscode-services/env.js +4 -2
- package/dist/vscode-services/extHost.js +32 -48
- package/dist/vscode-services/missing-services.js +407 -29
- package/dist/vscode-services/window.js +59 -65
- package/dist/vscode-services/workspace.js +19 -5
- package/dist/workers/outputLinkComputer.worker.d.ts +2 -0
- package/dist/workers/outputLinkComputer.worker.js +3 -0
- package/dist/workspace.d.ts +1 -1
- package/monaco-editor-treemending.patch +1305 -1184
- package/package.json +65 -19
- package/dist/activity.d.ts +0 -2802
- package/dist/collections.d.ts +0 -7
- package/dist/colorRegistry.d.ts +0 -710
- package/dist/vscode/vs/platform/product/common/product.js +0 -48
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionFollowups.js +0 -30
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionInputPart.js +0 -196
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionListRenderer.js +0 -622
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionOptions.js +0 -77
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionWidget.js +0 -311
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/media/interactiveSession.css.js +0 -4
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionContextKeys.js +0 -56
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionModel.js +0 -305
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionService.js +0 -13
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionServiceImpl.js +0 -379
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionViewModel.js +0 -207
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionWidgetHistoryService.js +0 -3
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionWordCounter.js +0 -25
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_plus_experimental.json.extensionResource.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/light_plus_experimental.json.extensionResource.js +0 -2
package/dist/activity.d.ts
DELETED
|
@@ -1,2802 +0,0 @@
|
|
|
1
|
-
import { S as SubmenuAction, b as IAction, e as ICommandService, z as ColorIdentifier, A as Color, c as IComposite, I as IProgressIndicator, a as IActionRunner, B as IRunEvent, h as ICompositeControl } from './colorRegistry.js';
|
|
2
|
-
import { S as ServiceIdentifier, b as SyncDescriptor, c as IConstructorSignature, I as IInstantiationService, B as BrandedService } from './instantiation.js';
|
|
3
|
-
import { E as Event$1, a as IDisposable, D as Disposable, C as CancellationToken, b as Emitter } from './event.js';
|
|
4
|
-
import { I as IconIdentifier, T as ThemeIcon } from './themables.js';
|
|
5
|
-
import { I as IJSONSchema } from './jsonSchema.js';
|
|
6
|
-
import { a as UriComponents, U as URI } from './uri.js';
|
|
7
|
-
import { a as IWorkspaceFolder, I as IAnyWorkspaceIdentifier, b as IWorkspaceContextService } from './workspace.js';
|
|
8
|
-
import { I as IEditorOptions, i as IMarkdownString } from './editorBrowser.js';
|
|
9
|
-
import { K as KeyCode, b as KeyCodeChord, R as ResolvedKeybinding, a as IKeybindingService } from './keybinding.js';
|
|
10
|
-
import { e as ICommandAction, f as ICommandActionTitle, g as Icon, h as ILocalizedString, E as ExtensionIdentifier } from './extensions.d2.ts';
|
|
11
|
-
import { a as IContextKeyService, C as ContextKeyExpression } from './contextkey.js';
|
|
12
|
-
import { a as IExtensionService } from './extensionsRegistry.js';
|
|
13
|
-
|
|
14
|
-
interface IConfigurationOverrides {
|
|
15
|
-
overrideIdentifier?: string | null;
|
|
16
|
-
resource?: URI | null;
|
|
17
|
-
}
|
|
18
|
-
type IConfigurationUpdateOverrides = Omit<IConfigurationOverrides, 'overrideIdentifier'> & {
|
|
19
|
-
overrideIdentifiers?: string[] | null;
|
|
20
|
-
};
|
|
21
|
-
declare const enum ConfigurationTarget {
|
|
22
|
-
APPLICATION = 1,
|
|
23
|
-
USER = 2,
|
|
24
|
-
USER_LOCAL = 3,
|
|
25
|
-
USER_REMOTE = 4,
|
|
26
|
-
WORKSPACE = 5,
|
|
27
|
-
WORKSPACE_FOLDER = 6,
|
|
28
|
-
DEFAULT = 7,
|
|
29
|
-
MEMORY = 8
|
|
30
|
-
}
|
|
31
|
-
interface IConfigurationChange {
|
|
32
|
-
keys: string[];
|
|
33
|
-
overrides: [string, string[]][];
|
|
34
|
-
}
|
|
35
|
-
interface IConfigurationChangeEvent {
|
|
36
|
-
readonly source: ConfigurationTarget;
|
|
37
|
-
readonly affectedKeys: ReadonlySet<string>;
|
|
38
|
-
readonly change: IConfigurationChange;
|
|
39
|
-
affectsConfiguration(configuration: string, overrides?: IConfigurationOverrides): boolean;
|
|
40
|
-
readonly sourceConfig: any;
|
|
41
|
-
}
|
|
42
|
-
interface IConfigurationValue<T> {
|
|
43
|
-
readonly defaultValue?: T;
|
|
44
|
-
readonly applicationValue?: T;
|
|
45
|
-
readonly userValue?: T;
|
|
46
|
-
readonly userLocalValue?: T;
|
|
47
|
-
readonly userRemoteValue?: T;
|
|
48
|
-
readonly workspaceValue?: T;
|
|
49
|
-
readonly workspaceFolderValue?: T;
|
|
50
|
-
readonly memoryValue?: T;
|
|
51
|
-
readonly policyValue?: T;
|
|
52
|
-
readonly value?: T;
|
|
53
|
-
readonly default?: {
|
|
54
|
-
value?: T;
|
|
55
|
-
override?: T;
|
|
56
|
-
};
|
|
57
|
-
readonly application?: {
|
|
58
|
-
value?: T;
|
|
59
|
-
override?: T;
|
|
60
|
-
};
|
|
61
|
-
readonly user?: {
|
|
62
|
-
value?: T;
|
|
63
|
-
override?: T;
|
|
64
|
-
};
|
|
65
|
-
readonly userLocal?: {
|
|
66
|
-
value?: T;
|
|
67
|
-
override?: T;
|
|
68
|
-
};
|
|
69
|
-
readonly userRemote?: {
|
|
70
|
-
value?: T;
|
|
71
|
-
override?: T;
|
|
72
|
-
};
|
|
73
|
-
readonly workspace?: {
|
|
74
|
-
value?: T;
|
|
75
|
-
override?: T;
|
|
76
|
-
};
|
|
77
|
-
readonly workspaceFolder?: {
|
|
78
|
-
value?: T;
|
|
79
|
-
override?: T;
|
|
80
|
-
};
|
|
81
|
-
readonly memory?: {
|
|
82
|
-
value?: T;
|
|
83
|
-
override?: T;
|
|
84
|
-
};
|
|
85
|
-
readonly policy?: {
|
|
86
|
-
value?: T;
|
|
87
|
-
};
|
|
88
|
-
readonly overrideIdentifiers?: string[];
|
|
89
|
-
}
|
|
90
|
-
interface IConfigurationUpdateOptions {
|
|
91
|
-
/**
|
|
92
|
-
* If `true`, do not notifies the error to user by showing the message box. Default is `false`.
|
|
93
|
-
*/
|
|
94
|
-
donotNotifyError?: boolean;
|
|
95
|
-
/**
|
|
96
|
-
* How to handle dirty file when updating the configuration.
|
|
97
|
-
*/
|
|
98
|
-
handleDirtyFile?: 'save' | 'revert';
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
declare const IConfigurationService: ServiceIdentifier<IConfigurationService>;
|
|
102
|
-
interface IConfigurationService {
|
|
103
|
-
readonly _serviceBrand: undefined;
|
|
104
|
-
onDidChangeConfiguration: Event$1<IConfigurationChangeEvent>;
|
|
105
|
-
getConfigurationData(): IConfigurationData | null;
|
|
106
|
-
/**
|
|
107
|
-
* Fetches the value of the section for the given overrides.
|
|
108
|
-
* Value can be of native type or an object keyed off the section name.
|
|
109
|
-
*
|
|
110
|
-
* @param section - Section of the configuration. Can be `null` or `undefined`.
|
|
111
|
-
* @param overrides - Overrides that has to be applied while fetching
|
|
112
|
-
*
|
|
113
|
-
*/
|
|
114
|
-
getValue<T>(): T;
|
|
115
|
-
getValue<T>(section: string): T;
|
|
116
|
-
getValue<T>(overrides: IConfigurationOverrides): T;
|
|
117
|
-
getValue<T>(section: string, overrides: IConfigurationOverrides): T;
|
|
118
|
-
/**
|
|
119
|
-
* Update a configuration value.
|
|
120
|
-
*
|
|
121
|
-
* Use `target` to update the configuration in a specific `ConfigurationTarget`.
|
|
122
|
-
*
|
|
123
|
-
* Use `overrides` to update the configuration for a resource or for override identifiers or both.
|
|
124
|
-
*
|
|
125
|
-
* Passing a resource through overrides will update the configuration in the workspace folder containing that resource.
|
|
126
|
-
*
|
|
127
|
-
* *Note 1:* Updating configuration to a default value will remove the configuration from the requested target. If not target is passed, it will be removed from all writeable targets.
|
|
128
|
-
*
|
|
129
|
-
* *Note 2:* Use `undefined` value to remove the configuration from the given target. If not target is passed, it will be removed from all writeable targets.
|
|
130
|
-
*
|
|
131
|
-
* Use `donotNotifyError` and set it to `true` to surpresss errors.
|
|
132
|
-
*
|
|
133
|
-
* @param key setting to be updated
|
|
134
|
-
* @param value The new value
|
|
135
|
-
*/
|
|
136
|
-
updateValue(key: string, value: any): Promise<void>;
|
|
137
|
-
updateValue(key: string, value: any, target: ConfigurationTarget): Promise<void>;
|
|
138
|
-
updateValue(key: string, value: any, overrides: IConfigurationOverrides | IConfigurationUpdateOverrides): Promise<void>;
|
|
139
|
-
updateValue(key: string, value: any, overrides: IConfigurationOverrides | IConfigurationUpdateOverrides, target: ConfigurationTarget, options?: IConfigurationUpdateOptions): Promise<void>;
|
|
140
|
-
inspect<T>(key: string, overrides?: IConfigurationOverrides): IConfigurationValue<Readonly<T>>;
|
|
141
|
-
reloadConfiguration(target?: ConfigurationTarget | IWorkspaceFolder): Promise<void>;
|
|
142
|
-
keys(): {
|
|
143
|
-
default: string[];
|
|
144
|
-
user: string[];
|
|
145
|
-
workspace: string[];
|
|
146
|
-
workspaceFolder: string[];
|
|
147
|
-
memory?: string[];
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
interface IConfigurationModel {
|
|
151
|
-
contents: any;
|
|
152
|
-
keys: string[];
|
|
153
|
-
overrides: IOverrides[];
|
|
154
|
-
}
|
|
155
|
-
interface IOverrides {
|
|
156
|
-
keys: string[];
|
|
157
|
-
contents: any;
|
|
158
|
-
identifiers: string[];
|
|
159
|
-
}
|
|
160
|
-
interface IConfigurationData {
|
|
161
|
-
defaults: IConfigurationModel;
|
|
162
|
-
policy: IConfigurationModel;
|
|
163
|
-
application: IConfigurationModel;
|
|
164
|
-
user: IConfigurationModel;
|
|
165
|
-
workspace: IConfigurationModel;
|
|
166
|
-
folders: [UriComponents, IConfigurationModel][];
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
interface IKeybindings {
|
|
170
|
-
primary?: number;
|
|
171
|
-
secondary?: number[];
|
|
172
|
-
win?: {
|
|
173
|
-
primary: number;
|
|
174
|
-
secondary?: number[];
|
|
175
|
-
};
|
|
176
|
-
linux?: {
|
|
177
|
-
primary: number;
|
|
178
|
-
secondary?: number[];
|
|
179
|
-
};
|
|
180
|
-
mac?: {
|
|
181
|
-
primary: number;
|
|
182
|
-
secondary?: number[];
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
interface ISubmenuItem {
|
|
187
|
-
title: string | ICommandActionTitle;
|
|
188
|
-
submenu: MenuId;
|
|
189
|
-
icon?: Icon;
|
|
190
|
-
when?: ContextKeyExpression;
|
|
191
|
-
group?: 'navigation' | string;
|
|
192
|
-
order?: number;
|
|
193
|
-
isSelection?: boolean;
|
|
194
|
-
rememberDefaultAction?: boolean;
|
|
195
|
-
}
|
|
196
|
-
declare class MenuId {
|
|
197
|
-
private static readonly _instances;
|
|
198
|
-
static readonly CommandPalette: MenuId;
|
|
199
|
-
static readonly DebugBreakpointsContext: MenuId;
|
|
200
|
-
static readonly DebugCallStackContext: MenuId;
|
|
201
|
-
static readonly DebugConsoleContext: MenuId;
|
|
202
|
-
static readonly DebugVariablesContext: MenuId;
|
|
203
|
-
static readonly DebugWatchContext: MenuId;
|
|
204
|
-
static readonly DebugToolBar: MenuId;
|
|
205
|
-
static readonly DebugToolBarStop: MenuId;
|
|
206
|
-
static readonly EditorContext: MenuId;
|
|
207
|
-
static readonly SimpleEditorContext: MenuId;
|
|
208
|
-
static readonly EditorContent: MenuId;
|
|
209
|
-
static readonly EditorLineNumberContext: MenuId;
|
|
210
|
-
static readonly EditorContextCopy: MenuId;
|
|
211
|
-
static readonly EditorContextPeek: MenuId;
|
|
212
|
-
static readonly EditorContextShare: MenuId;
|
|
213
|
-
static readonly EditorTitle: MenuId;
|
|
214
|
-
static readonly EditorTitleRun: MenuId;
|
|
215
|
-
static readonly EditorTitleContext: MenuId;
|
|
216
|
-
static readonly EditorTitleContextShare: MenuId;
|
|
217
|
-
static readonly EmptyEditorGroup: MenuId;
|
|
218
|
-
static readonly EmptyEditorGroupContext: MenuId;
|
|
219
|
-
static readonly EditorTabsBarContext: MenuId;
|
|
220
|
-
static readonly ExplorerContext: MenuId;
|
|
221
|
-
static readonly ExplorerContextShare: MenuId;
|
|
222
|
-
static readonly ExtensionContext: MenuId;
|
|
223
|
-
static readonly GlobalActivity: MenuId;
|
|
224
|
-
static readonly CommandCenter: MenuId;
|
|
225
|
-
static readonly LayoutControlMenuSubmenu: MenuId;
|
|
226
|
-
static readonly LayoutControlMenu: MenuId;
|
|
227
|
-
static readonly MenubarMainMenu: MenuId;
|
|
228
|
-
static readonly MenubarAppearanceMenu: MenuId;
|
|
229
|
-
static readonly MenubarDebugMenu: MenuId;
|
|
230
|
-
static readonly MenubarEditMenu: MenuId;
|
|
231
|
-
static readonly MenubarCopy: MenuId;
|
|
232
|
-
static readonly MenubarFileMenu: MenuId;
|
|
233
|
-
static readonly MenubarGoMenu: MenuId;
|
|
234
|
-
static readonly MenubarHelpMenu: MenuId;
|
|
235
|
-
static readonly MenubarLayoutMenu: MenuId;
|
|
236
|
-
static readonly MenubarNewBreakpointMenu: MenuId;
|
|
237
|
-
static readonly PanelAlignmentMenu: MenuId;
|
|
238
|
-
static readonly PanelPositionMenu: MenuId;
|
|
239
|
-
static readonly MenubarPreferencesMenu: MenuId;
|
|
240
|
-
static readonly MenubarRecentMenu: MenuId;
|
|
241
|
-
static readonly MenubarSelectionMenu: MenuId;
|
|
242
|
-
static readonly MenubarShare: MenuId;
|
|
243
|
-
static readonly MenubarSwitchEditorMenu: MenuId;
|
|
244
|
-
static readonly MenubarSwitchGroupMenu: MenuId;
|
|
245
|
-
static readonly MenubarTerminalMenu: MenuId;
|
|
246
|
-
static readonly MenubarViewMenu: MenuId;
|
|
247
|
-
static readonly MenubarHomeMenu: MenuId;
|
|
248
|
-
static readonly OpenEditorsContext: MenuId;
|
|
249
|
-
static readonly ProblemsPanelContext: MenuId;
|
|
250
|
-
static readonly SCMChangeContext: MenuId;
|
|
251
|
-
static readonly SCMResourceContext: MenuId;
|
|
252
|
-
static readonly SCMResourceFolderContext: MenuId;
|
|
253
|
-
static readonly SCMResourceGroupContext: MenuId;
|
|
254
|
-
static readonly SCMSourceControl: MenuId;
|
|
255
|
-
static readonly SCMTitle: MenuId;
|
|
256
|
-
static readonly SearchContext: MenuId;
|
|
257
|
-
static readonly SearchActionMenu: MenuId;
|
|
258
|
-
static readonly StatusBarWindowIndicatorMenu: MenuId;
|
|
259
|
-
static readonly StatusBarRemoteIndicatorMenu: MenuId;
|
|
260
|
-
static readonly StickyScrollContext: MenuId;
|
|
261
|
-
static readonly TestItem: MenuId;
|
|
262
|
-
static readonly TestItemGutter: MenuId;
|
|
263
|
-
static readonly TestPeekElement: MenuId;
|
|
264
|
-
static readonly TestPeekTitle: MenuId;
|
|
265
|
-
static readonly TouchBarContext: MenuId;
|
|
266
|
-
static readonly TitleBarContext: MenuId;
|
|
267
|
-
static readonly TitleBarTitleContext: MenuId;
|
|
268
|
-
static readonly TunnelContext: MenuId;
|
|
269
|
-
static readonly TunnelPrivacy: MenuId;
|
|
270
|
-
static readonly TunnelProtocol: MenuId;
|
|
271
|
-
static readonly TunnelPortInline: MenuId;
|
|
272
|
-
static readonly TunnelTitle: MenuId;
|
|
273
|
-
static readonly TunnelLocalAddressInline: MenuId;
|
|
274
|
-
static readonly TunnelOriginInline: MenuId;
|
|
275
|
-
static readonly ViewItemContext: MenuId;
|
|
276
|
-
static readonly ViewContainerTitle: MenuId;
|
|
277
|
-
static readonly ViewContainerTitleContext: MenuId;
|
|
278
|
-
static readonly ViewTitle: MenuId;
|
|
279
|
-
static readonly ViewTitleContext: MenuId;
|
|
280
|
-
static readonly CommentEditorActions: MenuId;
|
|
281
|
-
static readonly CommentThreadTitle: MenuId;
|
|
282
|
-
static readonly CommentThreadActions: MenuId;
|
|
283
|
-
static readonly CommentThreadAdditionalActions: MenuId;
|
|
284
|
-
static readonly CommentThreadTitleContext: MenuId;
|
|
285
|
-
static readonly CommentThreadCommentContext: MenuId;
|
|
286
|
-
static readonly CommentTitle: MenuId;
|
|
287
|
-
static readonly CommentActions: MenuId;
|
|
288
|
-
static readonly InteractiveToolbar: MenuId;
|
|
289
|
-
static readonly InteractiveCellTitle: MenuId;
|
|
290
|
-
static readonly InteractiveCellDelete: MenuId;
|
|
291
|
-
static readonly InteractiveCellExecute: MenuId;
|
|
292
|
-
static readonly InteractiveInputExecute: MenuId;
|
|
293
|
-
static readonly NotebookToolbar: MenuId;
|
|
294
|
-
static readonly NotebookCellTitle: MenuId;
|
|
295
|
-
static readonly NotebookCellDelete: MenuId;
|
|
296
|
-
static readonly NotebookCellInsert: MenuId;
|
|
297
|
-
static readonly NotebookCellBetween: MenuId;
|
|
298
|
-
static readonly NotebookCellListTop: MenuId;
|
|
299
|
-
static readonly NotebookCellExecute: MenuId;
|
|
300
|
-
static readonly NotebookCellExecutePrimary: MenuId;
|
|
301
|
-
static readonly NotebookDiffCellInputTitle: MenuId;
|
|
302
|
-
static readonly NotebookDiffCellMetadataTitle: MenuId;
|
|
303
|
-
static readonly NotebookDiffCellOutputsTitle: MenuId;
|
|
304
|
-
static readonly NotebookOutputToolbar: MenuId;
|
|
305
|
-
static readonly NotebookEditorLayoutConfigure: MenuId;
|
|
306
|
-
static readonly NotebookKernelSource: MenuId;
|
|
307
|
-
static readonly BulkEditTitle: MenuId;
|
|
308
|
-
static readonly BulkEditContext: MenuId;
|
|
309
|
-
static readonly TimelineItemContext: MenuId;
|
|
310
|
-
static readonly TimelineTitle: MenuId;
|
|
311
|
-
static readonly TimelineTitleContext: MenuId;
|
|
312
|
-
static readonly TimelineFilterSubMenu: MenuId;
|
|
313
|
-
static readonly AccountsContext: MenuId;
|
|
314
|
-
static readonly PanelTitle: MenuId;
|
|
315
|
-
static readonly AuxiliaryBarTitle: MenuId;
|
|
316
|
-
static readonly TerminalInstanceContext: MenuId;
|
|
317
|
-
static readonly TerminalEditorInstanceContext: MenuId;
|
|
318
|
-
static readonly TerminalNewDropdownContext: MenuId;
|
|
319
|
-
static readonly TerminalTabContext: MenuId;
|
|
320
|
-
static readonly TerminalTabEmptyAreaContext: MenuId;
|
|
321
|
-
static readonly TerminalInlineTabContext: MenuId;
|
|
322
|
-
static readonly WebviewContext: MenuId;
|
|
323
|
-
static readonly InlineCompletionsActions: MenuId;
|
|
324
|
-
static readonly NewFile: MenuId;
|
|
325
|
-
static readonly MergeInput1Toolbar: MenuId;
|
|
326
|
-
static readonly MergeInput2Toolbar: MenuId;
|
|
327
|
-
static readonly MergeBaseToolbar: MenuId;
|
|
328
|
-
static readonly MergeInputResultToolbar: MenuId;
|
|
329
|
-
static readonly InlineSuggestionToolbar: MenuId;
|
|
330
|
-
static readonly InteractiveSessionContext: MenuId;
|
|
331
|
-
static readonly InteractiveSessionCodeBlock: MenuId;
|
|
332
|
-
static readonly InteractiveSessionTitle: MenuId;
|
|
333
|
-
static readonly InteractiveSessionExecute: MenuId;
|
|
334
|
-
/**
|
|
335
|
-
* Create or reuse a `MenuId` with the given identifier
|
|
336
|
-
*/
|
|
337
|
-
static for(identifier: string): MenuId;
|
|
338
|
-
readonly id: string;
|
|
339
|
-
/**
|
|
340
|
-
* Create a new `MenuId` with the unique identifier. Will throw if a menu
|
|
341
|
-
* with the identifier already exists, use `MenuId.for(ident)` or a unique
|
|
342
|
-
* identifier
|
|
343
|
-
*/
|
|
344
|
-
constructor(identifier: string);
|
|
345
|
-
}
|
|
346
|
-
interface IMenuActionOptions {
|
|
347
|
-
arg?: any;
|
|
348
|
-
shouldForwardArgs?: boolean;
|
|
349
|
-
renderShortTitle?: boolean;
|
|
350
|
-
}
|
|
351
|
-
interface IMenuChangeEvent {
|
|
352
|
-
readonly menu: IMenu;
|
|
353
|
-
readonly isStructuralChange: boolean;
|
|
354
|
-
readonly isToggleChange: boolean;
|
|
355
|
-
readonly isEnablementChange: boolean;
|
|
356
|
-
}
|
|
357
|
-
interface IMenu extends IDisposable {
|
|
358
|
-
readonly onDidChange: Event$1<IMenuChangeEvent>;
|
|
359
|
-
getActions(options?: IMenuActionOptions): [string, Array<MenuItemAction | SubmenuItemAction>][];
|
|
360
|
-
}
|
|
361
|
-
interface IMenuCreateOptions {
|
|
362
|
-
emitEventsForSubmenuChanges?: boolean;
|
|
363
|
-
eventDebounceDelay?: number;
|
|
364
|
-
}
|
|
365
|
-
declare const IMenuService: ServiceIdentifier<IMenuService>;
|
|
366
|
-
interface IMenuService {
|
|
367
|
-
readonly _serviceBrand: undefined;
|
|
368
|
-
/**
|
|
369
|
-
* Create a new menu for the given menu identifier. A menu sends events when it's entries
|
|
370
|
-
* have changed (placement, enablement, checked-state). By default it does not send events for
|
|
371
|
-
* submenu entries. That is more expensive and must be explicitly enabled with the
|
|
372
|
-
* `emitEventsForSubmenuChanges` flag.
|
|
373
|
-
*/
|
|
374
|
-
createMenu(id: MenuId, contextKeyService: IContextKeyService, options?: IMenuCreateOptions): IMenu;
|
|
375
|
-
/**
|
|
376
|
-
* Reset **all** menu item hidden states.
|
|
377
|
-
*/
|
|
378
|
-
resetHiddenStates(): void;
|
|
379
|
-
/**
|
|
380
|
-
* Reset the menu's hidden states.
|
|
381
|
-
*/
|
|
382
|
-
resetHiddenStates(menuIds: readonly MenuId[] | undefined): void;
|
|
383
|
-
}
|
|
384
|
-
declare class SubmenuItemAction extends SubmenuAction {
|
|
385
|
-
readonly item: ISubmenuItem;
|
|
386
|
-
readonly hideActions: IMenuItemHide | undefined;
|
|
387
|
-
constructor(item: ISubmenuItem, hideActions: IMenuItemHide | undefined, actions: IAction[]);
|
|
388
|
-
}
|
|
389
|
-
interface IMenuItemHide {
|
|
390
|
-
readonly isHidden: boolean;
|
|
391
|
-
readonly hide: IAction;
|
|
392
|
-
readonly toggle: IAction;
|
|
393
|
-
}
|
|
394
|
-
declare class MenuItemAction implements IAction {
|
|
395
|
-
readonly hideActions: IMenuItemHide | undefined;
|
|
396
|
-
private _commandService;
|
|
397
|
-
static label(action: ICommandAction, options?: IMenuActionOptions): string;
|
|
398
|
-
readonly item: ICommandAction;
|
|
399
|
-
readonly alt: MenuItemAction | undefined;
|
|
400
|
-
private readonly _options;
|
|
401
|
-
readonly id: string;
|
|
402
|
-
readonly label: string;
|
|
403
|
-
readonly tooltip: string;
|
|
404
|
-
readonly class: string | undefined;
|
|
405
|
-
readonly enabled: boolean;
|
|
406
|
-
readonly checked?: boolean;
|
|
407
|
-
constructor(item: ICommandAction, alt: ICommandAction | undefined, options: IMenuActionOptions | undefined, hideActions: IMenuItemHide | undefined, contextKeyService: IContextKeyService, _commandService: ICommandService);
|
|
408
|
-
run(...args: any[]): Promise<void>;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
/**
|
|
412
|
-
* Flags to indicate whether to use the default profile or not.
|
|
413
|
-
*/
|
|
414
|
-
type UseDefaultProfileFlags = {
|
|
415
|
-
settings?: boolean;
|
|
416
|
-
keybindings?: boolean;
|
|
417
|
-
tasks?: boolean;
|
|
418
|
-
snippets?: boolean;
|
|
419
|
-
extensions?: boolean;
|
|
420
|
-
uiState?: boolean;
|
|
421
|
-
};
|
|
422
|
-
interface IUserDataProfile {
|
|
423
|
-
readonly id: string;
|
|
424
|
-
readonly isDefault: boolean;
|
|
425
|
-
readonly name: string;
|
|
426
|
-
readonly shortName?: string;
|
|
427
|
-
readonly location: URI;
|
|
428
|
-
readonly globalStorageHome: URI;
|
|
429
|
-
readonly settingsResource: URI;
|
|
430
|
-
readonly keybindingsResource: URI;
|
|
431
|
-
readonly tasksResource: URI;
|
|
432
|
-
readonly snippetsHome: URI;
|
|
433
|
-
readonly extensionsResource: URI;
|
|
434
|
-
readonly cacheHome: URI;
|
|
435
|
-
readonly useDefaultFlags?: UseDefaultProfileFlags;
|
|
436
|
-
readonly isTransient?: boolean;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
declare enum WillSaveStateReason {
|
|
440
|
-
/**
|
|
441
|
-
* No specific reason to save state.
|
|
442
|
-
*/
|
|
443
|
-
NONE = 0,
|
|
444
|
-
/**
|
|
445
|
-
* A hint that the workbench is about to shutdown.
|
|
446
|
-
*/
|
|
447
|
-
SHUTDOWN = 1
|
|
448
|
-
}
|
|
449
|
-
interface IWillSaveStateEvent {
|
|
450
|
-
readonly reason: WillSaveStateReason;
|
|
451
|
-
}
|
|
452
|
-
declare const IStorageService: ServiceIdentifier<IStorageService>;
|
|
453
|
-
interface IStorageService {
|
|
454
|
-
readonly _serviceBrand: undefined;
|
|
455
|
-
/**
|
|
456
|
-
* Emitted whenever data is updated or deleted.
|
|
457
|
-
*/
|
|
458
|
-
readonly onDidChangeValue: Event$1<IStorageValueChangeEvent>;
|
|
459
|
-
/**
|
|
460
|
-
* Emitted whenever target of a storage entry changes.
|
|
461
|
-
*/
|
|
462
|
-
readonly onDidChangeTarget: Event$1<IStorageTargetChangeEvent>;
|
|
463
|
-
/**
|
|
464
|
-
* Emitted when the storage is about to persist. This is the right time
|
|
465
|
-
* to persist data to ensure it is stored before the application shuts
|
|
466
|
-
* down.
|
|
467
|
-
*
|
|
468
|
-
* The will save state event allows to optionally ask for the reason of
|
|
469
|
-
* saving the state, e.g. to find out if the state is saved due to a
|
|
470
|
-
* shutdown.
|
|
471
|
-
*
|
|
472
|
-
* Note: this event may be fired many times, not only on shutdown to prevent
|
|
473
|
-
* loss of state in situations where the shutdown is not sufficient to
|
|
474
|
-
* persist the data properly.
|
|
475
|
-
*/
|
|
476
|
-
readonly onWillSaveState: Event$1<IWillSaveStateEvent>;
|
|
477
|
-
/**
|
|
478
|
-
* Retrieve an element stored with the given key from storage. Use
|
|
479
|
-
* the provided `defaultValue` if the element is `null` or `undefined`.
|
|
480
|
-
*
|
|
481
|
-
* @param scope allows to define the scope of the storage operation
|
|
482
|
-
* to either the current workspace only, all workspaces or all profiles.
|
|
483
|
-
*/
|
|
484
|
-
get(key: string, scope: StorageScope, fallbackValue: string): string;
|
|
485
|
-
get(key: string, scope: StorageScope, fallbackValue?: string): string | undefined;
|
|
486
|
-
/**
|
|
487
|
-
* Retrieve an element stored with the given key from storage. Use
|
|
488
|
-
* the provided `defaultValue` if the element is `null` or `undefined`.
|
|
489
|
-
* The element will be converted to a `boolean`.
|
|
490
|
-
*
|
|
491
|
-
* @param scope allows to define the scope of the storage operation
|
|
492
|
-
* to either the current workspace only, all workspaces or all profiles.
|
|
493
|
-
*/
|
|
494
|
-
getBoolean(key: string, scope: StorageScope, fallbackValue: boolean): boolean;
|
|
495
|
-
getBoolean(key: string, scope: StorageScope, fallbackValue?: boolean): boolean | undefined;
|
|
496
|
-
/**
|
|
497
|
-
* Retrieve an element stored with the given key from storage. Use
|
|
498
|
-
* the provided `defaultValue` if the element is `null` or `undefined`.
|
|
499
|
-
* The element will be converted to a `number` using `parseInt` with a
|
|
500
|
-
* base of `10`.
|
|
501
|
-
*
|
|
502
|
-
* @param scope allows to define the scope of the storage operation
|
|
503
|
-
* to either the current workspace only, all workspaces or all profiles.
|
|
504
|
-
*/
|
|
505
|
-
getNumber(key: string, scope: StorageScope, fallbackValue: number): number;
|
|
506
|
-
getNumber(key: string, scope: StorageScope, fallbackValue?: number): number | undefined;
|
|
507
|
-
/**
|
|
508
|
-
* Store a value under the given key to storage. The value will be
|
|
509
|
-
* converted to a `string`. Storing either `undefined` or `null` will
|
|
510
|
-
* remove the entry under the key.
|
|
511
|
-
*
|
|
512
|
-
* @param scope allows to define the scope of the storage operation
|
|
513
|
-
* to either the current workspace only, all workspaces or all profiles.
|
|
514
|
-
*
|
|
515
|
-
* @param target allows to define the target of the storage operation
|
|
516
|
-
* to either the current machine or user.
|
|
517
|
-
*/
|
|
518
|
-
store(key: string, value: string | boolean | number | undefined | null, scope: StorageScope, target: StorageTarget): void;
|
|
519
|
-
/**
|
|
520
|
-
* Delete an element stored under the provided key from storage.
|
|
521
|
-
*
|
|
522
|
-
* The scope argument allows to define the scope of the storage
|
|
523
|
-
* operation to either the current workspace only, all workspaces
|
|
524
|
-
* or all profiles.
|
|
525
|
-
*/
|
|
526
|
-
remove(key: string, scope: StorageScope): void;
|
|
527
|
-
/**
|
|
528
|
-
* Returns all the keys used in the storage for the provided `scope`
|
|
529
|
-
* and `target`.
|
|
530
|
-
*
|
|
531
|
-
* Note: this will NOT return all keys stored in the storage layer.
|
|
532
|
-
* Some keys may not have an associated `StorageTarget` and thus
|
|
533
|
-
* will be excluded from the results.
|
|
534
|
-
*
|
|
535
|
-
* @param scope allows to define the scope for the keys
|
|
536
|
-
* to either the current workspace only, all workspaces or all profiles.
|
|
537
|
-
*
|
|
538
|
-
* @param target allows to define the target for the keys
|
|
539
|
-
* to either the current machine or user.
|
|
540
|
-
*/
|
|
541
|
-
keys(scope: StorageScope, target: StorageTarget): string[];
|
|
542
|
-
/**
|
|
543
|
-
* Log the contents of the storage to the console.
|
|
544
|
-
*/
|
|
545
|
-
log(): void;
|
|
546
|
-
/**
|
|
547
|
-
* Returns true if the storage service handles the provided scope.
|
|
548
|
-
*/
|
|
549
|
-
hasScope(scope: IAnyWorkspaceIdentifier | IUserDataProfile): boolean;
|
|
550
|
-
/**
|
|
551
|
-
* Switch storage to another workspace or profile. Optionally preserve the
|
|
552
|
-
* current data to the new storage.
|
|
553
|
-
*/
|
|
554
|
-
switch(to: IAnyWorkspaceIdentifier | IUserDataProfile, preserveData: boolean): Promise<void>;
|
|
555
|
-
/**
|
|
556
|
-
* Whether the storage for the given scope was created during this session or
|
|
557
|
-
* existed before.
|
|
558
|
-
*/
|
|
559
|
-
isNew(scope: StorageScope): boolean;
|
|
560
|
-
/**
|
|
561
|
-
* Allows to flush state, e.g. in cases where a shutdown is
|
|
562
|
-
* imminent. This will send out the `onWillSaveState` to ask
|
|
563
|
-
* everyone for latest state.
|
|
564
|
-
*
|
|
565
|
-
* @returns a `Promise` that can be awaited on when all updates
|
|
566
|
-
* to the underlying storage have been flushed.
|
|
567
|
-
*/
|
|
568
|
-
flush(reason?: WillSaveStateReason): Promise<void>;
|
|
569
|
-
}
|
|
570
|
-
declare const enum StorageScope {
|
|
571
|
-
/**
|
|
572
|
-
* The stored data will be scoped to all workspaces across all profiles.
|
|
573
|
-
*/
|
|
574
|
-
APPLICATION = -1,
|
|
575
|
-
/**
|
|
576
|
-
* The stored data will be scoped to all workspaces of the same profile.
|
|
577
|
-
*/
|
|
578
|
-
PROFILE = 0,
|
|
579
|
-
/**
|
|
580
|
-
* The stored data will be scoped to the current workspace.
|
|
581
|
-
*/
|
|
582
|
-
WORKSPACE = 1
|
|
583
|
-
}
|
|
584
|
-
declare const enum StorageTarget {
|
|
585
|
-
/**
|
|
586
|
-
* The stored data is user specific and applies across machines.
|
|
587
|
-
*/
|
|
588
|
-
USER = 0,
|
|
589
|
-
/**
|
|
590
|
-
* The stored data is machine specific.
|
|
591
|
-
*/
|
|
592
|
-
MACHINE = 1
|
|
593
|
-
}
|
|
594
|
-
interface IStorageValueChangeEvent {
|
|
595
|
-
/**
|
|
596
|
-
* The scope for the storage entry that changed
|
|
597
|
-
* or was removed.
|
|
598
|
-
*/
|
|
599
|
-
readonly scope: StorageScope;
|
|
600
|
-
/**
|
|
601
|
-
* The `key` of the storage entry that was changed
|
|
602
|
-
* or was removed.
|
|
603
|
-
*/
|
|
604
|
-
readonly key: string;
|
|
605
|
-
/**
|
|
606
|
-
* The `target` can be `undefined` if a key is being
|
|
607
|
-
* removed.
|
|
608
|
-
*/
|
|
609
|
-
readonly target: StorageTarget | undefined;
|
|
610
|
-
}
|
|
611
|
-
interface IStorageTargetChangeEvent {
|
|
612
|
-
/**
|
|
613
|
-
* The scope for the target that changed. Listeners
|
|
614
|
-
* should use `keys(scope, target)` to get an updated
|
|
615
|
-
* list of keys for the given `scope` and `target`.
|
|
616
|
-
*/
|
|
617
|
-
readonly scope: StorageScope;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
interface IPropertyData {
|
|
621
|
-
classification: 'SystemMetaData' | 'CallstackOrException' | 'CustomerContent' | 'PublicNonPersonalData' | 'EndUserPseudonymizedInformation';
|
|
622
|
-
purpose: 'PerformanceAndHealth' | 'FeatureInsight' | 'BusinessInsight';
|
|
623
|
-
comment: string;
|
|
624
|
-
expiration?: string;
|
|
625
|
-
endpoint?: string;
|
|
626
|
-
isMeasurement?: boolean;
|
|
627
|
-
}
|
|
628
|
-
interface IGDPRProperty {
|
|
629
|
-
owner: string;
|
|
630
|
-
comment: string;
|
|
631
|
-
expiration?: string;
|
|
632
|
-
readonly [name: string]: IPropertyData | undefined | IGDPRProperty | string;
|
|
633
|
-
}
|
|
634
|
-
type IGDPRPropertyWithoutMetadata = Omit<IGDPRProperty, 'owner' | 'comment' | 'expiration'>;
|
|
635
|
-
type OmitMetadata<T> = Omit<T, 'owner' | 'comment' | 'expiration'>;
|
|
636
|
-
type ClassifiedEvent<T extends IGDPRPropertyWithoutMetadata> = {
|
|
637
|
-
[k in keyof T]: any;
|
|
638
|
-
};
|
|
639
|
-
type StrictPropertyChecker<TEvent, TClassification, TError> = keyof TEvent extends keyof OmitMetadata<TClassification> ? keyof OmitMetadata<TClassification> extends keyof TEvent ? TEvent : TError : TError;
|
|
640
|
-
type StrictPropertyCheckError = {
|
|
641
|
-
error: 'Type of classified event does not match event properties';
|
|
642
|
-
};
|
|
643
|
-
type StrictPropertyCheck<T extends IGDPRProperty, E> = StrictPropertyChecker<E, ClassifiedEvent<OmitMetadata<T>>, StrictPropertyCheckError>;
|
|
644
|
-
|
|
645
|
-
interface ITelemetryData {
|
|
646
|
-
from?: string;
|
|
647
|
-
target?: string;
|
|
648
|
-
[key: string]: any;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
declare const ITelemetryService: ServiceIdentifier<ITelemetryService>;
|
|
652
|
-
interface ITelemetryService {
|
|
653
|
-
readonly _serviceBrand: undefined;
|
|
654
|
-
readonly telemetryLevel: TelemetryLevel;
|
|
655
|
-
readonly sessionId: string;
|
|
656
|
-
readonly machineId: string;
|
|
657
|
-
readonly firstSessionDate: string;
|
|
658
|
-
readonly msftInternal?: boolean;
|
|
659
|
-
/**
|
|
660
|
-
* Whether error telemetry will get sent. If false, `publicLogError` will no-op.
|
|
661
|
-
*/
|
|
662
|
-
readonly sendErrorTelemetry: boolean;
|
|
663
|
-
/**
|
|
664
|
-
* @deprecated Use publicLog2 and the typescript GDPR annotation where possible
|
|
665
|
-
*/
|
|
666
|
-
publicLog(eventName: string, data?: ITelemetryData): void;
|
|
667
|
-
/**
|
|
668
|
-
* Sends a telemetry event that has been privacy approved.
|
|
669
|
-
* Do not call this unless you have been given approval.
|
|
670
|
-
*/
|
|
671
|
-
publicLog2<E extends ClassifiedEvent<OmitMetadata<T>> = never, T extends IGDPRProperty = never>(eventName: string, data?: StrictPropertyCheck<T, E>): void;
|
|
672
|
-
/**
|
|
673
|
-
* @deprecated Use publicLogError2 and the typescript GDPR annotation where possible
|
|
674
|
-
*/
|
|
675
|
-
publicLogError(errorEventName: string, data?: ITelemetryData): void;
|
|
676
|
-
publicLogError2<E extends ClassifiedEvent<OmitMetadata<T>> = never, T extends IGDPRProperty = never>(eventName: string, data?: StrictPropertyCheck<T, E>): void;
|
|
677
|
-
setExperimentProperty(name: string, value: string): void;
|
|
678
|
-
}
|
|
679
|
-
interface ITelemetryEndpoint {
|
|
680
|
-
id: string;
|
|
681
|
-
aiKey: string;
|
|
682
|
-
sendErrorTelemetry: boolean;
|
|
683
|
-
}
|
|
684
|
-
declare const enum TelemetryLevel {
|
|
685
|
-
NONE = 0,
|
|
686
|
-
CRASH = 1,
|
|
687
|
-
ERROR = 2,
|
|
688
|
-
USAGE = 3
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
type IconDefaults = ThemeIcon | IconDefinition;
|
|
692
|
-
interface IconDefinition {
|
|
693
|
-
font?: IconFontContribution;
|
|
694
|
-
fontCharacter: string;
|
|
695
|
-
}
|
|
696
|
-
interface IconContribution {
|
|
697
|
-
readonly id: string;
|
|
698
|
-
description: string | undefined;
|
|
699
|
-
deprecationMessage?: string;
|
|
700
|
-
readonly defaults: IconDefaults;
|
|
701
|
-
}
|
|
702
|
-
declare namespace IconContribution {
|
|
703
|
-
function getDefinition(contribution: IconContribution, registry: IIconRegistry): IconDefinition | undefined;
|
|
704
|
-
}
|
|
705
|
-
interface IconFontContribution {
|
|
706
|
-
readonly id: string;
|
|
707
|
-
readonly definition: IconFontDefinition;
|
|
708
|
-
}
|
|
709
|
-
interface IconFontDefinition {
|
|
710
|
-
readonly weight?: string;
|
|
711
|
-
readonly style?: string;
|
|
712
|
-
readonly src: IconFontSource[];
|
|
713
|
-
}
|
|
714
|
-
declare namespace IconFontDefinition {
|
|
715
|
-
function toJSONObject(iconFont: IconFontDefinition): any;
|
|
716
|
-
function fromJSONObject(json: any): IconFontDefinition | undefined;
|
|
717
|
-
}
|
|
718
|
-
interface IconFontSource {
|
|
719
|
-
readonly location: URI;
|
|
720
|
-
readonly format: string;
|
|
721
|
-
}
|
|
722
|
-
interface IIconRegistry {
|
|
723
|
-
readonly onDidChange: Event$1<void>;
|
|
724
|
-
/**
|
|
725
|
-
* Register a icon to the registry.
|
|
726
|
-
* @param id The icon id
|
|
727
|
-
* @param defaults The default values
|
|
728
|
-
* @param description The description
|
|
729
|
-
*/
|
|
730
|
-
registerIcon(id: IconIdentifier, defaults: IconDefaults, description?: string): ThemeIcon;
|
|
731
|
-
/**
|
|
732
|
-
* Deregister a icon from the registry.
|
|
733
|
-
*/
|
|
734
|
-
deregisterIcon(id: IconIdentifier): void;
|
|
735
|
-
/**
|
|
736
|
-
* Get all icon contributions
|
|
737
|
-
*/
|
|
738
|
-
getIcons(): IconContribution[];
|
|
739
|
-
/**
|
|
740
|
-
* Get the icon for the given id
|
|
741
|
-
*/
|
|
742
|
-
getIcon(id: IconIdentifier): IconContribution | undefined;
|
|
743
|
-
/**
|
|
744
|
-
* JSON schema for an object to assign icon values to one of the icon contributions.
|
|
745
|
-
*/
|
|
746
|
-
getIconSchema(): IJSONSchema;
|
|
747
|
-
/**
|
|
748
|
-
* JSON schema to for a reference to a icon contribution.
|
|
749
|
-
*/
|
|
750
|
-
getIconReferenceSchema(): IJSONSchema;
|
|
751
|
-
/**
|
|
752
|
-
* Register a icon font to the registry.
|
|
753
|
-
* @param id The icon font id
|
|
754
|
-
* @param definition The icon font definition
|
|
755
|
-
*/
|
|
756
|
-
registerIconFont(id: string, definition: IconFontDefinition): IconFontDefinition;
|
|
757
|
-
/**
|
|
758
|
-
* Deregister an icon font to the registry.
|
|
759
|
-
*/
|
|
760
|
-
deregisterIconFont(id: string): void;
|
|
761
|
-
/**
|
|
762
|
-
* Get the icon font for the given id
|
|
763
|
-
*/
|
|
764
|
-
getIconFont(id: string): IconFontDefinition | undefined;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
/**
|
|
768
|
-
* Color scheme used by the OS and by color themes.
|
|
769
|
-
*/
|
|
770
|
-
declare enum ColorScheme {
|
|
771
|
-
DARK = "dark",
|
|
772
|
-
LIGHT = "light",
|
|
773
|
-
HIGH_CONTRAST_DARK = "hcDark",
|
|
774
|
-
HIGH_CONTRAST_LIGHT = "hcLight"
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
interface ITokenStyle {
|
|
778
|
-
readonly foreground: number | undefined;
|
|
779
|
-
readonly bold: boolean | undefined;
|
|
780
|
-
readonly underline: boolean | undefined;
|
|
781
|
-
readonly strikethrough: boolean | undefined;
|
|
782
|
-
readonly italic: boolean | undefined;
|
|
783
|
-
}
|
|
784
|
-
interface IColorTheme {
|
|
785
|
-
readonly type: ColorScheme;
|
|
786
|
-
readonly label: string;
|
|
787
|
-
/**
|
|
788
|
-
* Resolves the color of the given color identifier. If the theme does not
|
|
789
|
-
* specify the color, the default color is returned unless <code>useDefault</code> is set to false.
|
|
790
|
-
* @param color the id of the color
|
|
791
|
-
* @param useDefault specifies if the default color should be used. If not set, the default is used.
|
|
792
|
-
*/
|
|
793
|
-
getColor(color: ColorIdentifier, useDefault?: boolean): Color | undefined;
|
|
794
|
-
/**
|
|
795
|
-
* Returns whether the theme defines a value for the color. If not, that means the
|
|
796
|
-
* default color will be used.
|
|
797
|
-
*/
|
|
798
|
-
defines(color: ColorIdentifier): boolean;
|
|
799
|
-
/**
|
|
800
|
-
* Returns the token style for a given classification. The result uses the <code>MetadataConsts</code> format
|
|
801
|
-
*/
|
|
802
|
-
getTokenStyleMetadata(type: string, modifiers: string[], modelLanguage: string): ITokenStyle | undefined;
|
|
803
|
-
/**
|
|
804
|
-
* List of all colors used with tokens. <code>getTokenStyleMetadata</code> references the colors by index into this list.
|
|
805
|
-
*/
|
|
806
|
-
readonly tokenColorMap: string[];
|
|
807
|
-
/**
|
|
808
|
-
* Defines whether semantic highlighting should be enabled for the theme.
|
|
809
|
-
*/
|
|
810
|
-
readonly semanticHighlighting: boolean;
|
|
811
|
-
}
|
|
812
|
-
interface IFileIconTheme {
|
|
813
|
-
readonly hasFileIcons: boolean;
|
|
814
|
-
readonly hasFolderIcons: boolean;
|
|
815
|
-
readonly hidesExplorerArrows: boolean;
|
|
816
|
-
}
|
|
817
|
-
interface IProductIconTheme {
|
|
818
|
-
/**
|
|
819
|
-
* Resolves the definition for the given icon as defined by the theme.
|
|
820
|
-
*
|
|
821
|
-
* @param iconContribution The icon
|
|
822
|
-
*/
|
|
823
|
-
getIcon(iconContribution: IconContribution): IconDefinition | undefined;
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
declare const IThemeService: ServiceIdentifier<IThemeService>;
|
|
827
|
-
interface IThemeService {
|
|
828
|
-
readonly _serviceBrand: undefined;
|
|
829
|
-
getColorTheme(): IColorTheme;
|
|
830
|
-
readonly onDidColorThemeChange: Event$1<IColorTheme>;
|
|
831
|
-
getFileIconTheme(): IFileIconTheme;
|
|
832
|
-
readonly onDidFileIconThemeChange: Event$1<IFileIconTheme>;
|
|
833
|
-
getProductIconTheme(): IProductIconTheme;
|
|
834
|
-
readonly onDidProductIconThemeChange: Event$1<IProductIconTheme>;
|
|
835
|
-
}
|
|
836
|
-
/**
|
|
837
|
-
* Utility base class for all themable components.
|
|
838
|
-
*/
|
|
839
|
-
declare class Themable extends Disposable {
|
|
840
|
-
protected themeService: IThemeService;
|
|
841
|
-
protected theme: IColorTheme;
|
|
842
|
-
constructor(themeService: IThemeService);
|
|
843
|
-
protected onThemeChange(theme: IColorTheme): void;
|
|
844
|
-
updateStyles(): void;
|
|
845
|
-
protected getColor(id: string, modify?: (color: Color, theme: IColorTheme) => Color): string | null;
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
interface IPaneComposite extends IComposite {
|
|
849
|
-
/**
|
|
850
|
-
* Returns the minimal width needed to avoid any content horizontal truncation
|
|
851
|
-
*/
|
|
852
|
-
getOptimalWidth(): number | undefined;
|
|
853
|
-
openView<T extends IView$3>(id: string, focus?: boolean): T | undefined;
|
|
854
|
-
getViewPaneContainer(): IViewPaneContainer | undefined;
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
declare const enum ViewContainerLocation {
|
|
858
|
-
Sidebar = 0,
|
|
859
|
-
Panel = 1,
|
|
860
|
-
AuxiliaryBar = 2
|
|
861
|
-
}
|
|
862
|
-
type OpenCommandActionDescriptor = {
|
|
863
|
-
readonly id: string;
|
|
864
|
-
readonly title?: ILocalizedString | string;
|
|
865
|
-
readonly mnemonicTitle?: string;
|
|
866
|
-
readonly order?: number;
|
|
867
|
-
readonly keybindings?: IKeybindings & {
|
|
868
|
-
when?: ContextKeyExpression;
|
|
869
|
-
};
|
|
870
|
-
};
|
|
871
|
-
/**
|
|
872
|
-
* View Container Contexts
|
|
873
|
-
*/
|
|
874
|
-
interface IViewContainerDescriptor {
|
|
875
|
-
/**
|
|
876
|
-
* The id of the view container
|
|
877
|
-
*/
|
|
878
|
-
readonly id: string;
|
|
879
|
-
/**
|
|
880
|
-
* The title of the view container
|
|
881
|
-
*/
|
|
882
|
-
readonly title: ILocalizedString | string;
|
|
883
|
-
/**
|
|
884
|
-
* Icon representation of the View container
|
|
885
|
-
*/
|
|
886
|
-
readonly icon?: ThemeIcon | URI;
|
|
887
|
-
/**
|
|
888
|
-
* Order of the view container.
|
|
889
|
-
*/
|
|
890
|
-
readonly order?: number;
|
|
891
|
-
/**
|
|
892
|
-
* IViewPaneContainer Ctor to instantiate
|
|
893
|
-
*/
|
|
894
|
-
readonly ctorDescriptor: SyncDescriptor<IViewPaneContainer>;
|
|
895
|
-
/**
|
|
896
|
-
* Descriptor for open view container command
|
|
897
|
-
* If not provided, view container info (id, title) is used.
|
|
898
|
-
*
|
|
899
|
-
* Note: To prevent registering open command, use `doNotRegisterOpenCommand` flag while registering the view container
|
|
900
|
-
*/
|
|
901
|
-
readonly openCommandActionDescriptor?: OpenCommandActionDescriptor;
|
|
902
|
-
/**
|
|
903
|
-
* Storage id to use to store the view container state.
|
|
904
|
-
* If not provided, it will be derived.
|
|
905
|
-
*/
|
|
906
|
-
readonly storageId?: string;
|
|
907
|
-
/**
|
|
908
|
-
* If enabled, view container is not shown if it has no active views.
|
|
909
|
-
*/
|
|
910
|
-
readonly hideIfEmpty?: boolean;
|
|
911
|
-
/**
|
|
912
|
-
* Id of the extension that contributed the view container
|
|
913
|
-
*/
|
|
914
|
-
readonly extensionId?: ExtensionIdentifier;
|
|
915
|
-
readonly alwaysUseContainerInfo?: boolean;
|
|
916
|
-
readonly viewOrderDelegate?: ViewOrderDelegate;
|
|
917
|
-
readonly rejectAddedViews?: boolean;
|
|
918
|
-
requestedIndex?: number;
|
|
919
|
-
}
|
|
920
|
-
interface ViewOrderDelegate {
|
|
921
|
-
getOrder(group?: string): number | undefined;
|
|
922
|
-
}
|
|
923
|
-
interface ViewContainer extends IViewContainerDescriptor {
|
|
924
|
-
}
|
|
925
|
-
interface IViewDescriptor {
|
|
926
|
-
readonly type?: string;
|
|
927
|
-
readonly id: string;
|
|
928
|
-
readonly name: string;
|
|
929
|
-
readonly ctorDescriptor: SyncDescriptor<IView$3>;
|
|
930
|
-
readonly when?: ContextKeyExpression;
|
|
931
|
-
readonly order?: number;
|
|
932
|
-
readonly weight?: number;
|
|
933
|
-
readonly collapsed?: boolean;
|
|
934
|
-
readonly canToggleVisibility?: boolean;
|
|
935
|
-
readonly canMoveView?: boolean;
|
|
936
|
-
readonly containerIcon?: ThemeIcon | URI;
|
|
937
|
-
readonly containerTitle?: string;
|
|
938
|
-
readonly hideByDefault?: boolean;
|
|
939
|
-
readonly workspace?: boolean;
|
|
940
|
-
readonly focusCommand?: {
|
|
941
|
-
id: string;
|
|
942
|
-
keybindings?: IKeybindings;
|
|
943
|
-
};
|
|
944
|
-
readonly group?: string;
|
|
945
|
-
readonly remoteAuthority?: string | string[];
|
|
946
|
-
readonly virtualWorkspace?: string;
|
|
947
|
-
readonly openCommandActionDescriptor?: OpenCommandActionDescriptor;
|
|
948
|
-
}
|
|
949
|
-
interface IViewDescriptorRef {
|
|
950
|
-
viewDescriptor: IViewDescriptor;
|
|
951
|
-
index: number;
|
|
952
|
-
}
|
|
953
|
-
interface IAddedViewDescriptorRef extends IViewDescriptorRef {
|
|
954
|
-
collapsed: boolean;
|
|
955
|
-
size?: number;
|
|
956
|
-
}
|
|
957
|
-
interface IViewContainerModel {
|
|
958
|
-
readonly viewContainer: ViewContainer;
|
|
959
|
-
readonly title: string;
|
|
960
|
-
readonly icon: ThemeIcon | URI | undefined;
|
|
961
|
-
readonly keybindingId: string | undefined;
|
|
962
|
-
readonly onDidChangeContainerInfo: Event$1<{
|
|
963
|
-
title?: boolean;
|
|
964
|
-
icon?: boolean;
|
|
965
|
-
keybindingId?: boolean;
|
|
966
|
-
badgeEnablement?: boolean;
|
|
967
|
-
}>;
|
|
968
|
-
readonly allViewDescriptors: ReadonlyArray<IViewDescriptor>;
|
|
969
|
-
readonly onDidChangeAllViewDescriptors: Event$1<{
|
|
970
|
-
added: ReadonlyArray<IViewDescriptor>;
|
|
971
|
-
removed: ReadonlyArray<IViewDescriptor>;
|
|
972
|
-
}>;
|
|
973
|
-
readonly activeViewDescriptors: ReadonlyArray<IViewDescriptor>;
|
|
974
|
-
readonly onDidChangeActiveViewDescriptors: Event$1<{
|
|
975
|
-
added: ReadonlyArray<IViewDescriptor>;
|
|
976
|
-
removed: ReadonlyArray<IViewDescriptor>;
|
|
977
|
-
}>;
|
|
978
|
-
readonly visibleViewDescriptors: ReadonlyArray<IViewDescriptor>;
|
|
979
|
-
readonly onDidAddVisibleViewDescriptors: Event$1<IAddedViewDescriptorRef[]>;
|
|
980
|
-
readonly onDidRemoveVisibleViewDescriptors: Event$1<IViewDescriptorRef[]>;
|
|
981
|
-
readonly onDidMoveVisibleViewDescriptors: Event$1<{
|
|
982
|
-
from: IViewDescriptorRef;
|
|
983
|
-
to: IViewDescriptorRef;
|
|
984
|
-
}>;
|
|
985
|
-
isVisible(id: string): boolean;
|
|
986
|
-
setVisible(id: string, visible: boolean): void;
|
|
987
|
-
isCollapsed(id: string): boolean;
|
|
988
|
-
setCollapsed(id: string, collapsed: boolean): void;
|
|
989
|
-
getSize(id: string): number | undefined;
|
|
990
|
-
setSizes(newSizes: readonly {
|
|
991
|
-
id: string;
|
|
992
|
-
size: number;
|
|
993
|
-
}[]): void;
|
|
994
|
-
move(from: string, to: string): void;
|
|
995
|
-
}
|
|
996
|
-
interface IView$3 {
|
|
997
|
-
readonly id: string;
|
|
998
|
-
focus(): void;
|
|
999
|
-
isVisible(): boolean;
|
|
1000
|
-
isBodyVisible(): boolean;
|
|
1001
|
-
setExpanded(expanded: boolean): boolean;
|
|
1002
|
-
getProgressIndicator(): IProgressIndicator | undefined;
|
|
1003
|
-
}
|
|
1004
|
-
declare const IViewsService: ServiceIdentifier<IViewsService>;
|
|
1005
|
-
interface IViewsService {
|
|
1006
|
-
readonly _serviceBrand: undefined;
|
|
1007
|
-
readonly onDidChangeViewContainerVisibility: Event$1<{
|
|
1008
|
-
id: string;
|
|
1009
|
-
visible: boolean;
|
|
1010
|
-
location: ViewContainerLocation;
|
|
1011
|
-
}>;
|
|
1012
|
-
isViewContainerVisible(id: string): boolean;
|
|
1013
|
-
openViewContainer(id: string, focus?: boolean): Promise<IPaneComposite | null>;
|
|
1014
|
-
closeViewContainer(id: string): void;
|
|
1015
|
-
getVisibleViewContainer(location: ViewContainerLocation): ViewContainer | null;
|
|
1016
|
-
getActiveViewPaneContainerWithId(viewContainerId: string): IViewPaneContainer | null;
|
|
1017
|
-
readonly onDidChangeViewVisibility: Event$1<{
|
|
1018
|
-
id: string;
|
|
1019
|
-
visible: boolean;
|
|
1020
|
-
}>;
|
|
1021
|
-
isViewVisible(id: string): boolean;
|
|
1022
|
-
openView<T extends IView$3>(id: string, focus?: boolean): Promise<T | null>;
|
|
1023
|
-
closeView(id: string): void;
|
|
1024
|
-
getActiveViewWithId<T extends IView$3>(id: string): T | null;
|
|
1025
|
-
getViewWithId<T extends IView$3>(id: string): T | null;
|
|
1026
|
-
getViewProgressIndicator(id: string): IProgressIndicator | undefined;
|
|
1027
|
-
}
|
|
1028
|
-
declare enum ViewVisibilityState {
|
|
1029
|
-
Default = 0,
|
|
1030
|
-
Expand = 1
|
|
1031
|
-
}
|
|
1032
|
-
declare const IViewDescriptorService: ServiceIdentifier<IViewDescriptorService>;
|
|
1033
|
-
interface IViewDescriptorService {
|
|
1034
|
-
readonly _serviceBrand: undefined;
|
|
1035
|
-
readonly viewContainers: ReadonlyArray<ViewContainer>;
|
|
1036
|
-
readonly onDidChangeViewContainers: Event$1<{
|
|
1037
|
-
added: ReadonlyArray<{
|
|
1038
|
-
container: ViewContainer;
|
|
1039
|
-
location: ViewContainerLocation;
|
|
1040
|
-
}>;
|
|
1041
|
-
removed: ReadonlyArray<{
|
|
1042
|
-
container: ViewContainer;
|
|
1043
|
-
location: ViewContainerLocation;
|
|
1044
|
-
}>;
|
|
1045
|
-
}>;
|
|
1046
|
-
getDefaultViewContainer(location: ViewContainerLocation): ViewContainer | undefined;
|
|
1047
|
-
getViewContainerById(id: string): ViewContainer | null;
|
|
1048
|
-
isViewContainerRemovedPermanently(id: string): boolean;
|
|
1049
|
-
getDefaultViewContainerLocation(viewContainer: ViewContainer): ViewContainerLocation | null;
|
|
1050
|
-
getViewContainerLocation(viewContainer: ViewContainer): ViewContainerLocation | null;
|
|
1051
|
-
getViewContainersByLocation(location: ViewContainerLocation): ViewContainer[];
|
|
1052
|
-
getViewContainerModel(viewContainer: ViewContainer): IViewContainerModel;
|
|
1053
|
-
readonly onDidChangeContainerLocation: Event$1<{
|
|
1054
|
-
viewContainer: ViewContainer;
|
|
1055
|
-
from: ViewContainerLocation;
|
|
1056
|
-
to: ViewContainerLocation;
|
|
1057
|
-
}>;
|
|
1058
|
-
moveViewContainerToLocation(viewContainer: ViewContainer, location: ViewContainerLocation, requestedIndex?: number): void;
|
|
1059
|
-
getViewContainerBadgeEnablementState(id: string): boolean;
|
|
1060
|
-
setViewContainerBadgeEnablementState(id: string, badgesEnabled: boolean): void;
|
|
1061
|
-
getViewDescriptorById(id: string): IViewDescriptor | null;
|
|
1062
|
-
getViewContainerByViewId(id: string): ViewContainer | null;
|
|
1063
|
-
getDefaultContainerById(id: string): ViewContainer | null;
|
|
1064
|
-
getViewLocationById(id: string): ViewContainerLocation | null;
|
|
1065
|
-
readonly onDidChangeContainer: Event$1<{
|
|
1066
|
-
views: IViewDescriptor[];
|
|
1067
|
-
from: ViewContainer;
|
|
1068
|
-
to: ViewContainer;
|
|
1069
|
-
}>;
|
|
1070
|
-
moveViewsToContainer(views: IViewDescriptor[], viewContainer: ViewContainer, visibilityState?: ViewVisibilityState): void;
|
|
1071
|
-
readonly onDidChangeLocation: Event$1<{
|
|
1072
|
-
views: IViewDescriptor[];
|
|
1073
|
-
from: ViewContainerLocation;
|
|
1074
|
-
to: ViewContainerLocation;
|
|
1075
|
-
}>;
|
|
1076
|
-
moveViewToLocation(view: IViewDescriptor, location: ViewContainerLocation): void;
|
|
1077
|
-
reset(): void;
|
|
1078
|
-
}
|
|
1079
|
-
interface IViewPaneContainer {
|
|
1080
|
-
onDidAddViews: Event$1<IView$3[]>;
|
|
1081
|
-
onDidRemoveViews: Event$1<IView$3[]>;
|
|
1082
|
-
onDidChangeViewVisibility: Event$1<IView$3>;
|
|
1083
|
-
readonly views: IView$3[];
|
|
1084
|
-
setVisible(visible: boolean): void;
|
|
1085
|
-
isVisible(): boolean;
|
|
1086
|
-
focus(): void;
|
|
1087
|
-
getActionsContext(): unknown;
|
|
1088
|
-
getView(viewId: string): IView$3 | undefined;
|
|
1089
|
-
toggleViewVisibility(viewId: string): void;
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
type OpenInternalOptions = {
|
|
1093
|
-
/**
|
|
1094
|
-
* Signals that the intent is to open an editor to the side
|
|
1095
|
-
* of the currently active editor.
|
|
1096
|
-
*/
|
|
1097
|
-
readonly openToSide?: boolean;
|
|
1098
|
-
/**
|
|
1099
|
-
* Extra editor options to apply in case an editor is used to open.
|
|
1100
|
-
*/
|
|
1101
|
-
readonly editorOptions?: IEditorOptions;
|
|
1102
|
-
/**
|
|
1103
|
-
* Signals that the editor to open was triggered through a user
|
|
1104
|
-
* action, such as keyboard or mouse usage.
|
|
1105
|
-
*/
|
|
1106
|
-
readonly fromUserGesture?: boolean;
|
|
1107
|
-
/**
|
|
1108
|
-
* Allow command links to be handled.
|
|
1109
|
-
*
|
|
1110
|
-
* If this is an array, then only the commands included in the array can be run.
|
|
1111
|
-
*/
|
|
1112
|
-
readonly allowCommands?: boolean | readonly string[];
|
|
1113
|
-
};
|
|
1114
|
-
type OpenExternalOptions = {
|
|
1115
|
-
readonly openExternal?: boolean;
|
|
1116
|
-
readonly allowTunneling?: boolean;
|
|
1117
|
-
readonly allowContributedOpeners?: boolean | string;
|
|
1118
|
-
readonly fromWorkspace?: boolean;
|
|
1119
|
-
};
|
|
1120
|
-
type OpenOptions = OpenInternalOptions & OpenExternalOptions;
|
|
1121
|
-
type ResolveExternalUriOptions = {
|
|
1122
|
-
readonly allowTunneling?: boolean;
|
|
1123
|
-
};
|
|
1124
|
-
interface IResolvedExternalUri extends IDisposable {
|
|
1125
|
-
resolved: URI;
|
|
1126
|
-
}
|
|
1127
|
-
interface IOpener {
|
|
1128
|
-
open(resource: URI | string, options?: OpenInternalOptions | OpenExternalOptions): Promise<boolean>;
|
|
1129
|
-
}
|
|
1130
|
-
interface IExternalOpener {
|
|
1131
|
-
openExternal(href: string, ctx: {
|
|
1132
|
-
sourceUri: URI;
|
|
1133
|
-
preferredOpenerId?: string;
|
|
1134
|
-
}, token: CancellationToken): Promise<boolean>;
|
|
1135
|
-
dispose?(): void;
|
|
1136
|
-
}
|
|
1137
|
-
interface IValidator {
|
|
1138
|
-
shouldOpen(resource: URI | string, openOptions?: OpenOptions): Promise<boolean>;
|
|
1139
|
-
}
|
|
1140
|
-
interface IExternalUriResolver {
|
|
1141
|
-
resolveExternalUri(resource: URI, options?: OpenOptions): Promise<{
|
|
1142
|
-
resolved: URI;
|
|
1143
|
-
dispose(): void;
|
|
1144
|
-
} | undefined>;
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
declare const IOpenerService: ServiceIdentifier<IOpenerService>;
|
|
1148
|
-
interface IOpenerService {
|
|
1149
|
-
readonly _serviceBrand: undefined;
|
|
1150
|
-
/**
|
|
1151
|
-
* Register a participant that can handle the open() call.
|
|
1152
|
-
*/
|
|
1153
|
-
registerOpener(opener: IOpener): IDisposable;
|
|
1154
|
-
/**
|
|
1155
|
-
* Register a participant that can validate if the URI resource be opened.
|
|
1156
|
-
* Validators are run before openers.
|
|
1157
|
-
*/
|
|
1158
|
-
registerValidator(validator: IValidator): IDisposable;
|
|
1159
|
-
/**
|
|
1160
|
-
* Register a participant that can resolve an external URI resource to be opened.
|
|
1161
|
-
*/
|
|
1162
|
-
registerExternalUriResolver(resolver: IExternalUriResolver): IDisposable;
|
|
1163
|
-
/**
|
|
1164
|
-
* Sets the handler for opening externally. If not provided,
|
|
1165
|
-
* a default handler will be used.
|
|
1166
|
-
*/
|
|
1167
|
-
setDefaultExternalOpener(opener: IExternalOpener): void;
|
|
1168
|
-
/**
|
|
1169
|
-
* Registers a new opener external resources openers.
|
|
1170
|
-
*/
|
|
1171
|
-
registerExternalOpener(opener: IExternalOpener): IDisposable;
|
|
1172
|
-
/**
|
|
1173
|
-
* Opens a resource, like a webaddress, a document uri, or executes command.
|
|
1174
|
-
*
|
|
1175
|
-
* @param resource A resource
|
|
1176
|
-
* @return A promise that resolves when the opening is done.
|
|
1177
|
-
*/
|
|
1178
|
-
open(resource: URI | string, options?: OpenInternalOptions | OpenExternalOptions): Promise<boolean>;
|
|
1179
|
-
/**
|
|
1180
|
-
* Resolve a resource to its external form.
|
|
1181
|
-
* @throws whenever resolvers couldn't resolve this resource externally.
|
|
1182
|
-
*/
|
|
1183
|
-
resolveExternalUri(resource: URI, options?: ResolveExternalUriOptions): Promise<IResolvedExternalUri>;
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
interface IKeyboardEvent {
|
|
1187
|
-
readonly _standardKeyboardEventBrand: true;
|
|
1188
|
-
readonly browserEvent: KeyboardEvent;
|
|
1189
|
-
readonly target: HTMLElement;
|
|
1190
|
-
readonly ctrlKey: boolean;
|
|
1191
|
-
readonly shiftKey: boolean;
|
|
1192
|
-
readonly altKey: boolean;
|
|
1193
|
-
readonly metaKey: boolean;
|
|
1194
|
-
readonly altGraphKey: boolean;
|
|
1195
|
-
readonly keyCode: KeyCode;
|
|
1196
|
-
readonly code: string;
|
|
1197
|
-
/**
|
|
1198
|
-
* @internal
|
|
1199
|
-
*/
|
|
1200
|
-
toKeyCodeChord(): KeyCodeChord;
|
|
1201
|
-
equals(keybinding: number): boolean;
|
|
1202
|
-
preventDefault(): void;
|
|
1203
|
-
stopPropagation(): void;
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
interface IMouseEvent {
|
|
1207
|
-
readonly browserEvent: MouseEvent;
|
|
1208
|
-
readonly leftButton: boolean;
|
|
1209
|
-
readonly middleButton: boolean;
|
|
1210
|
-
readonly rightButton: boolean;
|
|
1211
|
-
readonly buttons: number;
|
|
1212
|
-
readonly target: HTMLElement;
|
|
1213
|
-
readonly detail: number;
|
|
1214
|
-
readonly posx: number;
|
|
1215
|
-
readonly posy: number;
|
|
1216
|
-
readonly ctrlKey: boolean;
|
|
1217
|
-
readonly shiftKey: boolean;
|
|
1218
|
-
readonly altKey: boolean;
|
|
1219
|
-
readonly metaKey: boolean;
|
|
1220
|
-
readonly timestamp: number;
|
|
1221
|
-
preventDefault(): void;
|
|
1222
|
-
stopPropagation(): void;
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
interface IDimension {
|
|
1226
|
-
readonly width: number;
|
|
1227
|
-
readonly height: number;
|
|
1228
|
-
}
|
|
1229
|
-
declare class Dimension implements IDimension {
|
|
1230
|
-
readonly width: number;
|
|
1231
|
-
readonly height: number;
|
|
1232
|
-
static readonly None: Dimension;
|
|
1233
|
-
constructor(width: number, height: number);
|
|
1234
|
-
with(width?: number, height?: number): Dimension;
|
|
1235
|
-
static is(obj: unknown): obj is IDimension;
|
|
1236
|
-
static lift(obj: IDimension): Dimension;
|
|
1237
|
-
static equals(a: Dimension | undefined, b: Dimension | undefined): boolean;
|
|
1238
|
-
}
|
|
1239
|
-
interface IDomPosition {
|
|
1240
|
-
readonly left: number;
|
|
1241
|
-
readonly top: number;
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
interface ILayoutOffsetInfo {
|
|
1245
|
-
/**
|
|
1246
|
-
* Generic top offset
|
|
1247
|
-
*/
|
|
1248
|
-
readonly top: number;
|
|
1249
|
-
/**
|
|
1250
|
-
* Quick pick specific top offset.
|
|
1251
|
-
*/
|
|
1252
|
-
readonly quickPickTop: number;
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
declare const ILayoutService: ServiceIdentifier<ILayoutService>;
|
|
1256
|
-
interface ILayoutService {
|
|
1257
|
-
readonly _serviceBrand: undefined;
|
|
1258
|
-
/**
|
|
1259
|
-
* The dimensions of the container.
|
|
1260
|
-
*/
|
|
1261
|
-
readonly dimension: IDimension;
|
|
1262
|
-
/**
|
|
1263
|
-
* Does the application have a single container?
|
|
1264
|
-
*/
|
|
1265
|
-
readonly hasContainer: boolean;
|
|
1266
|
-
/**
|
|
1267
|
-
* Container of the application.
|
|
1268
|
-
*
|
|
1269
|
-
* **NOTE**: In the standalone editor case, multiple editors can be created on a page.
|
|
1270
|
-
* Therefore, in the standalone editor case, there are multiple containers, not just
|
|
1271
|
-
* a single one. If you ship code that needs a "container" for the standalone editor,
|
|
1272
|
-
* please use `ICodeEditorService` to get the current focused code editor and use its
|
|
1273
|
-
* container if necessary. You can also instantiate `EditorScopedLayoutService`
|
|
1274
|
-
* which implements `ILayoutService` but is not a part of the service collection because
|
|
1275
|
-
* it is code editor instance specific.
|
|
1276
|
-
*
|
|
1277
|
-
*/
|
|
1278
|
-
readonly container: HTMLElement;
|
|
1279
|
-
/**
|
|
1280
|
-
* An offset to use for positioning elements inside the container.
|
|
1281
|
-
*/
|
|
1282
|
-
readonly offset: ILayoutOffsetInfo;
|
|
1283
|
-
/**
|
|
1284
|
-
* An event that is emitted when the container is layed out. The
|
|
1285
|
-
* event carries the dimensions of the container as part of it.
|
|
1286
|
-
*/
|
|
1287
|
-
readonly onDidLayout: Event$1<IDimension>;
|
|
1288
|
-
/**
|
|
1289
|
-
* Focus the primary component of the container.
|
|
1290
|
-
*/
|
|
1291
|
-
focus(): void;
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
type MementoObject = {
|
|
1295
|
-
[key: string]: any;
|
|
1296
|
-
};
|
|
1297
|
-
|
|
1298
|
-
declare class Component extends Themable {
|
|
1299
|
-
private readonly id;
|
|
1300
|
-
private readonly memento;
|
|
1301
|
-
constructor(id: string, themeService: IThemeService, storageService: IStorageService);
|
|
1302
|
-
getId(): string;
|
|
1303
|
-
protected getMemento(scope: StorageScope, target: StorageTarget): MementoObject;
|
|
1304
|
-
protected saveState(): void;
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
/**
|
|
1308
|
-
* A vertical sash layout provider provides position and height for a sash.
|
|
1309
|
-
*/
|
|
1310
|
-
interface IVerticalSashLayoutProvider {
|
|
1311
|
-
getVerticalSashLeft(sash: Sash): number;
|
|
1312
|
-
getVerticalSashTop?(sash: Sash): number;
|
|
1313
|
-
getVerticalSashHeight?(sash: Sash): number;
|
|
1314
|
-
}
|
|
1315
|
-
/**
|
|
1316
|
-
* A vertical sash layout provider provides position and width for a sash.
|
|
1317
|
-
*/
|
|
1318
|
-
interface IHorizontalSashLayoutProvider {
|
|
1319
|
-
getHorizontalSashTop(sash: Sash): number;
|
|
1320
|
-
getHorizontalSashLeft?(sash: Sash): number;
|
|
1321
|
-
getHorizontalSashWidth?(sash: Sash): number;
|
|
1322
|
-
}
|
|
1323
|
-
interface ISashEvent {
|
|
1324
|
-
readonly startX: number;
|
|
1325
|
-
readonly currentX: number;
|
|
1326
|
-
readonly startY: number;
|
|
1327
|
-
readonly currentY: number;
|
|
1328
|
-
readonly altKey: boolean;
|
|
1329
|
-
}
|
|
1330
|
-
declare enum OrthogonalEdge {
|
|
1331
|
-
North = "north",
|
|
1332
|
-
South = "south",
|
|
1333
|
-
East = "east",
|
|
1334
|
-
West = "west"
|
|
1335
|
-
}
|
|
1336
|
-
interface IBoundarySashes {
|
|
1337
|
-
readonly top?: Sash;
|
|
1338
|
-
readonly right?: Sash;
|
|
1339
|
-
readonly bottom?: Sash;
|
|
1340
|
-
readonly left?: Sash;
|
|
1341
|
-
}
|
|
1342
|
-
interface ISashOptions {
|
|
1343
|
-
/**
|
|
1344
|
-
* Whether a sash is horizontal or vertical.
|
|
1345
|
-
*/
|
|
1346
|
-
readonly orientation: Orientation;
|
|
1347
|
-
/**
|
|
1348
|
-
* The width or height of a vertical or horizontal sash, respectively.
|
|
1349
|
-
*/
|
|
1350
|
-
readonly size?: number;
|
|
1351
|
-
/**
|
|
1352
|
-
* A reference to another sash, perpendicular to this one, which
|
|
1353
|
-
* aligns at the start of this one. A corner sash will be created
|
|
1354
|
-
* automatically at that location.
|
|
1355
|
-
*
|
|
1356
|
-
* The start of a horizontal sash is its left-most position.
|
|
1357
|
-
* The start of a vertical sash is its top-most position.
|
|
1358
|
-
*/
|
|
1359
|
-
readonly orthogonalStartSash?: Sash;
|
|
1360
|
-
/**
|
|
1361
|
-
* A reference to another sash, perpendicular to this one, which
|
|
1362
|
-
* aligns at the end of this one. A corner sash will be created
|
|
1363
|
-
* automatically at that location.
|
|
1364
|
-
*
|
|
1365
|
-
* The end of a horizontal sash is its right-most position.
|
|
1366
|
-
* The end of a vertical sash is its bottom-most position.
|
|
1367
|
-
*/
|
|
1368
|
-
readonly orthogonalEndSash?: Sash;
|
|
1369
|
-
/**
|
|
1370
|
-
* Provides a hint as to what mouse cursor to use whenever the user
|
|
1371
|
-
* hovers over a corner sash provided by this and an orthogonal sash.
|
|
1372
|
-
*/
|
|
1373
|
-
readonly orthogonalEdge?: OrthogonalEdge;
|
|
1374
|
-
}
|
|
1375
|
-
interface IVerticalSashOptions extends ISashOptions {
|
|
1376
|
-
readonly orientation: Orientation.VERTICAL;
|
|
1377
|
-
}
|
|
1378
|
-
interface IHorizontalSashOptions extends ISashOptions {
|
|
1379
|
-
readonly orientation: Orientation.HORIZONTAL;
|
|
1380
|
-
}
|
|
1381
|
-
declare const enum Orientation {
|
|
1382
|
-
VERTICAL = 0,
|
|
1383
|
-
HORIZONTAL = 1
|
|
1384
|
-
}
|
|
1385
|
-
declare const enum SashState {
|
|
1386
|
-
/**
|
|
1387
|
-
* Disable any UI interaction.
|
|
1388
|
-
*/
|
|
1389
|
-
Disabled = 0,
|
|
1390
|
-
/**
|
|
1391
|
-
* Allow dragging down or to the right, depending on the sash orientation.
|
|
1392
|
-
*
|
|
1393
|
-
* Some OSs allow customizing the mouse cursor differently whenever
|
|
1394
|
-
* some resizable component can't be any smaller, but can be larger.
|
|
1395
|
-
*/
|
|
1396
|
-
AtMinimum = 1,
|
|
1397
|
-
/**
|
|
1398
|
-
* Allow dragging up or to the left, depending on the sash orientation.
|
|
1399
|
-
*
|
|
1400
|
-
* Some OSs allow customizing the mouse cursor differently whenever
|
|
1401
|
-
* some resizable component can't be any larger, but can be smaller.
|
|
1402
|
-
*/
|
|
1403
|
-
AtMaximum = 2,
|
|
1404
|
-
/**
|
|
1405
|
-
* Enable dragging.
|
|
1406
|
-
*/
|
|
1407
|
-
Enabled = 3
|
|
1408
|
-
}
|
|
1409
|
-
/**
|
|
1410
|
-
* The {@link Sash} is the UI component which allows the user to resize other
|
|
1411
|
-
* components. It's usually an invisible horizontal or vertical line which, when
|
|
1412
|
-
* hovered, becomes highlighted and can be dragged along the perpendicular dimension
|
|
1413
|
-
* to its direction.
|
|
1414
|
-
*
|
|
1415
|
-
* Features:
|
|
1416
|
-
* - Touch event handling
|
|
1417
|
-
* - Corner sash support
|
|
1418
|
-
* - Hover with different mouse cursor support
|
|
1419
|
-
* - Configurable hover size
|
|
1420
|
-
* - Linked sash support, for 2x2 corner sashes
|
|
1421
|
-
*/
|
|
1422
|
-
declare class Sash extends Disposable {
|
|
1423
|
-
private el;
|
|
1424
|
-
private layoutProvider;
|
|
1425
|
-
private orientation;
|
|
1426
|
-
private size;
|
|
1427
|
-
private hoverDelay;
|
|
1428
|
-
private hoverDelayer;
|
|
1429
|
-
private _state;
|
|
1430
|
-
private readonly onDidEnablementChange;
|
|
1431
|
-
private readonly _onDidStart;
|
|
1432
|
-
private readonly _onDidChange;
|
|
1433
|
-
private readonly _onDidReset;
|
|
1434
|
-
private readonly _onDidEnd;
|
|
1435
|
-
private readonly orthogonalStartSashDisposables;
|
|
1436
|
-
private _orthogonalStartSash;
|
|
1437
|
-
private readonly orthogonalStartDragHandleDisposables;
|
|
1438
|
-
private _orthogonalStartDragHandle;
|
|
1439
|
-
private readonly orthogonalEndSashDisposables;
|
|
1440
|
-
private _orthogonalEndSash;
|
|
1441
|
-
private readonly orthogonalEndDragHandleDisposables;
|
|
1442
|
-
private _orthogonalEndDragHandle;
|
|
1443
|
-
get state(): SashState;
|
|
1444
|
-
get orthogonalStartSash(): Sash | undefined;
|
|
1445
|
-
get orthogonalEndSash(): Sash | undefined;
|
|
1446
|
-
/**
|
|
1447
|
-
* The state of a sash defines whether it can be interacted with by the user
|
|
1448
|
-
* as well as what mouse cursor to use, when hovered.
|
|
1449
|
-
*/
|
|
1450
|
-
set state(state: SashState);
|
|
1451
|
-
/**
|
|
1452
|
-
* An event which fires whenever the user starts dragging this sash.
|
|
1453
|
-
*/
|
|
1454
|
-
readonly onDidStart: Event$1<ISashEvent>;
|
|
1455
|
-
/**
|
|
1456
|
-
* An event which fires whenever the user moves the mouse while
|
|
1457
|
-
* dragging this sash.
|
|
1458
|
-
*/
|
|
1459
|
-
readonly onDidChange: Event$1<ISashEvent>;
|
|
1460
|
-
/**
|
|
1461
|
-
* An event which fires whenever the user double clicks this sash.
|
|
1462
|
-
*/
|
|
1463
|
-
readonly onDidReset: Event$1<void>;
|
|
1464
|
-
/**
|
|
1465
|
-
* An event which fires whenever the user stops dragging this sash.
|
|
1466
|
-
*/
|
|
1467
|
-
readonly onDidEnd: Event$1<void>;
|
|
1468
|
-
/**
|
|
1469
|
-
* A linked sash will be forwarded the same user interactions and events
|
|
1470
|
-
* so it moves exactly the same way as this sash.
|
|
1471
|
-
*
|
|
1472
|
-
* Useful in 2x2 grids. Not meant for widespread usage.
|
|
1473
|
-
*/
|
|
1474
|
-
linkedSash: Sash | undefined;
|
|
1475
|
-
/**
|
|
1476
|
-
* A reference to another sash, perpendicular to this one, which
|
|
1477
|
-
* aligns at the start of this one. A corner sash will be created
|
|
1478
|
-
* automatically at that location.
|
|
1479
|
-
*
|
|
1480
|
-
* The start of a horizontal sash is its left-most position.
|
|
1481
|
-
* The start of a vertical sash is its top-most position.
|
|
1482
|
-
*/
|
|
1483
|
-
set orthogonalStartSash(sash: Sash | undefined);
|
|
1484
|
-
/**
|
|
1485
|
-
* A reference to another sash, perpendicular to this one, which
|
|
1486
|
-
* aligns at the end of this one. A corner sash will be created
|
|
1487
|
-
* automatically at that location.
|
|
1488
|
-
*
|
|
1489
|
-
* The end of a horizontal sash is its right-most position.
|
|
1490
|
-
* The end of a vertical sash is its bottom-most position.
|
|
1491
|
-
*/
|
|
1492
|
-
set orthogonalEndSash(sash: Sash | undefined);
|
|
1493
|
-
/**
|
|
1494
|
-
* Create a new vertical sash.
|
|
1495
|
-
*
|
|
1496
|
-
* @param container A DOM node to append the sash to.
|
|
1497
|
-
* @param verticalLayoutProvider A vertical layout provider.
|
|
1498
|
-
* @param options The options.
|
|
1499
|
-
*/
|
|
1500
|
-
constructor(container: HTMLElement, verticalLayoutProvider: IVerticalSashLayoutProvider, options: IVerticalSashOptions);
|
|
1501
|
-
/**
|
|
1502
|
-
* Create a new horizontal sash.
|
|
1503
|
-
*
|
|
1504
|
-
* @param container A DOM node to append the sash to.
|
|
1505
|
-
* @param horizontalLayoutProvider A horizontal layout provider.
|
|
1506
|
-
* @param options The options.
|
|
1507
|
-
*/
|
|
1508
|
-
constructor(container: HTMLElement, horizontalLayoutProvider: IHorizontalSashLayoutProvider, options: IHorizontalSashOptions);
|
|
1509
|
-
private onPointerStart;
|
|
1510
|
-
private onPointerDoublePress;
|
|
1511
|
-
private static onMouseEnter;
|
|
1512
|
-
private static onMouseLeave;
|
|
1513
|
-
/**
|
|
1514
|
-
* Forcefully stop any user interactions with this sash.
|
|
1515
|
-
* Useful when hiding a parent component, while the user is still
|
|
1516
|
-
* interacting with the sash.
|
|
1517
|
-
*/
|
|
1518
|
-
clearSashHoverState(): void;
|
|
1519
|
-
/**
|
|
1520
|
-
* Layout the sash. The sash will size and position itself
|
|
1521
|
-
* based on its provided {@link ISashLayoutProvider layout provider}.
|
|
1522
|
-
*/
|
|
1523
|
-
layout(): void;
|
|
1524
|
-
private getOrthogonalSash;
|
|
1525
|
-
dispose(): void;
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
|
-
declare const enum LayoutPriority {
|
|
1529
|
-
Normal = 0,
|
|
1530
|
-
Low = 1,
|
|
1531
|
-
High = 2
|
|
1532
|
-
}
|
|
1533
|
-
/**
|
|
1534
|
-
* The interface to implement for views within a {@link SplitView}.
|
|
1535
|
-
*
|
|
1536
|
-
* An optional {@link TLayoutContext layout context type} may be used in order to
|
|
1537
|
-
* pass along layout contextual data from the {@link SplitView.layout} method down
|
|
1538
|
-
* to each view's {@link IView.layout} calls.
|
|
1539
|
-
*/
|
|
1540
|
-
interface IView$2<TLayoutContext = undefined> {
|
|
1541
|
-
/**
|
|
1542
|
-
* The DOM element for this view.
|
|
1543
|
-
*/
|
|
1544
|
-
readonly element: HTMLElement;
|
|
1545
|
-
/**
|
|
1546
|
-
* A minimum size for this view.
|
|
1547
|
-
*
|
|
1548
|
-
* @remarks If none, set it to `0`.
|
|
1549
|
-
*/
|
|
1550
|
-
readonly minimumSize: number;
|
|
1551
|
-
/**
|
|
1552
|
-
* A maximum size for this view.
|
|
1553
|
-
*
|
|
1554
|
-
* @remarks If none, set it to `Number.POSITIVE_INFINITY`.
|
|
1555
|
-
*/
|
|
1556
|
-
readonly maximumSize: number;
|
|
1557
|
-
/**
|
|
1558
|
-
* The priority of the view when the {@link SplitView.resize layout} algorithm
|
|
1559
|
-
* runs. Views with higher priority will be resized first.
|
|
1560
|
-
*
|
|
1561
|
-
* @remarks Only used when `proportionalLayout` is false.
|
|
1562
|
-
*/
|
|
1563
|
-
readonly priority?: LayoutPriority;
|
|
1564
|
-
/**
|
|
1565
|
-
* If the {@link SplitView} supports {@link ISplitViewOptions.proportionalLayout proportional layout},
|
|
1566
|
-
* this property allows for finer control over the proportional layout algorithm, per view.
|
|
1567
|
-
*
|
|
1568
|
-
* @defaultValue `true`
|
|
1569
|
-
*/
|
|
1570
|
-
readonly proportionalLayout?: boolean;
|
|
1571
|
-
/**
|
|
1572
|
-
* Whether the view will snap whenever the user reaches its minimum size or
|
|
1573
|
-
* attempts to grow it beyond the minimum size.
|
|
1574
|
-
*
|
|
1575
|
-
* @defaultValue `false`
|
|
1576
|
-
*/
|
|
1577
|
-
readonly snap?: boolean;
|
|
1578
|
-
/**
|
|
1579
|
-
* View instances are supposed to fire the {@link IView.onDidChange} event whenever
|
|
1580
|
-
* any of the constraint properties have changed:
|
|
1581
|
-
*
|
|
1582
|
-
* - {@link IView.minimumSize}
|
|
1583
|
-
* - {@link IView.maximumSize}
|
|
1584
|
-
* - {@link IView.priority}
|
|
1585
|
-
* - {@link IView.snap}
|
|
1586
|
-
*
|
|
1587
|
-
* The SplitView will relayout whenever that happens. The event can optionally emit
|
|
1588
|
-
* the view's preferred size for that relayout.
|
|
1589
|
-
*/
|
|
1590
|
-
readonly onDidChange: Event$1<number | undefined>;
|
|
1591
|
-
/**
|
|
1592
|
-
* This will be called by the {@link SplitView} during layout. A view meant to
|
|
1593
|
-
* pass along the layout information down to its descendants.
|
|
1594
|
-
*
|
|
1595
|
-
* @param size The size of this view, in pixels.
|
|
1596
|
-
* @param offset The offset of this view, relative to the start of the {@link SplitView}.
|
|
1597
|
-
* @param context The optional {@link IView layout context} passed to {@link SplitView.layout}.
|
|
1598
|
-
*/
|
|
1599
|
-
layout(size: number, offset: number, context: TLayoutContext | undefined): void;
|
|
1600
|
-
/**
|
|
1601
|
-
* This will be called by the {@link SplitView} whenever this view is made
|
|
1602
|
-
* visible or hidden.
|
|
1603
|
-
*
|
|
1604
|
-
* @param visible Whether the view becomes visible.
|
|
1605
|
-
*/
|
|
1606
|
-
setVisible?(visible: boolean): void;
|
|
1607
|
-
}
|
|
1608
|
-
|
|
1609
|
-
interface IViewSize {
|
|
1610
|
-
readonly width: number;
|
|
1611
|
-
readonly height: number;
|
|
1612
|
-
}
|
|
1613
|
-
/**
|
|
1614
|
-
* The interface to implement for views within a {@link GridView}.
|
|
1615
|
-
*/
|
|
1616
|
-
interface IView$1 {
|
|
1617
|
-
/**
|
|
1618
|
-
* The DOM element for this view.
|
|
1619
|
-
*/
|
|
1620
|
-
readonly element: HTMLElement;
|
|
1621
|
-
/**
|
|
1622
|
-
* A minimum width for this view.
|
|
1623
|
-
*
|
|
1624
|
-
* @remarks If none, set it to `0`.
|
|
1625
|
-
*/
|
|
1626
|
-
readonly minimumWidth: number;
|
|
1627
|
-
/**
|
|
1628
|
-
* A minimum width for this view.
|
|
1629
|
-
*
|
|
1630
|
-
* @remarks If none, set it to `Number.POSITIVE_INFINITY`.
|
|
1631
|
-
*/
|
|
1632
|
-
readonly maximumWidth: number;
|
|
1633
|
-
/**
|
|
1634
|
-
* A minimum height for this view.
|
|
1635
|
-
*
|
|
1636
|
-
* @remarks If none, set it to `0`.
|
|
1637
|
-
*/
|
|
1638
|
-
readonly minimumHeight: number;
|
|
1639
|
-
/**
|
|
1640
|
-
* A minimum height for this view.
|
|
1641
|
-
*
|
|
1642
|
-
* @remarks If none, set it to `Number.POSITIVE_INFINITY`.
|
|
1643
|
-
*/
|
|
1644
|
-
readonly maximumHeight: number;
|
|
1645
|
-
/**
|
|
1646
|
-
* The priority of the view when the {@link GridView} layout algorithm
|
|
1647
|
-
* runs. Views with higher priority will be resized first.
|
|
1648
|
-
*
|
|
1649
|
-
* @remarks Only used when `proportionalLayout` is false.
|
|
1650
|
-
*/
|
|
1651
|
-
readonly priority?: LayoutPriority;
|
|
1652
|
-
/**
|
|
1653
|
-
* If the {@link GridView} supports proportional layout,
|
|
1654
|
-
* this property allows for finer control over the proportional layout algorithm, per view.
|
|
1655
|
-
*
|
|
1656
|
-
* @defaultValue `true`
|
|
1657
|
-
*/
|
|
1658
|
-
readonly proportionalLayout?: boolean;
|
|
1659
|
-
/**
|
|
1660
|
-
* Whether the view will snap whenever the user reaches its minimum size or
|
|
1661
|
-
* attempts to grow it beyond the minimum size.
|
|
1662
|
-
*
|
|
1663
|
-
* @defaultValue `false`
|
|
1664
|
-
*/
|
|
1665
|
-
readonly snap?: boolean;
|
|
1666
|
-
/**
|
|
1667
|
-
* View instances are supposed to fire this event whenever any of the constraint
|
|
1668
|
-
* properties have changed:
|
|
1669
|
-
*
|
|
1670
|
-
* - {@link IView.minimumWidth}
|
|
1671
|
-
* - {@link IView.maximumWidth}
|
|
1672
|
-
* - {@link IView.minimumHeight}
|
|
1673
|
-
* - {@link IView.maximumHeight}
|
|
1674
|
-
* - {@link IView.priority}
|
|
1675
|
-
* - {@link IView.snap}
|
|
1676
|
-
*
|
|
1677
|
-
* The {@link GridView} will relayout whenever that happens. The event can
|
|
1678
|
-
* optionally emit the view's preferred size for that relayout.
|
|
1679
|
-
*/
|
|
1680
|
-
readonly onDidChange: Event$1<IViewSize | undefined>;
|
|
1681
|
-
/**
|
|
1682
|
-
* This will be called by the {@link GridView} during layout. A view meant to
|
|
1683
|
-
* pass along the layout information down to its descendants.
|
|
1684
|
-
*/
|
|
1685
|
-
layout(width: number, height: number, top: number, left: number): void;
|
|
1686
|
-
/**
|
|
1687
|
-
* This will be called by the {@link GridView} whenever this view is made
|
|
1688
|
-
* visible or hidden.
|
|
1689
|
-
*
|
|
1690
|
-
* @param visible Whether the view becomes visible.
|
|
1691
|
-
*/
|
|
1692
|
-
setVisible?(visible: boolean): void;
|
|
1693
|
-
/**
|
|
1694
|
-
* This will be called by the {@link GridView} whenever this view is on
|
|
1695
|
-
* an edge of the grid and the grid's
|
|
1696
|
-
* {@link GridView.boundarySashes boundary sashes} change.
|
|
1697
|
-
*/
|
|
1698
|
-
setBoundarySashes?(sashes: IBoundarySashes): void;
|
|
1699
|
-
}
|
|
1700
|
-
|
|
1701
|
-
declare const enum Direction {
|
|
1702
|
-
Up = 0,
|
|
1703
|
-
Down = 1,
|
|
1704
|
-
Left = 2,
|
|
1705
|
-
Right = 3
|
|
1706
|
-
}
|
|
1707
|
-
/**
|
|
1708
|
-
* The interface to implement for views within a {@link Grid}.
|
|
1709
|
-
*/
|
|
1710
|
-
interface IView extends IView$1 {
|
|
1711
|
-
/**
|
|
1712
|
-
* The preferred width for when the user double clicks a sash
|
|
1713
|
-
* adjacent to this view.
|
|
1714
|
-
*/
|
|
1715
|
-
readonly preferredWidth?: number;
|
|
1716
|
-
/**
|
|
1717
|
-
* The preferred height for when the user double clicks a sash
|
|
1718
|
-
* adjacent to this view.
|
|
1719
|
-
*/
|
|
1720
|
-
readonly preferredHeight?: number;
|
|
1721
|
-
}
|
|
1722
|
-
interface ISerializableView extends IView {
|
|
1723
|
-
toJSON(): object;
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
|
-
interface IPartOptions {
|
|
1727
|
-
readonly hasTitle?: boolean;
|
|
1728
|
-
readonly borderWidth?: () => number;
|
|
1729
|
-
}
|
|
1730
|
-
interface ILayoutContentResult {
|
|
1731
|
-
readonly titleSize: IDimension;
|
|
1732
|
-
readonly contentSize: IDimension;
|
|
1733
|
-
}
|
|
1734
|
-
/**
|
|
1735
|
-
* Parts are layed out in the workbench and have their own layout that
|
|
1736
|
-
* arranges an optional title and mandatory content area to show content.
|
|
1737
|
-
*/
|
|
1738
|
-
declare abstract class Part extends Component implements ISerializableView {
|
|
1739
|
-
private options;
|
|
1740
|
-
protected readonly layoutService: IWorkbenchLayoutService;
|
|
1741
|
-
private _dimension;
|
|
1742
|
-
get dimension(): Dimension | undefined;
|
|
1743
|
-
protected _onDidVisibilityChange: Emitter<boolean>;
|
|
1744
|
-
readonly onDidVisibilityChange: Event$1<boolean>;
|
|
1745
|
-
private parent;
|
|
1746
|
-
private titleArea;
|
|
1747
|
-
private contentArea;
|
|
1748
|
-
private partLayout;
|
|
1749
|
-
constructor(id: string, options: IPartOptions, themeService: IThemeService, storageService: IStorageService, layoutService: IWorkbenchLayoutService);
|
|
1750
|
-
protected onThemeChange(theme: IColorTheme): void;
|
|
1751
|
-
updateStyles(): void;
|
|
1752
|
-
/**
|
|
1753
|
-
* Note: Clients should not call this method, the workbench calls this
|
|
1754
|
-
* method. Calling it otherwise may result in unexpected behavior.
|
|
1755
|
-
*
|
|
1756
|
-
* Called to create title and content area of the part.
|
|
1757
|
-
*/
|
|
1758
|
-
create(parent: HTMLElement, options?: object): void;
|
|
1759
|
-
/**
|
|
1760
|
-
* Returns the overall part container.
|
|
1761
|
-
*/
|
|
1762
|
-
getContainer(): HTMLElement | undefined;
|
|
1763
|
-
/**
|
|
1764
|
-
* Subclasses override to provide a title area implementation.
|
|
1765
|
-
*/
|
|
1766
|
-
protected createTitleArea(parent: HTMLElement, options?: object): HTMLElement | undefined;
|
|
1767
|
-
/**
|
|
1768
|
-
* Returns the title area container.
|
|
1769
|
-
*/
|
|
1770
|
-
protected getTitleArea(): HTMLElement | undefined;
|
|
1771
|
-
/**
|
|
1772
|
-
* Subclasses override to provide a content area implementation.
|
|
1773
|
-
*/
|
|
1774
|
-
protected createContentArea(parent: HTMLElement, options?: object): HTMLElement | undefined;
|
|
1775
|
-
/**
|
|
1776
|
-
* Returns the content area container.
|
|
1777
|
-
*/
|
|
1778
|
-
protected getContentArea(): HTMLElement | undefined;
|
|
1779
|
-
/**
|
|
1780
|
-
* Layout title and content area in the given dimension.
|
|
1781
|
-
*/
|
|
1782
|
-
protected layoutContents(width: number, height: number): ILayoutContentResult;
|
|
1783
|
-
protected _onDidChange: Emitter<IViewSize | undefined>;
|
|
1784
|
-
get onDidChange(): Event$1<IViewSize | undefined>;
|
|
1785
|
-
element: HTMLElement;
|
|
1786
|
-
abstract minimumWidth: number;
|
|
1787
|
-
abstract maximumWidth: number;
|
|
1788
|
-
abstract minimumHeight: number;
|
|
1789
|
-
abstract maximumHeight: number;
|
|
1790
|
-
layout(width: number, height: number, _top: number, _left: number): void;
|
|
1791
|
-
setVisible(visible: boolean): void;
|
|
1792
|
-
abstract toJSON(): object;
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
|
-
declare const enum Parts {
|
|
1796
|
-
TITLEBAR_PART = "workbench.parts.titlebar",
|
|
1797
|
-
BANNER_PART = "workbench.parts.banner",
|
|
1798
|
-
ACTIVITYBAR_PART = "workbench.parts.activitybar",
|
|
1799
|
-
SIDEBAR_PART = "workbench.parts.sidebar",
|
|
1800
|
-
PANEL_PART = "workbench.parts.panel",
|
|
1801
|
-
AUXILIARYBAR_PART = "workbench.parts.auxiliarybar",
|
|
1802
|
-
EDITOR_PART = "workbench.parts.editor",
|
|
1803
|
-
STATUSBAR_PART = "workbench.parts.statusbar"
|
|
1804
|
-
}
|
|
1805
|
-
declare const enum Position {
|
|
1806
|
-
LEFT = 0,
|
|
1807
|
-
RIGHT = 1,
|
|
1808
|
-
BOTTOM = 2
|
|
1809
|
-
}
|
|
1810
|
-
type PanelAlignment = 'left' | 'center' | 'right' | 'justify';
|
|
1811
|
-
|
|
1812
|
-
declare const IWorkbenchLayoutService: ServiceIdentifier<IWorkbenchLayoutService>;
|
|
1813
|
-
interface IWorkbenchLayoutService extends ILayoutService {
|
|
1814
|
-
readonly _serviceBrand: undefined;
|
|
1815
|
-
/**
|
|
1816
|
-
* Emits when the zen mode is enabled or disabled.
|
|
1817
|
-
*/
|
|
1818
|
-
readonly onDidChangeZenMode: Event$1<boolean>;
|
|
1819
|
-
/**
|
|
1820
|
-
* Emits when fullscreen is enabled or disabled.
|
|
1821
|
-
*/
|
|
1822
|
-
readonly onDidChangeFullscreen: Event$1<boolean>;
|
|
1823
|
-
/**
|
|
1824
|
-
* Emits when the window is maximized or unmaximized.
|
|
1825
|
-
*/
|
|
1826
|
-
readonly onDidChangeWindowMaximized: Event$1<boolean>;
|
|
1827
|
-
/**
|
|
1828
|
-
* Emits when centered layout is enabled or disabled.
|
|
1829
|
-
*/
|
|
1830
|
-
readonly onDidChangeCenteredLayout: Event$1<boolean>;
|
|
1831
|
-
readonly onDidChangePanelPosition: Event$1<string>;
|
|
1832
|
-
/**
|
|
1833
|
-
* Emit when panel alignment changes.
|
|
1834
|
-
*/
|
|
1835
|
-
readonly onDidChangePanelAlignment: Event$1<PanelAlignment>;
|
|
1836
|
-
/**
|
|
1837
|
-
* Emit when part visibility changes
|
|
1838
|
-
*/
|
|
1839
|
-
readonly onDidChangePartVisibility: Event$1<void>;
|
|
1840
|
-
/**
|
|
1841
|
-
* Emit when notifications (toasts or center) visibility changes.
|
|
1842
|
-
*/
|
|
1843
|
-
readonly onDidChangeNotificationsVisibility: Event$1<boolean>;
|
|
1844
|
-
/**
|
|
1845
|
-
* True if a default layout with default editors was applied at startup
|
|
1846
|
-
*/
|
|
1847
|
-
readonly openedDefaultEditors: boolean;
|
|
1848
|
-
/**
|
|
1849
|
-
* Run a layout of the workbench.
|
|
1850
|
-
*/
|
|
1851
|
-
layout(): void;
|
|
1852
|
-
/**
|
|
1853
|
-
* Asks the part service if all parts have been fully restored. For editor part
|
|
1854
|
-
* this means that the contents of visible editors have loaded.
|
|
1855
|
-
*/
|
|
1856
|
-
isRestored(): boolean;
|
|
1857
|
-
/**
|
|
1858
|
-
* A promise for to await the `isRestored()` condition to be `true`.
|
|
1859
|
-
*/
|
|
1860
|
-
readonly whenRestored: Promise<void>;
|
|
1861
|
-
/**
|
|
1862
|
-
* Returns whether the given part has the keyboard focus or not.
|
|
1863
|
-
*/
|
|
1864
|
-
hasFocus(part: Parts): boolean;
|
|
1865
|
-
/**
|
|
1866
|
-
* Focuses the part. If the part is not visible this is a noop.
|
|
1867
|
-
*/
|
|
1868
|
-
focusPart(part: Parts): void;
|
|
1869
|
-
/**
|
|
1870
|
-
* Returns the parts HTML element, if there is one.
|
|
1871
|
-
*/
|
|
1872
|
-
getContainer(part: Parts): HTMLElement | undefined;
|
|
1873
|
-
/**
|
|
1874
|
-
* Returns if the part is visible.
|
|
1875
|
-
*/
|
|
1876
|
-
isVisible(part: Parts): boolean;
|
|
1877
|
-
/**
|
|
1878
|
-
* Returns if the part is visible.
|
|
1879
|
-
*/
|
|
1880
|
-
getDimension(part: Parts): Dimension | undefined;
|
|
1881
|
-
/**
|
|
1882
|
-
* Set part hidden or not
|
|
1883
|
-
*/
|
|
1884
|
-
setPartHidden(hidden: boolean, part: Exclude<Parts, Parts.STATUSBAR_PART | Parts.TITLEBAR_PART>): void;
|
|
1885
|
-
/**
|
|
1886
|
-
* Maximizes the panel height if the panel is not already maximized.
|
|
1887
|
-
* Shrinks the panel to the default starting size if the panel is maximized.
|
|
1888
|
-
*/
|
|
1889
|
-
toggleMaximizedPanel(): void;
|
|
1890
|
-
/**
|
|
1891
|
-
* Returns true if the window has a border.
|
|
1892
|
-
*/
|
|
1893
|
-
hasWindowBorder(): boolean;
|
|
1894
|
-
/**
|
|
1895
|
-
* Returns the window border width.
|
|
1896
|
-
*/
|
|
1897
|
-
getWindowBorderWidth(): number;
|
|
1898
|
-
/**
|
|
1899
|
-
* Returns the window border radius if any.
|
|
1900
|
-
*/
|
|
1901
|
-
getWindowBorderRadius(): string | undefined;
|
|
1902
|
-
/**
|
|
1903
|
-
* Returns true if the panel is maximized.
|
|
1904
|
-
*/
|
|
1905
|
-
isPanelMaximized(): boolean;
|
|
1906
|
-
/**
|
|
1907
|
-
* Gets the current side bar position. Note that the sidebar can be hidden too.
|
|
1908
|
-
*/
|
|
1909
|
-
getSideBarPosition(): Position;
|
|
1910
|
-
/**
|
|
1911
|
-
* Toggles the menu bar visibility.
|
|
1912
|
-
*/
|
|
1913
|
-
toggleMenuBar(): void;
|
|
1914
|
-
getPanelPosition(): Position;
|
|
1915
|
-
/**
|
|
1916
|
-
* Sets the panel position.
|
|
1917
|
-
*/
|
|
1918
|
-
setPanelPosition(position: Position): void;
|
|
1919
|
-
/**
|
|
1920
|
-
* Gets the panel alignement.
|
|
1921
|
-
*/
|
|
1922
|
-
getPanelAlignment(): PanelAlignment;
|
|
1923
|
-
/**
|
|
1924
|
-
* Sets the panel alignment.
|
|
1925
|
-
*/
|
|
1926
|
-
setPanelAlignment(alignment: PanelAlignment): void;
|
|
1927
|
-
/**
|
|
1928
|
-
* Gets the maximum possible size for editor.
|
|
1929
|
-
*/
|
|
1930
|
-
getMaximumEditorDimensions(): Dimension;
|
|
1931
|
-
/**
|
|
1932
|
-
* Toggles the workbench in and out of zen mode - parts get hidden and window goes fullscreen.
|
|
1933
|
-
*/
|
|
1934
|
-
toggleZenMode(): void;
|
|
1935
|
-
/**
|
|
1936
|
-
* Returns whether the centered editor layout is active.
|
|
1937
|
-
*/
|
|
1938
|
-
isEditorLayoutCentered(): boolean;
|
|
1939
|
-
/**
|
|
1940
|
-
* Sets the workbench in and out of centered editor layout.
|
|
1941
|
-
*/
|
|
1942
|
-
centerEditorLayout(active: boolean): void;
|
|
1943
|
-
/**
|
|
1944
|
-
* Resizes currently focused part on main access
|
|
1945
|
-
*/
|
|
1946
|
-
resizePart(part: Parts, sizeChangeWidth: number, sizeChangeHeight: number): void;
|
|
1947
|
-
/**
|
|
1948
|
-
* Register a part to participate in the layout.
|
|
1949
|
-
*/
|
|
1950
|
-
registerPart(part: Part): void;
|
|
1951
|
-
/**
|
|
1952
|
-
* Returns whether the window is maximized.
|
|
1953
|
-
*/
|
|
1954
|
-
isWindowMaximized(): boolean;
|
|
1955
|
-
/**
|
|
1956
|
-
* Updates the maximized state of the window.
|
|
1957
|
-
*/
|
|
1958
|
-
updateWindowMaximizedState(maximized: boolean): void;
|
|
1959
|
-
/**
|
|
1960
|
-
* Returns the next visible view part in a given direction
|
|
1961
|
-
*/
|
|
1962
|
-
getVisibleNeighborPart(part: Parts, direction: Direction): Parts | undefined;
|
|
1963
|
-
}
|
|
1964
|
-
|
|
1965
|
-
interface IAnchor {
|
|
1966
|
-
x: number;
|
|
1967
|
-
y: number;
|
|
1968
|
-
width?: number;
|
|
1969
|
-
height?: number;
|
|
1970
|
-
}
|
|
1971
|
-
declare const enum AnchorAlignment {
|
|
1972
|
-
LEFT = 0,
|
|
1973
|
-
RIGHT = 1
|
|
1974
|
-
}
|
|
1975
|
-
declare const enum AnchorPosition {
|
|
1976
|
-
BELOW = 0,
|
|
1977
|
-
ABOVE = 1
|
|
1978
|
-
}
|
|
1979
|
-
declare const enum AnchorAxisAlignment {
|
|
1980
|
-
VERTICAL = 0,
|
|
1981
|
-
HORIZONTAL = 1
|
|
1982
|
-
}
|
|
1983
|
-
interface IDelegate {
|
|
1984
|
-
getAnchor(): HTMLElement | IAnchor;
|
|
1985
|
-
render(container: HTMLElement): IDisposable | null;
|
|
1986
|
-
focus?(): void;
|
|
1987
|
-
layout?(): void;
|
|
1988
|
-
anchorAlignment?: AnchorAlignment;
|
|
1989
|
-
anchorPosition?: AnchorPosition;
|
|
1990
|
-
anchorAxisAlignment?: AnchorAxisAlignment;
|
|
1991
|
-
canRelayout?: boolean;
|
|
1992
|
-
onDOMEvent?(e: Event, activeElement: HTMLElement): void;
|
|
1993
|
-
onHide?(data?: unknown): void;
|
|
1994
|
-
}
|
|
1995
|
-
interface IContextViewProvider {
|
|
1996
|
-
showContextView(delegate: IDelegate, container?: HTMLElement): void;
|
|
1997
|
-
hideContextView(): void;
|
|
1998
|
-
layout(): void;
|
|
1999
|
-
}
|
|
2000
|
-
|
|
2001
|
-
declare abstract class Widget extends Disposable {
|
|
2002
|
-
protected onclick(domNode: HTMLElement, listener: (e: IMouseEvent) => void): void;
|
|
2003
|
-
protected onmousedown(domNode: HTMLElement, listener: (e: IMouseEvent) => void): void;
|
|
2004
|
-
protected onmouseover(domNode: HTMLElement, listener: (e: IMouseEvent) => void): void;
|
|
2005
|
-
protected onmouseleave(domNode: HTMLElement, listener: (e: IMouseEvent) => void): void;
|
|
2006
|
-
protected onkeydown(domNode: HTMLElement, listener: (e: IKeyboardEvent) => void): void;
|
|
2007
|
-
protected onkeyup(domNode: HTMLElement, listener: (e: IKeyboardEvent) => void): void;
|
|
2008
|
-
protected oninput(domNode: HTMLElement, listener: (e: Event) => void): void;
|
|
2009
|
-
protected onblur(domNode: HTMLElement, listener: (e: Event) => void): void;
|
|
2010
|
-
protected onfocus(domNode: HTMLElement, listener: (e: Event) => void): void;
|
|
2011
|
-
protected onchange(domNode: HTMLElement, listener: (e: Event) => void): void;
|
|
2012
|
-
protected ignoreGesture(domNode: HTMLElement): IDisposable;
|
|
2013
|
-
}
|
|
2014
|
-
|
|
2015
|
-
declare const enum HoverPosition {
|
|
2016
|
-
LEFT = 0,
|
|
2017
|
-
RIGHT = 1,
|
|
2018
|
-
BELOW = 2,
|
|
2019
|
-
ABOVE = 3
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
/**
|
|
2023
|
-
* Copied from src\vs\workbench\services\hover\browser\hover.ts
|
|
2024
|
-
* @deprecated Use IHoverService
|
|
2025
|
-
*/
|
|
2026
|
-
interface IHoverAction {
|
|
2027
|
-
label: string;
|
|
2028
|
-
commandId: string;
|
|
2029
|
-
iconClass?: string;
|
|
2030
|
-
run(target: HTMLElement): void;
|
|
2031
|
-
}
|
|
2032
|
-
interface IUpdatableHoverOptions {
|
|
2033
|
-
actions?: IHoverAction[];
|
|
2034
|
-
linkHandler?(url: string): void;
|
|
2035
|
-
}
|
|
2036
|
-
|
|
2037
|
-
interface IHoverDelegateTarget extends IDisposable {
|
|
2038
|
-
readonly targetElements: readonly HTMLElement[];
|
|
2039
|
-
x?: number;
|
|
2040
|
-
}
|
|
2041
|
-
interface IHoverDelegateOptions extends IUpdatableHoverOptions {
|
|
2042
|
-
/**
|
|
2043
|
-
* The content to display in the primary section of the hover. The type of text determines the
|
|
2044
|
-
* default `hideOnHover` behavior.
|
|
2045
|
-
*/
|
|
2046
|
-
content: IMarkdownString | string | HTMLElement;
|
|
2047
|
-
/**
|
|
2048
|
-
* The target for the hover. This determines the position of the hover and it will only be
|
|
2049
|
-
* hidden when the mouse leaves both the hover and the target. A HTMLElement can be used for
|
|
2050
|
-
* simple cases and a IHoverDelegateTarget for more complex cases where multiple elements and/or a
|
|
2051
|
-
* dispose method is required.
|
|
2052
|
-
*/
|
|
2053
|
-
target: IHoverDelegateTarget | HTMLElement;
|
|
2054
|
-
/**
|
|
2055
|
-
* Position of the hover. The default is to show above the target. This option will be ignored
|
|
2056
|
-
* if there is not enough room to layout the hover in the specified position, unless the
|
|
2057
|
-
* forcePosition option is set.
|
|
2058
|
-
*/
|
|
2059
|
-
hoverPosition?: HoverPosition;
|
|
2060
|
-
/**
|
|
2061
|
-
* Whether to show the hover pointer
|
|
2062
|
-
*/
|
|
2063
|
-
showPointer?: boolean;
|
|
2064
|
-
/**
|
|
2065
|
-
* Whether to skip the fade in animation, this should be used when hovering from one hover to
|
|
2066
|
-
* another in the same group so it looks like the hover is moving from one element to the other.
|
|
2067
|
-
*/
|
|
2068
|
-
skipFadeInAnimation?: boolean;
|
|
2069
|
-
/**
|
|
2070
|
-
* The container to pass to {@link IContextViewProvider.showContextView} which renders the hover
|
|
2071
|
-
* in. This is particularly useful for more natural tab focusing behavior, where the hover is
|
|
2072
|
-
* created as the next tab index after the element being hovered and/or to workaround the
|
|
2073
|
-
* element's container hiding on `focusout`.
|
|
2074
|
-
*/
|
|
2075
|
-
container?: HTMLElement;
|
|
2076
|
-
}
|
|
2077
|
-
interface IHoverDelegate {
|
|
2078
|
-
showHover(options: IHoverDelegateOptions, focus?: boolean): IHoverWidget | undefined;
|
|
2079
|
-
onDidHideHover?: () => void;
|
|
2080
|
-
delay: number;
|
|
2081
|
-
placement?: 'mouse' | 'element';
|
|
2082
|
-
}
|
|
2083
|
-
interface IHoverWidget extends IDisposable {
|
|
2084
|
-
readonly isDisposed: boolean;
|
|
2085
|
-
}
|
|
2086
|
-
|
|
2087
|
-
interface IToggleStyles {
|
|
2088
|
-
readonly inputActiveOptionBorder: string | undefined;
|
|
2089
|
-
readonly inputActiveOptionForeground: string | undefined;
|
|
2090
|
-
readonly inputActiveOptionBackground: string | undefined;
|
|
2091
|
-
}
|
|
2092
|
-
|
|
2093
|
-
interface IBaseActionViewItemOptions {
|
|
2094
|
-
draggable?: boolean;
|
|
2095
|
-
isMenu?: boolean;
|
|
2096
|
-
useEventAsContext?: boolean;
|
|
2097
|
-
hoverDelegate?: IHoverDelegate;
|
|
2098
|
-
}
|
|
2099
|
-
interface IActionViewItemOptions extends IBaseActionViewItemOptions {
|
|
2100
|
-
icon?: boolean;
|
|
2101
|
-
label?: boolean;
|
|
2102
|
-
keybinding?: string | null;
|
|
2103
|
-
toggleStyles?: IToggleStyles;
|
|
2104
|
-
}
|
|
2105
|
-
|
|
2106
|
-
interface IActionViewItem extends IDisposable {
|
|
2107
|
-
action: IAction;
|
|
2108
|
-
actionRunner: IActionRunner;
|
|
2109
|
-
setActionContext(context: unknown): void;
|
|
2110
|
-
render(element: HTMLElement): void;
|
|
2111
|
-
isEnabled(): boolean;
|
|
2112
|
-
focus(fromRight?: boolean): void;
|
|
2113
|
-
blur(): void;
|
|
2114
|
-
}
|
|
2115
|
-
interface IActionViewItemProvider {
|
|
2116
|
-
(action: IAction, options: IActionViewItemOptions): IActionViewItem | undefined;
|
|
2117
|
-
}
|
|
2118
|
-
declare const enum ActionsOrientation {
|
|
2119
|
-
HORIZONTAL = 0,
|
|
2120
|
-
VERTICAL = 1
|
|
2121
|
-
}
|
|
2122
|
-
interface ActionTrigger {
|
|
2123
|
-
keys?: KeyCode[];
|
|
2124
|
-
keyDown: boolean;
|
|
2125
|
-
}
|
|
2126
|
-
interface IActionBarOptions {
|
|
2127
|
-
readonly orientation?: ActionsOrientation;
|
|
2128
|
-
readonly context?: unknown;
|
|
2129
|
-
readonly actionViewItemProvider?: IActionViewItemProvider;
|
|
2130
|
-
readonly actionRunner?: IActionRunner;
|
|
2131
|
-
readonly ariaLabel?: string;
|
|
2132
|
-
readonly ariaRole?: string;
|
|
2133
|
-
readonly animated?: boolean;
|
|
2134
|
-
readonly triggerKeys?: ActionTrigger;
|
|
2135
|
-
readonly allowContextMenu?: boolean;
|
|
2136
|
-
readonly preventLoopNavigation?: boolean;
|
|
2137
|
-
readonly focusOnlyEnabledItems?: boolean;
|
|
2138
|
-
readonly hoverDelegate?: IHoverDelegate;
|
|
2139
|
-
}
|
|
2140
|
-
interface IActionOptions extends IActionViewItemOptions {
|
|
2141
|
-
index?: number;
|
|
2142
|
-
}
|
|
2143
|
-
declare class ActionBar extends Disposable implements IActionRunner {
|
|
2144
|
-
private readonly options;
|
|
2145
|
-
private _actionRunner;
|
|
2146
|
-
private readonly _actionRunnerDisposables;
|
|
2147
|
-
private _context;
|
|
2148
|
-
private readonly _orientation;
|
|
2149
|
-
private readonly _triggerKeys;
|
|
2150
|
-
viewItems: IActionViewItem[];
|
|
2151
|
-
private readonly viewItemDisposables;
|
|
2152
|
-
private previouslyFocusedItem?;
|
|
2153
|
-
protected focusedItem?: number;
|
|
2154
|
-
private focusTracker;
|
|
2155
|
-
private triggerKeyDown;
|
|
2156
|
-
private focusable;
|
|
2157
|
-
domNode: HTMLElement;
|
|
2158
|
-
protected readonly actionsList: HTMLElement;
|
|
2159
|
-
private readonly _onDidBlur;
|
|
2160
|
-
readonly onDidBlur: Event$1<void>;
|
|
2161
|
-
private readonly _onDidCancel;
|
|
2162
|
-
readonly onDidCancel: Event$1<void>;
|
|
2163
|
-
private cancelHasListener;
|
|
2164
|
-
private readonly _onDidRun;
|
|
2165
|
-
readonly onDidRun: Event$1<IRunEvent>;
|
|
2166
|
-
private readonly _onWillRun;
|
|
2167
|
-
readonly onWillRun: Event$1<IRunEvent>;
|
|
2168
|
-
constructor(container: HTMLElement, options?: IActionBarOptions);
|
|
2169
|
-
private refreshRole;
|
|
2170
|
-
setAriaLabel(label: string): void;
|
|
2171
|
-
setFocusable(focusable: boolean): void;
|
|
2172
|
-
private isTriggerKeyEvent;
|
|
2173
|
-
private updateFocusedItem;
|
|
2174
|
-
get context(): unknown;
|
|
2175
|
-
set context(context: unknown);
|
|
2176
|
-
get actionRunner(): IActionRunner;
|
|
2177
|
-
set actionRunner(actionRunner: IActionRunner);
|
|
2178
|
-
getContainer(): HTMLElement;
|
|
2179
|
-
hasAction(action: IAction): boolean;
|
|
2180
|
-
getAction(indexOrElement: number | HTMLElement): IAction | undefined;
|
|
2181
|
-
push(arg: IAction | ReadonlyArray<IAction>, options?: IActionOptions): void;
|
|
2182
|
-
getWidth(index: number): number;
|
|
2183
|
-
getHeight(index: number): number;
|
|
2184
|
-
pull(index: number): void;
|
|
2185
|
-
clear(): void;
|
|
2186
|
-
length(): number;
|
|
2187
|
-
isEmpty(): boolean;
|
|
2188
|
-
focus(index?: number): void;
|
|
2189
|
-
focus(selectFirst?: boolean): void;
|
|
2190
|
-
private focusFirst;
|
|
2191
|
-
private focusLast;
|
|
2192
|
-
protected focusNext(forceLoop?: boolean): boolean;
|
|
2193
|
-
protected focusPrevious(forceLoop?: boolean): boolean;
|
|
2194
|
-
protected updateFocus(fromRight?: boolean, preventScroll?: boolean, forceFocus?: boolean): void;
|
|
2195
|
-
private doTrigger;
|
|
2196
|
-
run(action: IAction, context?: unknown): Promise<void>;
|
|
2197
|
-
dispose(): void;
|
|
2198
|
-
}
|
|
2199
|
-
|
|
2200
|
-
/**
|
|
2201
|
-
* Composites are layed out in the sidebar and panel part of the workbench. At a time only one composite
|
|
2202
|
-
* can be open in the sidebar, and only one composite can be open in the panel.
|
|
2203
|
-
*
|
|
2204
|
-
* Each composite has a minimized representation that is good enough to provide some
|
|
2205
|
-
* information about the state of the composite data.
|
|
2206
|
-
*
|
|
2207
|
-
* The workbench will keep a composite alive after it has been created and show/hide it based on
|
|
2208
|
-
* user interaction. The lifecycle of a composite goes in the order create(), setVisible(true|false),
|
|
2209
|
-
* layout(), focus(), dispose(). During use of the workbench, a composite will often receive a setVisible,
|
|
2210
|
-
* layout and focus call, but only one create and dispose call.
|
|
2211
|
-
*/
|
|
2212
|
-
declare abstract class Composite extends Component implements IComposite {
|
|
2213
|
-
private readonly _onTitleAreaUpdate;
|
|
2214
|
-
readonly onTitleAreaUpdate: Event$1<void>;
|
|
2215
|
-
private _onDidFocus;
|
|
2216
|
-
get onDidFocus(): Event$1<void>;
|
|
2217
|
-
protected fireOnDidFocus(): void;
|
|
2218
|
-
private _onDidBlur;
|
|
2219
|
-
get onDidBlur(): Event$1<void>;
|
|
2220
|
-
private _hasFocus;
|
|
2221
|
-
hasFocus(): boolean;
|
|
2222
|
-
private registerFocusTrackEvents;
|
|
2223
|
-
protected actionRunner: IActionRunner | undefined;
|
|
2224
|
-
private _telemetryService;
|
|
2225
|
-
protected get telemetryService(): ITelemetryService;
|
|
2226
|
-
private visible;
|
|
2227
|
-
private parent;
|
|
2228
|
-
constructor(id: string, telemetryService: ITelemetryService, themeService: IThemeService, storageService: IStorageService);
|
|
2229
|
-
getTitle(): string | undefined;
|
|
2230
|
-
/**
|
|
2231
|
-
* Note: Clients should not call this method, the workbench calls this
|
|
2232
|
-
* method. Calling it otherwise may result in unexpected behavior.
|
|
2233
|
-
*
|
|
2234
|
-
* Called to create this composite on the provided parent. This method is only
|
|
2235
|
-
* called once during the lifetime of the workbench.
|
|
2236
|
-
* Note that DOM-dependent calculations should be performed from the setVisible()
|
|
2237
|
-
* call. Only then the composite will be part of the DOM.
|
|
2238
|
-
*/
|
|
2239
|
-
create(parent: HTMLElement): void;
|
|
2240
|
-
/**
|
|
2241
|
-
* Returns the container this composite is being build in.
|
|
2242
|
-
*/
|
|
2243
|
-
getContainer(): HTMLElement | undefined;
|
|
2244
|
-
/**
|
|
2245
|
-
* Note: Clients should not call this method, the workbench calls this
|
|
2246
|
-
* method. Calling it otherwise may result in unexpected behavior.
|
|
2247
|
-
*
|
|
2248
|
-
* Called to indicate that the composite has become visible or hidden. This method
|
|
2249
|
-
* is called more than once during workbench lifecycle depending on the user interaction.
|
|
2250
|
-
* The composite will be on-DOM if visible is set to true and off-DOM otherwise.
|
|
2251
|
-
*
|
|
2252
|
-
* Typically this operation should be fast though because setVisible might be called many times during a session.
|
|
2253
|
-
* If there is a long running operation it is fine to have it running in the background asyncly and return before.
|
|
2254
|
-
*/
|
|
2255
|
-
setVisible(visible: boolean): void;
|
|
2256
|
-
/**
|
|
2257
|
-
* Called when this composite should receive keyboard focus.
|
|
2258
|
-
*/
|
|
2259
|
-
focus(): void;
|
|
2260
|
-
/**
|
|
2261
|
-
* Layout the contents of this composite using the provided dimensions.
|
|
2262
|
-
*/
|
|
2263
|
-
abstract layout(dimension: Dimension, position?: IDomPosition): void;
|
|
2264
|
-
/**
|
|
2265
|
-
* Set boundary sashes for this composite. These are used to create
|
|
2266
|
-
* draggable corner areas with inner sashes.
|
|
2267
|
-
*/
|
|
2268
|
-
abstract setBoundarySashes(sashes: IBoundarySashes): void;
|
|
2269
|
-
/**
|
|
2270
|
-
* Update the styles of the contents of this composite.
|
|
2271
|
-
*/
|
|
2272
|
-
updateStyles(): void;
|
|
2273
|
-
/**
|
|
2274
|
-
*
|
|
2275
|
-
* @returns the action runner for this composite
|
|
2276
|
-
*/
|
|
2277
|
-
getMenuIds(): readonly MenuId[];
|
|
2278
|
-
/**
|
|
2279
|
-
* Returns an array of actions to show in the action bar of the composite.
|
|
2280
|
-
*/
|
|
2281
|
-
getActions(): readonly IAction[];
|
|
2282
|
-
/**
|
|
2283
|
-
* Returns an array of actions to show in the action bar of the composite
|
|
2284
|
-
* in a less prominent way then action from getActions.
|
|
2285
|
-
*/
|
|
2286
|
-
getSecondaryActions(): readonly IAction[];
|
|
2287
|
-
/**
|
|
2288
|
-
* Returns an array of actions to show in the context menu of the composite
|
|
2289
|
-
*/
|
|
2290
|
-
getContextMenuActions(): readonly IAction[];
|
|
2291
|
-
/**
|
|
2292
|
-
* For any of the actions returned by this composite, provide an IActionViewItem in
|
|
2293
|
-
* cases where the implementor of the composite wants to override the presentation
|
|
2294
|
-
* of an action. Returns undefined to indicate that the action is not rendered through
|
|
2295
|
-
* an action item.
|
|
2296
|
-
*/
|
|
2297
|
-
getActionViewItem(action: IAction): IActionViewItem | undefined;
|
|
2298
|
-
/**
|
|
2299
|
-
* Provide a context to be passed to the toolbar.
|
|
2300
|
-
*/
|
|
2301
|
-
getActionsContext(): unknown;
|
|
2302
|
-
/**
|
|
2303
|
-
* Returns the instance of IActionRunner to use with this composite for the
|
|
2304
|
-
* composite tool bar.
|
|
2305
|
-
*/
|
|
2306
|
-
getActionRunner(): IActionRunner;
|
|
2307
|
-
/**
|
|
2308
|
-
* Method for composite implementors to indicate to the composite container that the title or the actions
|
|
2309
|
-
* of the composite have changed. Calling this method will cause the container to ask for title (getTitle())
|
|
2310
|
-
* and actions (getActions(), getSecondaryActions()) if the composite is visible or the next time the composite
|
|
2311
|
-
* gets visible.
|
|
2312
|
-
*/
|
|
2313
|
-
protected updateTitleArea(): void;
|
|
2314
|
-
/**
|
|
2315
|
-
* Returns true if this composite is currently visible and false otherwise.
|
|
2316
|
-
*/
|
|
2317
|
-
isVisible(): boolean;
|
|
2318
|
-
/**
|
|
2319
|
-
* Returns the underlying composite control or `undefined` if it is not accessible.
|
|
2320
|
-
*/
|
|
2321
|
-
getControl(): ICompositeControl | undefined;
|
|
2322
|
-
}
|
|
2323
|
-
/**
|
|
2324
|
-
* A composite descriptor is a lightweight descriptor of a composite in the workbench.
|
|
2325
|
-
*/
|
|
2326
|
-
declare abstract class CompositeDescriptor<T extends Composite> {
|
|
2327
|
-
private readonly ctor;
|
|
2328
|
-
readonly id: string;
|
|
2329
|
-
readonly name: string;
|
|
2330
|
-
readonly cssClass?: string | undefined;
|
|
2331
|
-
readonly order?: number | undefined;
|
|
2332
|
-
readonly requestedIndex?: number | undefined;
|
|
2333
|
-
constructor(ctor: IConstructorSignature<T>, id: string, name: string, cssClass?: string | undefined, order?: number | undefined, requestedIndex?: number | undefined);
|
|
2334
|
-
instantiate(instantiationService: IInstantiationService): T;
|
|
2335
|
-
}
|
|
2336
|
-
declare abstract class CompositeRegistry<T extends Composite> extends Disposable {
|
|
2337
|
-
private readonly _onDidRegister;
|
|
2338
|
-
readonly onDidRegister: Event$1<CompositeDescriptor<T>>;
|
|
2339
|
-
private readonly _onDidDeregister;
|
|
2340
|
-
readonly onDidDeregister: Event$1<CompositeDescriptor<T>>;
|
|
2341
|
-
private readonly composites;
|
|
2342
|
-
protected registerComposite(descriptor: CompositeDescriptor<T>): void;
|
|
2343
|
-
protected deregisterComposite(id: string): void;
|
|
2344
|
-
getComposite(id: string): CompositeDescriptor<T> | undefined;
|
|
2345
|
-
protected getComposites(): CompositeDescriptor<T>[];
|
|
2346
|
-
private compositeById;
|
|
2347
|
-
}
|
|
2348
|
-
|
|
2349
|
-
interface IContextMenuEvent {
|
|
2350
|
-
readonly shiftKey?: boolean;
|
|
2351
|
-
readonly ctrlKey?: boolean;
|
|
2352
|
-
readonly altKey?: boolean;
|
|
2353
|
-
readonly metaKey?: boolean;
|
|
2354
|
-
}
|
|
2355
|
-
interface IContextMenuDelegate {
|
|
2356
|
-
getAnchor(): HTMLElement | {
|
|
2357
|
-
x: number;
|
|
2358
|
-
y: number;
|
|
2359
|
-
width?: number;
|
|
2360
|
-
height?: number;
|
|
2361
|
-
};
|
|
2362
|
-
getActions(): readonly IAction[];
|
|
2363
|
-
getCheckedActionsRepresentation?(action: IAction): 'radio' | 'checkbox';
|
|
2364
|
-
getActionViewItem?(action: IAction, options: IActionViewItemOptions): IActionViewItem | undefined;
|
|
2365
|
-
getActionsContext?(event?: IContextMenuEvent): unknown;
|
|
2366
|
-
getKeyBinding?(action: IAction): ResolvedKeybinding | undefined;
|
|
2367
|
-
getMenuClassName?(): string;
|
|
2368
|
-
onHide?(didCancel: boolean): void;
|
|
2369
|
-
actionRunner?: IActionRunner;
|
|
2370
|
-
skipTelemetry?: boolean;
|
|
2371
|
-
autoSelectFirstItem?: boolean;
|
|
2372
|
-
anchorAlignment?: AnchorAlignment;
|
|
2373
|
-
anchorAxisAlignment?: AnchorAxisAlignment;
|
|
2374
|
-
domForShadowRoot?: HTMLElement;
|
|
2375
|
-
}
|
|
2376
|
-
interface IContextMenuProvider {
|
|
2377
|
-
showContextMenu(delegate: IContextMenuDelegate): void;
|
|
2378
|
-
}
|
|
2379
|
-
|
|
2380
|
-
declare const IContextViewService: ServiceIdentifier<IContextViewService>;
|
|
2381
|
-
interface IContextViewService extends IContextViewProvider {
|
|
2382
|
-
readonly _serviceBrand: undefined;
|
|
2383
|
-
showContextView(delegate: IContextViewDelegate, container?: HTMLElement, shadowRoot?: boolean): IDisposable;
|
|
2384
|
-
hideContextView(data?: any): void;
|
|
2385
|
-
getContextViewElement(): HTMLElement;
|
|
2386
|
-
layout(): void;
|
|
2387
|
-
anchorAlignment?: AnchorAlignment;
|
|
2388
|
-
}
|
|
2389
|
-
interface IContextViewDelegate {
|
|
2390
|
-
canRelayout?: boolean;
|
|
2391
|
-
getAnchor(): HTMLElement | {
|
|
2392
|
-
x: number;
|
|
2393
|
-
y: number;
|
|
2394
|
-
width?: number;
|
|
2395
|
-
height?: number;
|
|
2396
|
-
};
|
|
2397
|
-
render(container: HTMLElement): IDisposable;
|
|
2398
|
-
onDOMEvent?(e: any, activeElement: HTMLElement): void;
|
|
2399
|
-
onHide?(data?: any): void;
|
|
2400
|
-
focus?(): void;
|
|
2401
|
-
anchorAlignment?: AnchorAlignment;
|
|
2402
|
-
anchorAxisAlignment?: AnchorAxisAlignment;
|
|
2403
|
-
}
|
|
2404
|
-
declare const IContextMenuService: ServiceIdentifier<IContextMenuService>;
|
|
2405
|
-
interface IContextMenuService {
|
|
2406
|
-
readonly _serviceBrand: undefined;
|
|
2407
|
-
readonly onDidShowContextMenu: Event$1<void>;
|
|
2408
|
-
readonly onDidHideContextMenu: Event$1<void>;
|
|
2409
|
-
showContextMenu(delegate: IContextMenuDelegate | IContextMenuMenuDelegate): void;
|
|
2410
|
-
}
|
|
2411
|
-
type IContextMenuMenuDelegate = {
|
|
2412
|
-
/**
|
|
2413
|
-
* The MenuId that should be used to populate the context menu.
|
|
2414
|
-
*/
|
|
2415
|
-
menuId?: MenuId;
|
|
2416
|
-
/**
|
|
2417
|
-
* Optional options how menu actions are invoked
|
|
2418
|
-
*/
|
|
2419
|
-
menuActionOptions?: IMenuActionOptions;
|
|
2420
|
-
/**
|
|
2421
|
-
* Optional context key service which drives the given menu
|
|
2422
|
-
*/
|
|
2423
|
-
contextKeyService?: IContextKeyService;
|
|
2424
|
-
/**
|
|
2425
|
-
* Optional getter for extra actions. They will be prepended to the menu actions.
|
|
2426
|
-
*/
|
|
2427
|
-
getActions?(): IAction[];
|
|
2428
|
-
} & Omit<IContextMenuDelegate, 'getActions'>;
|
|
2429
|
-
|
|
2430
|
-
interface IPaneOptions {
|
|
2431
|
-
minimumBodySize?: number;
|
|
2432
|
-
maximumBodySize?: number;
|
|
2433
|
-
expanded?: boolean;
|
|
2434
|
-
orientation?: Orientation;
|
|
2435
|
-
title: string;
|
|
2436
|
-
titleDescription?: string;
|
|
2437
|
-
}
|
|
2438
|
-
interface IPaneStyles {
|
|
2439
|
-
readonly dropBackground: string | undefined;
|
|
2440
|
-
readonly headerForeground: string | undefined;
|
|
2441
|
-
readonly headerBackground: string | undefined;
|
|
2442
|
-
readonly headerBorder: string | undefined;
|
|
2443
|
-
readonly leftBorder: string | undefined;
|
|
2444
|
-
}
|
|
2445
|
-
/**
|
|
2446
|
-
* A Pane is a structured SplitView view.
|
|
2447
|
-
*
|
|
2448
|
-
* WARNING: You must call `render()` after you construct it.
|
|
2449
|
-
* It can't be done automatically at the end of the ctor
|
|
2450
|
-
* because of the order of property initialization in TypeScript.
|
|
2451
|
-
* Subclasses wouldn't be able to set own properties
|
|
2452
|
-
* before the `render()` call, thus forbidding their use.
|
|
2453
|
-
*/
|
|
2454
|
-
declare abstract class Pane extends Disposable implements IView$2 {
|
|
2455
|
-
private static readonly HEADER_SIZE;
|
|
2456
|
-
readonly element: HTMLElement;
|
|
2457
|
-
private header;
|
|
2458
|
-
private body;
|
|
2459
|
-
protected _expanded: boolean;
|
|
2460
|
-
protected _orientation: Orientation;
|
|
2461
|
-
private expandedSize;
|
|
2462
|
-
private _headerVisible;
|
|
2463
|
-
private _bodyRendered;
|
|
2464
|
-
private _minimumBodySize;
|
|
2465
|
-
private _maximumBodySize;
|
|
2466
|
-
private _ariaHeaderLabel;
|
|
2467
|
-
private styles;
|
|
2468
|
-
private animationTimer;
|
|
2469
|
-
private readonly _onDidChange;
|
|
2470
|
-
readonly onDidChange: Event$1<number | undefined>;
|
|
2471
|
-
private readonly _onDidChangeExpansionState;
|
|
2472
|
-
readonly onDidChangeExpansionState: Event$1<boolean>;
|
|
2473
|
-
get ariaHeaderLabel(): string;
|
|
2474
|
-
set ariaHeaderLabel(newLabel: string);
|
|
2475
|
-
get draggableElement(): HTMLElement;
|
|
2476
|
-
get dropTargetElement(): HTMLElement;
|
|
2477
|
-
get dropBackground(): string | undefined;
|
|
2478
|
-
get minimumBodySize(): number;
|
|
2479
|
-
set minimumBodySize(size: number);
|
|
2480
|
-
get maximumBodySize(): number;
|
|
2481
|
-
set maximumBodySize(size: number);
|
|
2482
|
-
private get headerSize();
|
|
2483
|
-
get minimumSize(): number;
|
|
2484
|
-
get maximumSize(): number;
|
|
2485
|
-
orthogonalSize: number;
|
|
2486
|
-
constructor(options: IPaneOptions);
|
|
2487
|
-
isExpanded(): boolean;
|
|
2488
|
-
setExpanded(expanded: boolean): boolean;
|
|
2489
|
-
get headerVisible(): boolean;
|
|
2490
|
-
set headerVisible(visible: boolean);
|
|
2491
|
-
get orientation(): Orientation;
|
|
2492
|
-
set orientation(orientation: Orientation);
|
|
2493
|
-
render(): void;
|
|
2494
|
-
layout(size: number): void;
|
|
2495
|
-
style(styles: IPaneStyles): void;
|
|
2496
|
-
protected updateHeader(): void;
|
|
2497
|
-
protected abstract renderHeader(container: HTMLElement): void;
|
|
2498
|
-
protected abstract renderBody(container: HTMLElement): void;
|
|
2499
|
-
protected abstract layoutBody(height: number, width: number): void;
|
|
2500
|
-
}
|
|
2501
|
-
interface IPaneDndController {
|
|
2502
|
-
canDrag(pane: Pane): boolean;
|
|
2503
|
-
canDrop(pane: Pane, overPane: Pane): boolean;
|
|
2504
|
-
}
|
|
2505
|
-
interface IPaneViewOptions {
|
|
2506
|
-
dnd?: IPaneDndController;
|
|
2507
|
-
orientation?: Orientation;
|
|
2508
|
-
}
|
|
2509
|
-
|
|
2510
|
-
declare class CompositeMenuActions extends Disposable {
|
|
2511
|
-
readonly menuId: MenuId;
|
|
2512
|
-
private readonly contextMenuId;
|
|
2513
|
-
private readonly options;
|
|
2514
|
-
private readonly contextKeyService;
|
|
2515
|
-
private readonly menuService;
|
|
2516
|
-
private readonly menuActions;
|
|
2517
|
-
private _onDidChange;
|
|
2518
|
-
readonly onDidChange: Event$1<void>;
|
|
2519
|
-
constructor(menuId: MenuId, contextMenuId: MenuId | undefined, options: IMenuActionOptions | undefined, contextKeyService: IContextKeyService, menuService: IMenuService);
|
|
2520
|
-
getPrimaryActions(): IAction[];
|
|
2521
|
-
getSecondaryActions(): IAction[];
|
|
2522
|
-
getContextMenuActions(): IAction[];
|
|
2523
|
-
}
|
|
2524
|
-
|
|
2525
|
-
interface IKeybindingProvider {
|
|
2526
|
-
(action: IAction): ResolvedKeybinding | undefined;
|
|
2527
|
-
}
|
|
2528
|
-
interface IAnchorAlignmentProvider {
|
|
2529
|
-
(): AnchorAlignment;
|
|
2530
|
-
}
|
|
2531
|
-
interface IDropdownMenuActionViewItemOptions extends IBaseActionViewItemOptions {
|
|
2532
|
-
readonly actionViewItemProvider?: IActionViewItemProvider;
|
|
2533
|
-
readonly keybindingProvider?: IKeybindingProvider;
|
|
2534
|
-
readonly actionRunner?: IActionRunner;
|
|
2535
|
-
readonly classNames?: string[] | string;
|
|
2536
|
-
readonly anchorAlignmentProvider?: IAnchorAlignmentProvider;
|
|
2537
|
-
readonly menuAsChild?: boolean;
|
|
2538
|
-
}
|
|
2539
|
-
|
|
2540
|
-
interface IFilterWidgetOptions {
|
|
2541
|
-
readonly text?: string;
|
|
2542
|
-
readonly placeholder?: string;
|
|
2543
|
-
readonly ariaLabel?: string;
|
|
2544
|
-
readonly history?: string[];
|
|
2545
|
-
readonly focusContextKey?: string;
|
|
2546
|
-
}
|
|
2547
|
-
declare class FilterWidget extends Widget {
|
|
2548
|
-
private readonly options;
|
|
2549
|
-
private readonly instantiationService;
|
|
2550
|
-
private readonly contextViewService;
|
|
2551
|
-
private readonly keybindingService;
|
|
2552
|
-
readonly element: HTMLElement;
|
|
2553
|
-
private readonly delayedFilterUpdate;
|
|
2554
|
-
private readonly filterInputBox;
|
|
2555
|
-
private readonly filterBadge;
|
|
2556
|
-
private readonly toolbar;
|
|
2557
|
-
private readonly focusContextKey;
|
|
2558
|
-
private readonly _onDidChangeFilterText;
|
|
2559
|
-
readonly onDidChangeFilterText: Event$1<string>;
|
|
2560
|
-
private moreFiltersActionViewItem;
|
|
2561
|
-
private isMoreFiltersChecked;
|
|
2562
|
-
constructor(options: IFilterWidgetOptions, instantiationService: IInstantiationService, contextViewService: IContextViewService, contextKeyService: IContextKeyService, keybindingService: IKeybindingService);
|
|
2563
|
-
focus(): void;
|
|
2564
|
-
blur(): void;
|
|
2565
|
-
updateBadge(message: string | undefined): void;
|
|
2566
|
-
setFilterText(filterText: string): void;
|
|
2567
|
-
getFilterText(): string;
|
|
2568
|
-
getHistory(): string[];
|
|
2569
|
-
layout(width: number): void;
|
|
2570
|
-
checkMoreFilters(checked: boolean): void;
|
|
2571
|
-
private createInput;
|
|
2572
|
-
private createBadge;
|
|
2573
|
-
private createToolBar;
|
|
2574
|
-
private onDidInputChange;
|
|
2575
|
-
private adjustInputBox;
|
|
2576
|
-
private handleKeyboardEvent;
|
|
2577
|
-
private onInputKeyDown;
|
|
2578
|
-
}
|
|
2579
|
-
|
|
2580
|
-
interface IViewPaneOptions extends IPaneOptions {
|
|
2581
|
-
id: string;
|
|
2582
|
-
showActionsAlways?: boolean;
|
|
2583
|
-
titleMenuId?: MenuId;
|
|
2584
|
-
donotForwardArgs?: boolean;
|
|
2585
|
-
}
|
|
2586
|
-
declare abstract class ViewPane extends Pane implements IView$3 {
|
|
2587
|
-
protected keybindingService: IKeybindingService;
|
|
2588
|
-
protected contextMenuService: IContextMenuService;
|
|
2589
|
-
protected readonly configurationService: IConfigurationService;
|
|
2590
|
-
protected contextKeyService: IContextKeyService;
|
|
2591
|
-
protected viewDescriptorService: IViewDescriptorService;
|
|
2592
|
-
protected instantiationService: IInstantiationService;
|
|
2593
|
-
protected openerService: IOpenerService;
|
|
2594
|
-
protected themeService: IThemeService;
|
|
2595
|
-
protected telemetryService: ITelemetryService;
|
|
2596
|
-
private static readonly AlwaysShowActionsConfig;
|
|
2597
|
-
private _onDidFocus;
|
|
2598
|
-
readonly onDidFocus: Event$1<void>;
|
|
2599
|
-
private _onDidBlur;
|
|
2600
|
-
readonly onDidBlur: Event$1<void>;
|
|
2601
|
-
private _onDidChangeBodyVisibility;
|
|
2602
|
-
readonly onDidChangeBodyVisibility: Event$1<boolean>;
|
|
2603
|
-
protected _onDidChangeTitleArea: Emitter<void>;
|
|
2604
|
-
readonly onDidChangeTitleArea: Event$1<void>;
|
|
2605
|
-
protected _onDidChangeViewWelcomeState: Emitter<void>;
|
|
2606
|
-
readonly onDidChangeViewWelcomeState: Event$1<void>;
|
|
2607
|
-
private _isVisible;
|
|
2608
|
-
readonly id: string;
|
|
2609
|
-
private _title;
|
|
2610
|
-
get title(): string;
|
|
2611
|
-
private _titleDescription;
|
|
2612
|
-
get titleDescription(): string | undefined;
|
|
2613
|
-
readonly menuActions: CompositeMenuActions;
|
|
2614
|
-
private progressBar;
|
|
2615
|
-
private progressIndicator;
|
|
2616
|
-
private toolbar?;
|
|
2617
|
-
private readonly showActionsAlways;
|
|
2618
|
-
private headerContainer?;
|
|
2619
|
-
private titleContainer?;
|
|
2620
|
-
private titleDescriptionContainer?;
|
|
2621
|
-
private iconContainer?;
|
|
2622
|
-
protected twistiesContainer?: HTMLElement;
|
|
2623
|
-
private bodyContainer;
|
|
2624
|
-
private viewWelcomeContainer;
|
|
2625
|
-
private viewWelcomeDisposable;
|
|
2626
|
-
private viewWelcomeController;
|
|
2627
|
-
protected readonly scopedContextKeyService: IContextKeyService;
|
|
2628
|
-
constructor(options: IViewPaneOptions, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService, openerService: IOpenerService, themeService: IThemeService, telemetryService: ITelemetryService);
|
|
2629
|
-
get headerVisible(): boolean;
|
|
2630
|
-
set headerVisible(visible: boolean);
|
|
2631
|
-
setVisible(visible: boolean): void;
|
|
2632
|
-
isVisible(): boolean;
|
|
2633
|
-
isBodyVisible(): boolean;
|
|
2634
|
-
setExpanded(expanded: boolean): boolean;
|
|
2635
|
-
render(): void;
|
|
2636
|
-
protected renderHeader(container: HTMLElement): void;
|
|
2637
|
-
protected getTwistyIcon(expanded: boolean): ThemeIcon;
|
|
2638
|
-
style(styles: IPaneStyles): void;
|
|
2639
|
-
private getIcon;
|
|
2640
|
-
protected renderHeaderTitle(container: HTMLElement, title: string): void;
|
|
2641
|
-
protected updateTitle(title: string): void;
|
|
2642
|
-
private setTitleDescription;
|
|
2643
|
-
protected updateTitleDescription(description?: string | undefined): void;
|
|
2644
|
-
private calculateTitle;
|
|
2645
|
-
private scrollableElement;
|
|
2646
|
-
protected renderBody(container: HTMLElement): void;
|
|
2647
|
-
protected layoutBody(height: number, width: number): void;
|
|
2648
|
-
onDidScrollRoot(): void;
|
|
2649
|
-
getProgressIndicator(): IProgressIndicator;
|
|
2650
|
-
protected getProgressLocation(): string;
|
|
2651
|
-
protected getBackgroundColor(): string;
|
|
2652
|
-
focus(): void;
|
|
2653
|
-
private setActions;
|
|
2654
|
-
private updateActionsVisibility;
|
|
2655
|
-
protected updateActions(): void;
|
|
2656
|
-
getActionViewItem(action: IAction, options?: IDropdownMenuActionViewItemOptions): IActionViewItem | undefined;
|
|
2657
|
-
getActionsContext(): unknown;
|
|
2658
|
-
getActionRunner(): IActionRunner | undefined;
|
|
2659
|
-
getOptimalWidth(): number;
|
|
2660
|
-
saveState(): void;
|
|
2661
|
-
private updateViewWelcome;
|
|
2662
|
-
shouldShowWelcome(): boolean;
|
|
2663
|
-
getFilterWidget(): FilterWidget | undefined;
|
|
2664
|
-
shouldShowFilterInHeader(): boolean;
|
|
2665
|
-
}
|
|
2666
|
-
|
|
2667
|
-
interface IViewletViewOptions extends IViewPaneOptions {
|
|
2668
|
-
readonly fromExtensionId?: ExtensionIdentifier;
|
|
2669
|
-
}
|
|
2670
|
-
|
|
2671
|
-
interface IViewPaneContainerOptions extends IPaneViewOptions {
|
|
2672
|
-
mergeViewWithContainerWhenSingleView: boolean;
|
|
2673
|
-
}
|
|
2674
|
-
declare class ViewPaneContainer extends Component implements IViewPaneContainer {
|
|
2675
|
-
private options;
|
|
2676
|
-
protected instantiationService: IInstantiationService;
|
|
2677
|
-
protected configurationService: IConfigurationService;
|
|
2678
|
-
protected layoutService: IWorkbenchLayoutService;
|
|
2679
|
-
protected contextMenuService: IContextMenuService;
|
|
2680
|
-
protected telemetryService: ITelemetryService;
|
|
2681
|
-
protected extensionService: IExtensionService;
|
|
2682
|
-
protected storageService: IStorageService;
|
|
2683
|
-
protected contextService: IWorkspaceContextService;
|
|
2684
|
-
protected viewDescriptorService: IViewDescriptorService;
|
|
2685
|
-
readonly viewContainer: ViewContainer;
|
|
2686
|
-
private lastFocusedPane;
|
|
2687
|
-
private lastMergedCollapsedPane;
|
|
2688
|
-
private paneItems;
|
|
2689
|
-
private paneview?;
|
|
2690
|
-
private visible;
|
|
2691
|
-
private areExtensionsReady;
|
|
2692
|
-
private didLayout;
|
|
2693
|
-
private dimension;
|
|
2694
|
-
private _boundarySashes;
|
|
2695
|
-
private readonly visibleViewsCountFromCache;
|
|
2696
|
-
private readonly visibleViewsStorageId;
|
|
2697
|
-
protected readonly viewContainerModel: IViewContainerModel;
|
|
2698
|
-
private viewDisposables;
|
|
2699
|
-
private readonly _onTitleAreaUpdate;
|
|
2700
|
-
readonly onTitleAreaUpdate: Event$1<void>;
|
|
2701
|
-
private readonly _onDidChangeVisibility;
|
|
2702
|
-
readonly onDidChangeVisibility: Event$1<boolean>;
|
|
2703
|
-
private readonly _onDidAddViews;
|
|
2704
|
-
readonly onDidAddViews: Event$1<IView$3[]>;
|
|
2705
|
-
private readonly _onDidRemoveViews;
|
|
2706
|
-
readonly onDidRemoveViews: Event$1<IView$3[]>;
|
|
2707
|
-
private readonly _onDidChangeViewVisibility;
|
|
2708
|
-
readonly onDidChangeViewVisibility: Event$1<IView$3>;
|
|
2709
|
-
private readonly _onDidFocusView;
|
|
2710
|
-
readonly onDidFocusView: Event$1<IView$3>;
|
|
2711
|
-
private readonly _onDidBlurView;
|
|
2712
|
-
readonly onDidBlurView: Event$1<IView$3>;
|
|
2713
|
-
get onDidSashChange(): Event$1<number>;
|
|
2714
|
-
get panes(): ViewPane[];
|
|
2715
|
-
get views(): IView$3[];
|
|
2716
|
-
get length(): number;
|
|
2717
|
-
private _menuActions?;
|
|
2718
|
-
get menuActions(): CompositeMenuActions | undefined;
|
|
2719
|
-
constructor(id: string, options: IViewPaneContainerOptions, instantiationService: IInstantiationService, configurationService: IConfigurationService, layoutService: IWorkbenchLayoutService, contextMenuService: IContextMenuService, telemetryService: ITelemetryService, extensionService: IExtensionService, themeService: IThemeService, storageService: IStorageService, contextService: IWorkspaceContextService, viewDescriptorService: IViewDescriptorService);
|
|
2720
|
-
create(parent: HTMLElement): void;
|
|
2721
|
-
getTitle(): string;
|
|
2722
|
-
private showContextMenu;
|
|
2723
|
-
getActionsContext(): unknown;
|
|
2724
|
-
getActionViewItem(action: IAction): IActionViewItem | undefined;
|
|
2725
|
-
focus(): void;
|
|
2726
|
-
private get orientation();
|
|
2727
|
-
layout(dimension: Dimension): void;
|
|
2728
|
-
setBoundarySashes(sashes: IBoundarySashes): void;
|
|
2729
|
-
getOptimalWidth(): number;
|
|
2730
|
-
addPanes(panes: {
|
|
2731
|
-
pane: ViewPane;
|
|
2732
|
-
size: number;
|
|
2733
|
-
index?: number;
|
|
2734
|
-
}[]): void;
|
|
2735
|
-
setVisible(visible: boolean): void;
|
|
2736
|
-
isVisible(): boolean;
|
|
2737
|
-
protected updateTitleArea(): void;
|
|
2738
|
-
protected createView(viewDescriptor: IViewDescriptor, options: IViewletViewOptions): ViewPane;
|
|
2739
|
-
getView(id: string): ViewPane | undefined;
|
|
2740
|
-
private saveViewSizes;
|
|
2741
|
-
private restoreViewSizes;
|
|
2742
|
-
private computeInitialSizes;
|
|
2743
|
-
protected saveState(): void;
|
|
2744
|
-
private onContextMenu;
|
|
2745
|
-
openView(id: string, focus?: boolean): IView$3 | undefined;
|
|
2746
|
-
protected onDidAddViewDescriptors(added: IAddedViewDescriptorRef[]): ViewPane[];
|
|
2747
|
-
private onDidRemoveViewDescriptors;
|
|
2748
|
-
toggleViewVisibility(viewId: string): void;
|
|
2749
|
-
private addPane;
|
|
2750
|
-
removePanes(panes: ViewPane[]): void;
|
|
2751
|
-
private removePane;
|
|
2752
|
-
movePane(from: ViewPane, to: ViewPane): void;
|
|
2753
|
-
resizePane(pane: ViewPane, size: number): void;
|
|
2754
|
-
getPaneSize(pane: ViewPane): number;
|
|
2755
|
-
private updateViewHeaders;
|
|
2756
|
-
isViewMergedWithContainer(): boolean;
|
|
2757
|
-
private onDidScrollPane;
|
|
2758
|
-
private onDidSashReset;
|
|
2759
|
-
dispose(): void;
|
|
2760
|
-
}
|
|
2761
|
-
|
|
2762
|
-
declare abstract class PaneComposite extends Composite implements IPaneComposite {
|
|
2763
|
-
protected storageService: IStorageService;
|
|
2764
|
-
protected instantiationService: IInstantiationService;
|
|
2765
|
-
protected contextMenuService: IContextMenuService;
|
|
2766
|
-
protected extensionService: IExtensionService;
|
|
2767
|
-
protected contextService: IWorkspaceContextService;
|
|
2768
|
-
private viewPaneContainer?;
|
|
2769
|
-
constructor(id: string, telemetryService: ITelemetryService, storageService: IStorageService, instantiationService: IInstantiationService, themeService: IThemeService, contextMenuService: IContextMenuService, extensionService: IExtensionService, contextService: IWorkspaceContextService);
|
|
2770
|
-
create(parent: HTMLElement): void;
|
|
2771
|
-
setVisible(visible: boolean): void;
|
|
2772
|
-
layout(dimension: Dimension): void;
|
|
2773
|
-
setBoundarySashes(sashes: IBoundarySashes): void;
|
|
2774
|
-
getOptimalWidth(): number;
|
|
2775
|
-
openView<T extends IView$3>(id: string, focus?: boolean): T | undefined;
|
|
2776
|
-
getViewPaneContainer(): ViewPaneContainer | undefined;
|
|
2777
|
-
getActionsContext(): unknown;
|
|
2778
|
-
getContextMenuActions(): readonly IAction[];
|
|
2779
|
-
getMenuIds(): MenuId[];
|
|
2780
|
-
getActions(): readonly IAction[];
|
|
2781
|
-
getSecondaryActions(): readonly IAction[];
|
|
2782
|
-
getActionViewItem(action: IAction): IActionViewItem | undefined;
|
|
2783
|
-
getTitle(): string;
|
|
2784
|
-
focus(): void;
|
|
2785
|
-
protected abstract createViewPaneContainer(parent: HTMLElement): ViewPaneContainer;
|
|
2786
|
-
}
|
|
2787
|
-
/**
|
|
2788
|
-
* A Pane Composite descriptor is a lightweight descriptor of a Pane Composite in the workbench.
|
|
2789
|
-
*/
|
|
2790
|
-
declare class PaneCompositeDescriptor extends CompositeDescriptor<PaneComposite> {
|
|
2791
|
-
readonly iconUrl?: URI | undefined;
|
|
2792
|
-
static create<Services extends BrandedService[]>(ctor: {
|
|
2793
|
-
new (...services: Services): PaneComposite;
|
|
2794
|
-
}, id: string, name: string, cssClass?: string, order?: number, requestedIndex?: number, iconUrl?: URI): PaneCompositeDescriptor;
|
|
2795
|
-
private constructor();
|
|
2796
|
-
}
|
|
2797
|
-
|
|
2798
|
-
interface IBadge {
|
|
2799
|
-
getDescription(): string;
|
|
2800
|
-
}
|
|
2801
|
-
|
|
2802
|
-
export { ActionBar as A, IOpenerService as B, Composite as C, Dimension as D, IConfigurationService as E, IViewsService as F, ILayoutService as G, HoverPosition as H, IView as I, MenuId as M, PaneCompositeDescriptor as P, StorageScope as S, ViewContainerLocation as V, IPaneComposite as a, IBadge as b, IContextMenuProvider as c, ActionsOrientation as d, IActionViewItemProvider as e, AnchorAlignment as f, IMenuService as g, IContextMenuService as h, ITelemetryService as i, IMenuActionOptions as j, Part as k, IStorageService as l, CompositeRegistry as m, IWorkbenchLayoutService as n, IThemeService as o, IPartOptions as p, IActionViewItem as q, IBoundarySashes as r, IViewDescriptorService as s, PaneComposite as t, Parts as u, ConfigurationTarget as v, ITelemetryEndpoint as w, IConfigurationChangeEvent as x, IColorTheme as y, StorageTarget as z };
|