@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
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import './suggestEnabledInput.css.js';
|
|
3
|
+
import { append, $ } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
4
|
+
import { Widget } from 'monaco-editor/esm/vs/base/browser/ui/widget.js';
|
|
5
|
+
import { Emitter, Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
6
|
+
import { mixin } from 'monaco-editor/esm/vs/base/common/objects.js';
|
|
7
|
+
import { isMacintosh } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
8
|
+
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
9
|
+
import { CodeEditorWidget } from 'monaco-editor/esm/vs/editor/browser/widget/codeEditorWidget.js';
|
|
10
|
+
import { EditOperation } from 'monaco-editor/esm/vs/editor/common/core/editOperation.js';
|
|
11
|
+
import { Position } from 'monaco-editor/esm/vs/editor/common/core/position.js';
|
|
12
|
+
import { Range } from 'monaco-editor/esm/vs/editor/common/core/range.js';
|
|
13
|
+
import { IModelService } from 'monaco-editor/esm/vs/editor/common/services/model.js';
|
|
14
|
+
import { ContextMenuController } from 'monaco-editor/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js';
|
|
15
|
+
import { SnippetController2 } from 'monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetController2.js';
|
|
16
|
+
import { SuggestController } from 'monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestController.js';
|
|
17
|
+
import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
18
|
+
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
19
|
+
import { selectionBackground, inputBackground, inputForeground, editorSelectionBackground, asCssVariable, inputPlaceholderForeground, asCssVariableWithDefault, inputBorder } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
20
|
+
import { registerThemingParticipant } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
21
|
+
import { MenuPreventer } from '../menuPreventer.js';
|
|
22
|
+
import { getSimpleEditorOptions } from '../simpleEditorOptions.js';
|
|
23
|
+
import { SelectionClipboardContributionID } from '../selectionClipboard.js';
|
|
24
|
+
import { EditorExtensionsRegistry } from 'monaco-editor/esm/vs/editor/browser/editorExtensions.js';
|
|
25
|
+
import { DEFAULT_FONT_FAMILY } from '../../../../browser/style.js';
|
|
26
|
+
import { ServiceCollection } from 'monaco-editor/esm/vs/platform/instantiation/common/serviceCollection.js';
|
|
27
|
+
import { ILanguageFeaturesService } from 'monaco-editor/esm/vs/editor/common/services/languageFeatures.js';
|
|
28
|
+
import { ensureValidWordDefinition, getWordAtText } from 'monaco-editor/esm/vs/editor/common/core/wordHelper.js';
|
|
29
|
+
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
30
|
+
let SuggestEnabledInput = class SuggestEnabledInput extends Widget {
|
|
31
|
+
constructor(id, parent, suggestionProvider, ariaLabel, resourceHandle, options, defaultInstantiationService, modelService, contextKeyService, languageFeaturesService, configurationService) {
|
|
32
|
+
super();
|
|
33
|
+
this._onShouldFocusResults = ( (new Emitter()));
|
|
34
|
+
this.onShouldFocusResults = this._onShouldFocusResults.event;
|
|
35
|
+
this._onInputDidChange = ( (new Emitter()));
|
|
36
|
+
this.onInputDidChange = this._onInputDidChange.event;
|
|
37
|
+
this._onDidFocus = this._register(( (new Emitter())));
|
|
38
|
+
this.onDidFocus = this._onDidFocus.event;
|
|
39
|
+
this._onDidBlur = this._register(( (new Emitter())));
|
|
40
|
+
this.onDidBlur = this._onDidBlur.event;
|
|
41
|
+
this.stylingContainer = append(parent, $('.suggest-input-container'));
|
|
42
|
+
this.element = parent;
|
|
43
|
+
this.placeholderText = append(this.stylingContainer, $('.suggest-input-placeholder', undefined, options.placeholderText || ''));
|
|
44
|
+
const editorOptions = mixin(getSimpleEditorOptions(), getSuggestEnabledInputOptions(ariaLabel));
|
|
45
|
+
editorOptions.overflowWidgetsDomNode = options.overflowWidgetsDomNode;
|
|
46
|
+
editorOptions.accessibilitySupport = configurationService.getValue('editor.accessibilitySupport');
|
|
47
|
+
editorOptions.cursorBlinking = configurationService.getValue('editor.cursorBlinking');
|
|
48
|
+
const scopedContextKeyService = this.getScopedContextKeyService(contextKeyService);
|
|
49
|
+
const instantiationService = scopedContextKeyService
|
|
50
|
+
? defaultInstantiationService.createChild(( (new ServiceCollection([IContextKeyService, scopedContextKeyService]))))
|
|
51
|
+
: defaultInstantiationService;
|
|
52
|
+
this.inputWidget = this._register(instantiationService.createInstance(CodeEditorWidget, this.stylingContainer, editorOptions, {
|
|
53
|
+
contributions: EditorExtensionsRegistry.getSomeEditorContributions([
|
|
54
|
+
SuggestController.ID,
|
|
55
|
+
SnippetController2.ID,
|
|
56
|
+
ContextMenuController.ID,
|
|
57
|
+
MenuPreventer.ID,
|
|
58
|
+
SelectionClipboardContributionID,
|
|
59
|
+
]),
|
|
60
|
+
isSimpleWidget: true,
|
|
61
|
+
}));
|
|
62
|
+
this._register(configurationService.onDidChangeConfiguration((e) => {
|
|
63
|
+
if (e.affectsConfiguration('editor.accessibilitySupport') ||
|
|
64
|
+
e.affectsConfiguration('editor.cursorBlinking')) {
|
|
65
|
+
const accessibilitySupport = configurationService.getValue('editor.accessibilitySupport');
|
|
66
|
+
const cursorBlinking = configurationService.getValue('editor.cursorBlinking');
|
|
67
|
+
this.inputWidget.updateOptions({
|
|
68
|
+
accessibilitySupport,
|
|
69
|
+
cursorBlinking
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}));
|
|
73
|
+
this._register(this.inputWidget.onDidFocusEditorText(() => this._onDidFocus.fire()));
|
|
74
|
+
this._register(this.inputWidget.onDidBlurEditorText(() => this._onDidBlur.fire()));
|
|
75
|
+
const scopeHandle = ( URI.parse(resourceHandle));
|
|
76
|
+
this.inputModel = modelService.createModel('', null, scopeHandle, true);
|
|
77
|
+
this._register(this.inputModel);
|
|
78
|
+
this.inputWidget.setModel(this.inputModel);
|
|
79
|
+
this._register(this.inputWidget.onDidPaste(() => this.setValue(this.getValue())));
|
|
80
|
+
this._register((this.inputWidget.onDidFocusEditorText(() => {
|
|
81
|
+
if (options.focusContextKey) {
|
|
82
|
+
options.focusContextKey.set(true);
|
|
83
|
+
}
|
|
84
|
+
this.stylingContainer.classList.add('synthetic-focus');
|
|
85
|
+
})));
|
|
86
|
+
this._register((this.inputWidget.onDidBlurEditorText(() => {
|
|
87
|
+
if (options.focusContextKey) {
|
|
88
|
+
options.focusContextKey.set(false);
|
|
89
|
+
}
|
|
90
|
+
this.stylingContainer.classList.remove('synthetic-focus');
|
|
91
|
+
})));
|
|
92
|
+
const onKeyDownMonaco = Event.chain(this.inputWidget.onKeyDown);
|
|
93
|
+
this._register(onKeyDownMonaco.filter(e => e.keyCode === 3 ).on(e => { e.preventDefault(); }, this));
|
|
94
|
+
this._register(onKeyDownMonaco.filter(e => e.keyCode === 18 && (isMacintosh ? e.metaKey : e.ctrlKey)).on(() => this._onShouldFocusResults.fire(), this));
|
|
95
|
+
let preexistingContent = this.getValue();
|
|
96
|
+
const inputWidgetModel = this.inputWidget.getModel();
|
|
97
|
+
if (inputWidgetModel) {
|
|
98
|
+
this._register(inputWidgetModel.onDidChangeContent(() => {
|
|
99
|
+
const content = this.getValue();
|
|
100
|
+
this.placeholderText.style.visibility = content ? 'hidden' : 'visible';
|
|
101
|
+
if (preexistingContent.trim() === content.trim()) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
this._onInputDidChange.fire(undefined);
|
|
105
|
+
preexistingContent = content;
|
|
106
|
+
}));
|
|
107
|
+
}
|
|
108
|
+
const validatedSuggestProvider = {
|
|
109
|
+
provideResults: suggestionProvider.provideResults,
|
|
110
|
+
sortKey: suggestionProvider.sortKey || (a => a),
|
|
111
|
+
triggerCharacters: suggestionProvider.triggerCharacters || [],
|
|
112
|
+
wordDefinition: suggestionProvider.wordDefinition ? ensureValidWordDefinition(suggestionProvider.wordDefinition) : undefined,
|
|
113
|
+
alwaysShowSuggestions: !!suggestionProvider.alwaysShowSuggestions,
|
|
114
|
+
};
|
|
115
|
+
this.setValue(options.value || '');
|
|
116
|
+
this._register(languageFeaturesService.completionProvider.register({ scheme: scopeHandle.scheme, pattern: '**/' + scopeHandle.path, hasAccessToAllModels: true }, {
|
|
117
|
+
triggerCharacters: validatedSuggestProvider.triggerCharacters,
|
|
118
|
+
provideCompletionItems: (model, position, _context) => {
|
|
119
|
+
const query = model.getValue();
|
|
120
|
+
const zeroIndexedColumn = position.column - 1;
|
|
121
|
+
let alreadyTypedCount = 0, zeroIndexedWordStart = 0;
|
|
122
|
+
if (validatedSuggestProvider.wordDefinition) {
|
|
123
|
+
const wordAtText = getWordAtText(position.column, validatedSuggestProvider.wordDefinition, query, 0);
|
|
124
|
+
alreadyTypedCount = wordAtText?.word.length ?? 0;
|
|
125
|
+
zeroIndexedWordStart = wordAtText ? wordAtText.startColumn - 1 : 0;
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
zeroIndexedWordStart = query.lastIndexOf(' ', zeroIndexedColumn - 1) + 1;
|
|
129
|
+
alreadyTypedCount = zeroIndexedColumn - zeroIndexedWordStart;
|
|
130
|
+
}
|
|
131
|
+
if (!validatedSuggestProvider.alwaysShowSuggestions && alreadyTypedCount > 0 && validatedSuggestProvider.triggerCharacters?.indexOf(query[zeroIndexedWordStart]) === -1) {
|
|
132
|
+
return { suggestions: [] };
|
|
133
|
+
}
|
|
134
|
+
return {
|
|
135
|
+
suggestions: ( (suggestionProvider.provideResults(query).map((result) => {
|
|
136
|
+
let label;
|
|
137
|
+
let rest;
|
|
138
|
+
if (typeof result === 'string') {
|
|
139
|
+
label = result;
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
label = result.label;
|
|
143
|
+
rest = result;
|
|
144
|
+
}
|
|
145
|
+
return {
|
|
146
|
+
label,
|
|
147
|
+
insertText: label,
|
|
148
|
+
range: Range.fromPositions(position.delta(0, -alreadyTypedCount), position),
|
|
149
|
+
sortText: validatedSuggestProvider.sortKey(label),
|
|
150
|
+
kind: 17 ,
|
|
151
|
+
...rest
|
|
152
|
+
};
|
|
153
|
+
})))
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
}));
|
|
157
|
+
this.style(options.styleOverrides || {});
|
|
158
|
+
}
|
|
159
|
+
getScopedContextKeyService(_contextKeyService) {
|
|
160
|
+
return undefined;
|
|
161
|
+
}
|
|
162
|
+
updateAriaLabel(label) {
|
|
163
|
+
this.inputWidget.updateOptions({ ariaLabel: label });
|
|
164
|
+
}
|
|
165
|
+
setValue(val) {
|
|
166
|
+
val = val.replace(/\s/g, ' ');
|
|
167
|
+
const fullRange = this.inputModel.getFullModelRange();
|
|
168
|
+
this.inputWidget.executeEdits('suggestEnabledInput.setValue', [EditOperation.replace(fullRange, val)]);
|
|
169
|
+
this.inputWidget.setScrollTop(0);
|
|
170
|
+
this.inputWidget.setPosition(( (new Position(1, val.length + 1))));
|
|
171
|
+
}
|
|
172
|
+
getValue() {
|
|
173
|
+
return this.inputWidget.getValue();
|
|
174
|
+
}
|
|
175
|
+
style(styleOverrides) {
|
|
176
|
+
this.stylingContainer.style.backgroundColor = asCssVariable(styleOverrides.inputBackground ?? inputBackground);
|
|
177
|
+
this.stylingContainer.style.color = asCssVariable(styleOverrides.inputForeground ?? inputForeground);
|
|
178
|
+
this.placeholderText.style.color = asCssVariable(styleOverrides.inputPlaceholderForeground ?? inputPlaceholderForeground);
|
|
179
|
+
this.stylingContainer.style.borderWidth = '1px';
|
|
180
|
+
this.stylingContainer.style.borderStyle = 'solid';
|
|
181
|
+
this.stylingContainer.style.borderColor = asCssVariableWithDefault(styleOverrides.inputBorder ?? inputBorder, 'transparent');
|
|
182
|
+
const cursor = this.stylingContainer.getElementsByClassName('cursor')[0];
|
|
183
|
+
if (cursor) {
|
|
184
|
+
cursor.style.backgroundColor = asCssVariable(styleOverrides.inputForeground ?? inputForeground);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
focus(selectAll) {
|
|
188
|
+
this.inputWidget.focus();
|
|
189
|
+
if (selectAll && this.inputWidget.getValue()) {
|
|
190
|
+
this.selectAll();
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
onHide() {
|
|
194
|
+
this.inputWidget.onHide();
|
|
195
|
+
}
|
|
196
|
+
layout(dimension) {
|
|
197
|
+
this.inputWidget.layout(dimension);
|
|
198
|
+
this.placeholderText.style.width = `${dimension.width - 2}px`;
|
|
199
|
+
}
|
|
200
|
+
selectAll() {
|
|
201
|
+
this.inputWidget.setSelection(( (new Range(1, 1, 1, this.getValue().length + 1))));
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
SuggestEnabledInput = ( (__decorate([
|
|
205
|
+
( (__param(6, IInstantiationService))),
|
|
206
|
+
( (__param(7, IModelService))),
|
|
207
|
+
( (__param(8, IContextKeyService))),
|
|
208
|
+
( (__param(9, ILanguageFeaturesService))),
|
|
209
|
+
( (__param(10, IConfigurationService)))
|
|
210
|
+
], SuggestEnabledInput)));
|
|
211
|
+
registerThemingParticipant((theme, collector) => {
|
|
212
|
+
const selectionBackgroundColor = theme.getColor(selectionBackground);
|
|
213
|
+
if (selectionBackgroundColor) {
|
|
214
|
+
const inputBackgroundColor = theme.getColor(inputBackground);
|
|
215
|
+
if (inputBackgroundColor) {
|
|
216
|
+
collector.addRule(`.suggest-input-container .monaco-editor .selected-text { background-color: ${( ( inputBackgroundColor.transparent(0.4)))}; }`);
|
|
217
|
+
}
|
|
218
|
+
const inputForegroundColor = theme.getColor(inputForeground);
|
|
219
|
+
if (inputForegroundColor) {
|
|
220
|
+
collector.addRule(`.suggest-input-container .monaco-editor .view-line span.inline-selected-text { color: ${inputForegroundColor}; }`);
|
|
221
|
+
}
|
|
222
|
+
const backgroundColor = theme.getColor(inputBackground);
|
|
223
|
+
if (backgroundColor) {
|
|
224
|
+
collector.addRule(`.suggest-input-container .monaco-editor-background { background-color: ${backgroundColor}; } `);
|
|
225
|
+
}
|
|
226
|
+
collector.addRule(`.suggest-input-container .monaco-editor .focused .selected-text { background-color: ${selectionBackgroundColor}; }`);
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
collector.addRule(`.suggest-input-container .monaco-editor .focused .selected-text { background-color: ${theme.getColor(editorSelectionBackground)}; }`);
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
function getSuggestEnabledInputOptions(ariaLabel) {
|
|
233
|
+
return {
|
|
234
|
+
fontSize: 13,
|
|
235
|
+
lineHeight: 20,
|
|
236
|
+
wordWrap: 'off',
|
|
237
|
+
scrollbar: { vertical: 'hidden', },
|
|
238
|
+
roundedSelection: false,
|
|
239
|
+
guides: {
|
|
240
|
+
indentation: false
|
|
241
|
+
},
|
|
242
|
+
cursorWidth: 1,
|
|
243
|
+
fontFamily: DEFAULT_FONT_FAMILY,
|
|
244
|
+
ariaLabel: ariaLabel || '',
|
|
245
|
+
snippetSuggestions: 'none',
|
|
246
|
+
suggest: { filterGraceful: false, showIcons: false },
|
|
247
|
+
autoClosingBrackets: 'never'
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
export { SuggestEnabledInput };
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { VSBuffer } from 'monaco-editor/esm/vs/base/common/buffer.js';
|
|
3
|
+
import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
|
|
4
|
+
import { basename } from 'monaco-editor/esm/vs/base/common/path.js';
|
|
5
|
+
import { dirname, isEqual } from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
6
|
+
import { assertIsDefined } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
7
|
+
import { IFileDialogService } from 'monaco-editor/esm/vs/platform/dialogs/common/dialogs.js';
|
|
8
|
+
import { IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
|
|
9
|
+
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
10
|
+
import { ILabelService } from 'monaco-editor/esm/vs/platform/label/common/label.js';
|
|
11
|
+
import { IUndoRedoService } from 'monaco-editor/esm/vs/platform/undoRedo/common/undoRedo.js';
|
|
12
|
+
import { ICustomEditorService } from '../common/customEditor.js';
|
|
13
|
+
import { IWebviewService } from '../../webview/browser/webview.js';
|
|
14
|
+
import { LazilyResolvedWebviewEditorInput, IWebviewWorkbenchService } from '../../webviewPanel/browser/webviewWorkbenchService.js';
|
|
15
|
+
import { IFilesConfigurationService } from '../../../services/filesConfiguration/common/filesConfigurationService.js';
|
|
16
|
+
import { IUntitledTextEditorService } from '../../../services/untitled/common/untitledTextEditorService.js';
|
|
17
|
+
let CustomEditorInput = class CustomEditorInput extends LazilyResolvedWebviewEditorInput {
|
|
18
|
+
static create(instantiationService, resource, viewType, group, options) {
|
|
19
|
+
return instantiationService.invokeFunction(accessor => {
|
|
20
|
+
const untitledString = accessor.get(IUntitledTextEditorService).getValue(resource);
|
|
21
|
+
const untitledDocumentData = untitledString ? VSBuffer.fromString(untitledString) : undefined;
|
|
22
|
+
const webview = accessor.get(IWebviewService).createWebviewOverlay({
|
|
23
|
+
providedViewType: viewType,
|
|
24
|
+
title: undefined,
|
|
25
|
+
options: { customClasses: options?.customClasses },
|
|
26
|
+
contentOptions: {},
|
|
27
|
+
extension: undefined,
|
|
28
|
+
});
|
|
29
|
+
const input = instantiationService.createInstance(CustomEditorInput, { resource, viewType }, webview, { untitledDocumentData: untitledDocumentData, oldResource: options?.oldResource });
|
|
30
|
+
if (typeof group !== 'undefined') {
|
|
31
|
+
input.updateGroup(group);
|
|
32
|
+
}
|
|
33
|
+
return input;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
get resource() { return this._editorResource; }
|
|
37
|
+
constructor(init, webview, options, webviewWorkbenchService, instantiationService, labelService, customEditorService, fileDialogService, undoRedoService, fileService, filesConfigurationService) {
|
|
38
|
+
super({ providedId: init.viewType, viewType: init.viewType, name: '' }, webview, webviewWorkbenchService);
|
|
39
|
+
this.instantiationService = instantiationService;
|
|
40
|
+
this.labelService = labelService;
|
|
41
|
+
this.customEditorService = customEditorService;
|
|
42
|
+
this.fileDialogService = fileDialogService;
|
|
43
|
+
this.undoRedoService = undoRedoService;
|
|
44
|
+
this.fileService = fileService;
|
|
45
|
+
this.filesConfigurationService = filesConfigurationService;
|
|
46
|
+
this._shortDescription = undefined;
|
|
47
|
+
this._mediumDescription = undefined;
|
|
48
|
+
this._longDescription = undefined;
|
|
49
|
+
this._shortTitle = undefined;
|
|
50
|
+
this._mediumTitle = undefined;
|
|
51
|
+
this._longTitle = undefined;
|
|
52
|
+
this._editorResource = init.resource;
|
|
53
|
+
this.oldResource = options.oldResource;
|
|
54
|
+
this._defaultDirtyState = options.startsDirty;
|
|
55
|
+
this._backupId = options.backupId;
|
|
56
|
+
this._untitledDocumentData = options.untitledDocumentData;
|
|
57
|
+
this.registerListeners();
|
|
58
|
+
}
|
|
59
|
+
registerListeners() {
|
|
60
|
+
this._register(this.labelService.onDidChangeFormatters(e => this.onLabelEvent(e.scheme)));
|
|
61
|
+
this._register(this.fileService.onDidChangeFileSystemProviderRegistrations(e => this.onLabelEvent(e.scheme)));
|
|
62
|
+
this._register(this.fileService.onDidChangeFileSystemProviderCapabilities(e => this.onLabelEvent(e.scheme)));
|
|
63
|
+
}
|
|
64
|
+
onLabelEvent(scheme) {
|
|
65
|
+
if (scheme === this.resource.scheme) {
|
|
66
|
+
this.updateLabel();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
updateLabel() {
|
|
70
|
+
this._shortDescription = undefined;
|
|
71
|
+
this._mediumDescription = undefined;
|
|
72
|
+
this._longDescription = undefined;
|
|
73
|
+
this._shortTitle = undefined;
|
|
74
|
+
this._mediumTitle = undefined;
|
|
75
|
+
this._longTitle = undefined;
|
|
76
|
+
this._onDidChangeLabel.fire();
|
|
77
|
+
}
|
|
78
|
+
get typeId() {
|
|
79
|
+
return CustomEditorInput.typeId;
|
|
80
|
+
}
|
|
81
|
+
get editorId() {
|
|
82
|
+
return this.viewType;
|
|
83
|
+
}
|
|
84
|
+
get capabilities() {
|
|
85
|
+
let capabilities = 0 ;
|
|
86
|
+
capabilities |= 128 ;
|
|
87
|
+
if (!this.customEditorService.getCustomEditorCapabilities(this.viewType)?.supportsMultipleEditorsPerDocument) {
|
|
88
|
+
capabilities |= 8 ;
|
|
89
|
+
}
|
|
90
|
+
if (this._modelRef) {
|
|
91
|
+
if (this._modelRef.object.isReadonly()) {
|
|
92
|
+
capabilities |= 2 ;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
if (this.filesConfigurationService.isReadonly(this.resource)) {
|
|
97
|
+
capabilities |= 2 ;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if (this.resource.scheme === Schemas.untitled) {
|
|
101
|
+
capabilities |= 4 ;
|
|
102
|
+
}
|
|
103
|
+
return capabilities;
|
|
104
|
+
}
|
|
105
|
+
getName() {
|
|
106
|
+
return basename(this.labelService.getUriLabel(this.resource));
|
|
107
|
+
}
|
|
108
|
+
getDescription(verbosity = 1 ) {
|
|
109
|
+
switch (verbosity) {
|
|
110
|
+
case 0 :
|
|
111
|
+
return this.shortDescription;
|
|
112
|
+
case 2 :
|
|
113
|
+
return this.longDescription;
|
|
114
|
+
case 1 :
|
|
115
|
+
default:
|
|
116
|
+
return this.mediumDescription;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
get shortDescription() {
|
|
120
|
+
if (typeof this._shortDescription !== 'string') {
|
|
121
|
+
this._shortDescription = this.labelService.getUriBasenameLabel(dirname(this.resource));
|
|
122
|
+
}
|
|
123
|
+
return this._shortDescription;
|
|
124
|
+
}
|
|
125
|
+
get mediumDescription() {
|
|
126
|
+
if (typeof this._mediumDescription !== 'string') {
|
|
127
|
+
this._mediumDescription = this.labelService.getUriLabel(dirname(this.resource), { relative: true });
|
|
128
|
+
}
|
|
129
|
+
return this._mediumDescription;
|
|
130
|
+
}
|
|
131
|
+
get longDescription() {
|
|
132
|
+
if (typeof this._longDescription !== 'string') {
|
|
133
|
+
this._longDescription = this.labelService.getUriLabel(dirname(this.resource));
|
|
134
|
+
}
|
|
135
|
+
return this._longDescription;
|
|
136
|
+
}
|
|
137
|
+
get shortTitle() {
|
|
138
|
+
if (typeof this._shortTitle !== 'string') {
|
|
139
|
+
this._shortTitle = this.getName();
|
|
140
|
+
}
|
|
141
|
+
return this._shortTitle;
|
|
142
|
+
}
|
|
143
|
+
get mediumTitle() {
|
|
144
|
+
if (typeof this._mediumTitle !== 'string') {
|
|
145
|
+
this._mediumTitle = this.labelService.getUriLabel(this.resource, { relative: true });
|
|
146
|
+
}
|
|
147
|
+
return this._mediumTitle;
|
|
148
|
+
}
|
|
149
|
+
get longTitle() {
|
|
150
|
+
if (typeof this._longTitle !== 'string') {
|
|
151
|
+
this._longTitle = this.labelService.getUriLabel(this.resource);
|
|
152
|
+
}
|
|
153
|
+
return this._longTitle;
|
|
154
|
+
}
|
|
155
|
+
getTitle(verbosity) {
|
|
156
|
+
switch (verbosity) {
|
|
157
|
+
case 0 :
|
|
158
|
+
return this.shortTitle;
|
|
159
|
+
case 2 :
|
|
160
|
+
return this.longTitle;
|
|
161
|
+
default:
|
|
162
|
+
case 1 :
|
|
163
|
+
return this.mediumTitle;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
matches(other) {
|
|
167
|
+
if (super.matches(other)) {
|
|
168
|
+
return true;
|
|
169
|
+
}
|
|
170
|
+
return this === other || (other instanceof CustomEditorInput
|
|
171
|
+
&& this.viewType === other.viewType
|
|
172
|
+
&& isEqual(this.resource, other.resource));
|
|
173
|
+
}
|
|
174
|
+
copy() {
|
|
175
|
+
return CustomEditorInput.create(this.instantiationService, this.resource, this.viewType, this.group, this.webview.options);
|
|
176
|
+
}
|
|
177
|
+
isDirty() {
|
|
178
|
+
if (!this._modelRef) {
|
|
179
|
+
return !!this._defaultDirtyState;
|
|
180
|
+
}
|
|
181
|
+
return this._modelRef.object.isDirty();
|
|
182
|
+
}
|
|
183
|
+
async save(groupId, options) {
|
|
184
|
+
if (!this._modelRef) {
|
|
185
|
+
return undefined;
|
|
186
|
+
}
|
|
187
|
+
const target = await this._modelRef.object.saveCustomEditor(options);
|
|
188
|
+
if (!target) {
|
|
189
|
+
return undefined;
|
|
190
|
+
}
|
|
191
|
+
if (!isEqual(target, this.resource)) {
|
|
192
|
+
return { resource: target };
|
|
193
|
+
}
|
|
194
|
+
return this;
|
|
195
|
+
}
|
|
196
|
+
async saveAs(groupId, options) {
|
|
197
|
+
if (!this._modelRef) {
|
|
198
|
+
return undefined;
|
|
199
|
+
}
|
|
200
|
+
const dialogPath = this._editorResource;
|
|
201
|
+
const target = await this.fileDialogService.pickFileToSave(dialogPath, options?.availableFileSystems);
|
|
202
|
+
if (!target) {
|
|
203
|
+
return undefined;
|
|
204
|
+
}
|
|
205
|
+
if (!(await this._modelRef.object.saveCustomEditorAs(this._editorResource, target, options))) {
|
|
206
|
+
return undefined;
|
|
207
|
+
}
|
|
208
|
+
return (await this.rename(groupId, target))?.editor;
|
|
209
|
+
}
|
|
210
|
+
async revert(group, options) {
|
|
211
|
+
if (this._modelRef) {
|
|
212
|
+
return this._modelRef.object.revert(options);
|
|
213
|
+
}
|
|
214
|
+
this._defaultDirtyState = false;
|
|
215
|
+
this._onDidChangeDirty.fire();
|
|
216
|
+
}
|
|
217
|
+
async resolve() {
|
|
218
|
+
await super.resolve();
|
|
219
|
+
if (this.isDisposed()) {
|
|
220
|
+
return null;
|
|
221
|
+
}
|
|
222
|
+
if (!this._modelRef) {
|
|
223
|
+
const oldCapabilities = this.capabilities;
|
|
224
|
+
this._modelRef = this._register(assertIsDefined(await this.customEditorService.models.tryRetain(this.resource, this.viewType)));
|
|
225
|
+
this._register(this._modelRef.object.onDidChangeDirty(() => this._onDidChangeDirty.fire()));
|
|
226
|
+
this._register(this._modelRef.object.onDidChangeReadonly(() => this._onDidChangeCapabilities.fire()));
|
|
227
|
+
if (this._untitledDocumentData) {
|
|
228
|
+
this._defaultDirtyState = true;
|
|
229
|
+
}
|
|
230
|
+
if (this.isDirty()) {
|
|
231
|
+
this._onDidChangeDirty.fire();
|
|
232
|
+
}
|
|
233
|
+
if (this.capabilities !== oldCapabilities) {
|
|
234
|
+
this._onDidChangeCapabilities.fire();
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
return null;
|
|
238
|
+
}
|
|
239
|
+
async rename(group, newResource) {
|
|
240
|
+
return { editor: { resource: newResource } };
|
|
241
|
+
}
|
|
242
|
+
undo() {
|
|
243
|
+
assertIsDefined(this._modelRef);
|
|
244
|
+
return this.undoRedoService.undo(this.resource);
|
|
245
|
+
}
|
|
246
|
+
redo() {
|
|
247
|
+
assertIsDefined(this._modelRef);
|
|
248
|
+
return this.undoRedoService.redo(this.resource);
|
|
249
|
+
}
|
|
250
|
+
onMove(handler) {
|
|
251
|
+
this._moveHandler = handler;
|
|
252
|
+
}
|
|
253
|
+
transfer(other) {
|
|
254
|
+
if (!super.transfer(other)) {
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
other._moveHandler = this._moveHandler;
|
|
258
|
+
this._moveHandler = undefined;
|
|
259
|
+
return other;
|
|
260
|
+
}
|
|
261
|
+
get backupId() {
|
|
262
|
+
if (this._modelRef) {
|
|
263
|
+
return this._modelRef.object.backupId;
|
|
264
|
+
}
|
|
265
|
+
return this._backupId;
|
|
266
|
+
}
|
|
267
|
+
get untitledDocumentData() {
|
|
268
|
+
return this._untitledDocumentData;
|
|
269
|
+
}
|
|
270
|
+
toUntyped() {
|
|
271
|
+
return {
|
|
272
|
+
resource: this.resource,
|
|
273
|
+
options: {
|
|
274
|
+
override: this.viewType
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
CustomEditorInput.typeId = 'workbench.editors.webviewEditor';
|
|
280
|
+
CustomEditorInput = ( __decorate([
|
|
281
|
+
( __param(3, IWebviewWorkbenchService)),
|
|
282
|
+
( __param(4, IInstantiationService)),
|
|
283
|
+
( __param(5, ILabelService)),
|
|
284
|
+
( __param(6, ICustomEditorService)),
|
|
285
|
+
( __param(7, IFileDialogService)),
|
|
286
|
+
( __param(8, IUndoRedoService)),
|
|
287
|
+
( __param(9, IFileService)),
|
|
288
|
+
( __param(10, IFilesConfigurationService))
|
|
289
|
+
], CustomEditorInput));
|
|
290
|
+
export { CustomEditorInput };
|
|
@@ -59,6 +59,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
59
59
|
const keybindingLabel = keybinding ? ` (${keybinding})` : '';
|
|
60
60
|
this.start.title = this.action.label + keybindingLabel;
|
|
61
61
|
this.start.setAttribute('role', 'button');
|
|
62
|
+
this.start.ariaLabel = this.start.title;
|
|
62
63
|
this.toDispose.push(dom.addDisposableListener(this.start, dom.EventType.CLICK, () => {
|
|
63
64
|
this.start.blur();
|
|
64
65
|
if (this.debugService.state !== 1 ) {
|
|
@@ -407,7 +407,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
407
407
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
408
408
|
id: STEP_OVER_ID,
|
|
409
409
|
weight: 200 ,
|
|
410
|
-
primary:
|
|
410
|
+
primary: 68 ,
|
|
411
|
+
secondary: isWeb ? [((512 | 68) )] : undefined,
|
|
411
412
|
when: ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')),
|
|
412
413
|
handler: async (accessor, _, context) => {
|
|
413
414
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
@@ -3,7 +3,7 @@ import { flatten, distinct } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
|
3
3
|
import { sequence } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
4
4
|
import { CancellationTokenSource, CancellationToken } from 'monaco-editor/esm/vs/base/common/cancellation.js';
|
|
5
5
|
import { Emitter, Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
6
|
-
import * as
|
|
6
|
+
import * as json from 'monaco-editor/esm/vs/base/common/json.js';
|
|
7
7
|
import { dispose, DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
8
8
|
import * as objects from 'monaco-editor/esm/vs/base/common/objects.js';
|
|
9
9
|
import * as resources from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
@@ -163,22 +163,6 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
163
163
|
type,
|
|
164
164
|
pick: async () => {
|
|
165
165
|
await this.adapterManager.activateDebuggers(onDebugDynamicConfigurationsName, type);
|
|
166
|
-
const disposables = ( new DisposableStore());
|
|
167
|
-
const input = disposables.add(this.quickInputService.createQuickPick());
|
|
168
|
-
input.busy = true;
|
|
169
|
-
input.placeholder = ( nls.localize('selectConfiguration', "Select Launch Configuration"));
|
|
170
|
-
input.show();
|
|
171
|
-
const chosenPromise = ( new Promise(resolve => {
|
|
172
|
-
disposables.add(input.onDidAccept(() => resolve(input.activeItems[0])));
|
|
173
|
-
disposables.add(input.onDidTriggerItemButton(async (context) => {
|
|
174
|
-
resolve(undefined);
|
|
175
|
-
const { launch, config } = context.item;
|
|
176
|
-
await launch.openConfigFile({ preserveFocus: false, type: config.type, suppressInitialConfigs: true });
|
|
177
|
-
await launch.writeConfiguration(config);
|
|
178
|
-
await this.selectConfiguration(launch, config.name);
|
|
179
|
-
this.removeRecentDynamicConfigurations(config.name, config.type);
|
|
180
|
-
}));
|
|
181
|
-
}));
|
|
182
166
|
const token = ( new CancellationTokenSource());
|
|
183
167
|
const picks = [];
|
|
184
168
|
const provider = this.configProviders.find(p => p.type === type && p.triggerKind === DebugConfigurationProviderTriggerKind.Dynamic && p.provideDebugConfigurations);
|
|
@@ -196,10 +180,26 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
196
180
|
})))));
|
|
197
181
|
}
|
|
198
182
|
});
|
|
183
|
+
const disposables = ( new DisposableStore());
|
|
184
|
+
const input = disposables.add(this.quickInputService.createQuickPick());
|
|
185
|
+
input.busy = true;
|
|
186
|
+
input.placeholder = ( nls.localize('selectConfiguration', "Select Launch Configuration"));
|
|
187
|
+
const chosenPromise = ( new Promise(resolve => {
|
|
188
|
+
disposables.add(input.onDidAccept(() => resolve(input.activeItems[0])));
|
|
189
|
+
disposables.add(input.onDidTriggerItemButton(async (context) => {
|
|
190
|
+
resolve(undefined);
|
|
191
|
+
const { launch, config } = context.item;
|
|
192
|
+
await launch.openConfigFile({ preserveFocus: false, type: config.type, suppressInitialConfigs: true });
|
|
193
|
+
await launch.writeConfiguration(config);
|
|
194
|
+
await this.selectConfiguration(launch, config.name);
|
|
195
|
+
this.removeRecentDynamicConfigurations(config.name, config.type);
|
|
196
|
+
}));
|
|
197
|
+
}));
|
|
199
198
|
const nestedPicks = await Promise.all(picks);
|
|
200
199
|
const items = flatten(nestedPicks);
|
|
201
200
|
input.items = items;
|
|
202
201
|
input.busy = false;
|
|
202
|
+
input.show();
|
|
203
203
|
const chosen = await chosenPromise;
|
|
204
204
|
disposables.dispose();
|
|
205
205
|
if (!chosen) {
|
|
@@ -225,7 +225,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
225
225
|
}
|
|
226
226
|
removeRecentDynamicConfigurations(name, type) {
|
|
227
227
|
const remaining = this.getRecentDynamicConfigurations().filter(c => c.name !== name || c.type !== type);
|
|
228
|
-
this.storageService.store(DEBUG_RECENT_DYNAMIC_CONFIGURATIONS, JSON.stringify(remaining), 1 ,
|
|
228
|
+
this.storageService.store(DEBUG_RECENT_DYNAMIC_CONFIGURATIONS, JSON.stringify(remaining), 1 , 1 );
|
|
229
229
|
if (this.selectedConfiguration.name === name && this.selectedType === type && this.selectedDynamic) {
|
|
230
230
|
this.selectConfiguration(undefined, undefined);
|
|
231
231
|
}
|
|
@@ -349,7 +349,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
349
349
|
if (name && dynamicConfig.type) {
|
|
350
350
|
recentDynamicProviders.unshift({ name, type: dynamicConfig.type });
|
|
351
351
|
recentDynamicProviders = distinct(recentDynamicProviders, t => `${t.name} : ${t.type}`);
|
|
352
|
-
this.storageService.store(DEBUG_RECENT_DYNAMIC_CONFIGURATIONS, JSON.stringify(recentDynamicProviders), 1 ,
|
|
352
|
+
this.storageService.store(DEBUG_RECENT_DYNAMIC_CONFIGURATIONS, JSON.stringify(recentDynamicProviders), 1 , 1 );
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
else if (!this.selectedName || names.indexOf(this.selectedName) === -1) {
|
|
@@ -562,7 +562,7 @@ let WorkspaceLaunch = class WorkspaceLaunch extends AbstractLaunch {
|
|
|
562
562
|
if (!launchExistInFile) {
|
|
563
563
|
const content = await this.getInitialConfigurationContent(undefined, type, useInitialConfigs, token);
|
|
564
564
|
if (content) {
|
|
565
|
-
await this.configurationService.updateValue('launch',
|
|
565
|
+
await this.configurationService.updateValue('launch', json.parse(content), 5 );
|
|
566
566
|
}
|
|
567
567
|
else {
|
|
568
568
|
return { editor: null, created: false };
|