@codingame/monaco-vscode-api 1.82.4-next.1 → 1.82.5-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/extensions.d.ts +3 -3
- package/external/xterm/typings/xterm.d.ts +1729 -0
- package/external/xterm-addon-canvas/typings/xterm-addon-canvas.d.ts +38 -0
- package/external/xterm-addon-image/typings/xterm-addon-image.d.ts +115 -0
- package/external/xterm-addon-search/typings/xterm-addon-search.d.ts +141 -0
- package/external/xterm-addon-serialize/typings/xterm-addon-serialize.d.ts +83 -0
- package/external/xterm-addon-unicode11/typings/xterm-addon-unicode11.d.ts +9 -0
- package/external/xterm-addon-webgl/typings/xterm-addon-webgl.d.ts +43 -0
- package/external/xterm-headless/typings/xterm-headless.d.ts +49 -0
- package/missing-services.js +0 -1
- package/monaco-editor-treemending.patch +551 -551
- package/package.json +21 -1
- package/service-override/bulkEdit.js +0 -1
- package/service-override/environment.js +0 -1
- package/service-override/extensions.js +1 -1
- package/service-override/files.js +0 -1
- package/service-override/keybindings.js +1 -6
- package/service-override/layout.js +0 -1
- package/service-override/output.js +0 -1
- package/service-override/quickaccess.js +0 -1
- package/services.js +10 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +1 -1
- package/README.md +0 -392
- package/override/vs/workbench/contrib/notebook/browser/notebookEditor.js +0 -2
- package/service-override/accessibility.d.ts +0 -5
- package/service-override/accessibility.js +0 -11
- package/service-override/audioCue.d.ts +0 -5
- package/service-override/audioCue.js +0 -13
- package/service-override/bulkEdit.d.ts +0 -5
- package/service-override/configuration.d.ts +0 -17
- package/service-override/configuration.js +0 -117
- package/service-override/debug.d.ts +0 -5
- package/service-override/debug.js +0 -23
- package/service-override/dialogs.d.ts +0 -5
- package/service-override/dialogs.js +0 -57
- package/service-override/editor.d.ts +0 -10
- package/service-override/editor.js +0 -37
- package/service-override/environment.d.ts +0 -6
- package/service-override/extensions.d.ts +0 -50
- package/service-override/files.d.ts +0 -103
- package/service-override/keybindings.d.ts +0 -10
- package/service-override/languageDetectionWorker.d.ts +0 -5
- package/service-override/languageDetectionWorker.js +0 -15
- package/service-override/languages.d.ts +0 -11
- package/service-override/languages.js +0 -27
- package/service-override/layout.d.ts +0 -71
- package/service-override/lifecycle.d.ts +0 -5
- package/service-override/lifecycle.js +0 -10
- package/service-override/markers.d.ts +0 -5
- package/service-override/markers.js +0 -6
- package/service-override/model.d.ts +0 -5
- package/service-override/model.js +0 -10
- package/service-override/notifications.d.ts +0 -5
- package/service-override/notifications.js +0 -34
- package/service-override/output.d.ts +0 -6
- package/service-override/preferences.d.ts +0 -5
- package/service-override/preferences.js +0 -16
- package/service-override/quickaccess.d.ts +0 -10
- package/service-override/remoteAgent.d.ts +0 -6
- package/service-override/remoteAgent.js +0 -42
- package/service-override/search.d.ts +0 -5
- package/service-override/search.js +0 -19
- package/service-override/snippets.d.ts +0 -9
- package/service-override/snippets.js +0 -21
- package/service-override/storage.d.ts +0 -40
- package/service-override/storage.js +0 -116
- package/service-override/terminal.d.ts +0 -69
- package/service-override/terminal.js +0 -117
- package/service-override/textmate.d.ts +0 -6
- package/service-override/textmate.js +0 -41
- package/service-override/theme.d.ts +0 -7
- package/service-override/theme.js +0 -26
- package/service-override/viewBanner.d.ts +0 -6
- package/service-override/viewBanner.js +0 -10
- package/service-override/viewStatusBar.d.ts +0 -6
- package/service-override/viewStatusBar.js +0 -10
- package/service-override/viewTitleBar.d.ts +0 -6
- package/service-override/viewTitleBar.js +0 -10
- package/service-override/views.d.ts +0 -74
- package/service-override/views.js +0 -511
- package/service-override/workspaceTrust.d.ts +0 -5
- package/service-override/workspaceTrust.js +0 -13
- package/vscode/src/vs/base/browser/broadcast.js +0 -52
- package/vscode/src/vs/base/browser/indexedDB.d.ts +0 -17
- package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +0 -178
- package/vscode/src/vs/base/browser/ui/grid/grid.js +0 -465
- package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +0 -4
- package/vscode/src/vs/base/browser/ui/grid/gridview.js +0 -977
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +0 -60
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +0 -14
- package/vscode/src/vs/base/common/codicons.d.ts +0 -556
- package/vscode/src/vs/base/common/processes.js +0 -24
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +0 -42
- package/vscode/src/vs/editor/common/services/modelUndoRedoParticipant.js +0 -56
- package/vscode/src/vs/editor/common/services/textResourceConfigurationService.js +0 -116
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +0 -67
- package/vscode/src/vs/platform/audioCues/browser/media/all.mp3.js +0 -20
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +0 -10
- package/vscode/src/vs/platform/download/common/downloadIpc.js +0 -16
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.d.ts +0 -43
- package/vscode/src/vs/platform/files/common/diskFileSystemProviderClient.js +0 -136
- package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.d.ts +0 -50
- package/vscode/src/vs/platform/log/common/logIpc.js +0 -24
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +0 -94
- package/vscode/src/vs/platform/remote/browser/browserSocketFactory.js +0 -193
- package/vscode/src/vs/platform/remote/browser/remoteAuthorityResolverService.js +0 -107
- package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +0 -41
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +0 -566
- package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +0 -29
- package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +0 -22
- package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +0 -46
- package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +0 -94
- package/vscode/src/vs/platform/terminal/common/environmentVariable.js +0 -7
- package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +0 -196
- package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +0 -37
- package/vscode/src/vs/platform/terminal/common/terminalLogService.js +0 -42
- package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +0 -467
- package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +0 -107
- package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +0 -66
- package/vscode/src/vs/platform/terminal/common/terminalStrings.js +0 -16
- package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +0 -319
- package/vscode/src/vs/platform/userDataSync/common/settingsMerge.js +0 -40
- package/vscode/src/vs/platform/webview/common/mimeTypes.js +0 -22
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +0 -62
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +0 -699
- package/vscode/src/vs/workbench/api/common/configurationExtensionPoint.js +0 -450
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.d.ts +0 -14
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +0 -236
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.d.ts +0 -43
- package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.d.ts +0 -33
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.d.ts +0 -138
- package/vscode/src/vs/workbench/api/common/extHostFileSystemInfo.d.ts +0 -21
- package/vscode/src/vs/workbench/api/common/extHostInitDataService.d.ts +0 -9
- package/vscode/src/vs/workbench/api/common/extHostLocalizationService.d.ts +0 -29
- package/vscode/src/vs/workbench/api/common/extHostManagedSockets.d.ts +0 -11
- package/vscode/src/vs/workbench/api/common/extHostRpcService.d.ts +0 -9
- package/vscode/src/vs/workbench/api/common/extHostStoragePaths.d.ts +0 -14
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +0 -53
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.d.ts +0 -19
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +0 -12
- package/vscode/src/vs/workbench/api/common/extHostUriTransformerService.d.ts +0 -9
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +0 -91
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.d.ts +0 -21
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +0 -605
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarActions.js +0 -597
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +0 -116
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +0 -783
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +0 -88
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.js +0 -228
- package/vscode/src/vs/workbench/browser/parts/banner/media/bannerpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +0 -691
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.d.ts +0 -7
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +0 -84
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +0 -318
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.web.contribution.js +0 -69
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialogHandler.js +0 -127
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +0 -692
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +0 -141
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +0 -414
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +0 -507
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +0 -1233
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +0 -133
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +0 -306
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +0 -850
- package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/notabstitlecontrol.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/titlecontrol.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/noTabsTitleControl.js +0 -247
- package/vscode/src/vs/workbench/browser/parts/editor/tabsTitleControl.js +0 -1569
- package/vscode/src/vs/workbench/browser/parts/editor/titleControl.js +0 -292
- package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsActions.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsList.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsToasts.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +0 -124
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +0 -58
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +0 -227
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +0 -212
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +0 -419
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +0 -398
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +0 -78
- package/vscode/src/vs/workbench/browser/parts/panel/media/basepanelpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +0 -134
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +0 -756
- package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +0 -59
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +0 -217
- package/vscode/src/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarActions.js +0 -109
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarItem.js +0 -234
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarModel.js +0 -249
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.js +0 -439
- package/vscode/src/vs/workbench/browser/parts/titlebar/commandCenterControl.js +0 -134
- package/vscode/src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.d.ts +0 -115
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.d.ts +0 -77
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.js +0 -365
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +0 -216
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +0 -104
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +0 -1589
- package/vscode/src/vs/workbench/common/activity.js +0 -3
- package/vscode/src/vs/workbench/common/dialogs.js +0 -31
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibility.contribution.js +0 -13
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +0 -312
- package/vscode/src/vs/workbench/contrib/accessibility/browser/unfocusedViewDimmingContribution.js +0 -63
- package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCueDebuggerContribution.js +0 -45
- package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCueLineFeatureContribution.js +0 -170
- package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCues.contribution.js +0 -181
- package/vscode/src/vs/workbench/contrib/audioCues/browser/commands.js +0 -49
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +0 -262
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +0 -339
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +0 -119
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.js +0 -35
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +0 -345
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +0 -362
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +0 -255
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +0 -249
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +0 -14
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +0 -137
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +0 -212
- package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +0 -72
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +0 -61
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +0 -106
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +0 -198
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +0 -783
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +0 -397
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +0 -1296
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +0 -176
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +0 -958
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +0 -496
- package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +0 -345
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +0 -297
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +0 -398
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +0 -825
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +0 -619
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +0 -58
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +0 -525
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +0 -679
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +0 -354
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +0 -204
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +0 -80
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +0 -141
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +0 -1172
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +0 -1142
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +0 -104
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +0 -66
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +0 -273
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +0 -312
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +0 -166
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +0 -661
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +0 -103
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +0 -229
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +0 -629
- package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +0 -693
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +0 -951
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +0 -46
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +0 -334
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +0 -96
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +0 -573
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +0 -413
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +0 -100
- package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +0 -19
- package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +0 -15
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +0 -98
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +0 -57
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +0 -1480
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +0 -344
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +0 -121
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +0 -173
- package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +0 -34
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +0 -115
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +0 -258
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +0 -25
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +0 -81
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +0 -281
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +0 -2414
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +0 -16
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -5
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +0 -73
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +0 -36
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +0 -325
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +0 -230
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +0 -97
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +0 -352
- package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +0 -426
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +0 -508
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +0 -615
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution2.js +0 -94
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +0 -144
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +0 -53
- package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +0 -134
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +0 -353
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/markers/browser/markers.contribution.js +0 -586
- package/vscode/src/vs/workbench/contrib/markers/browser/markersFilterOptions.js +0 -75
- package/vscode/src/vs/workbench/contrib/markers/browser/markersModel.js +0 -200
- package/vscode/src/vs/workbench/contrib/markers/browser/markersTable.js +0 -455
- package/vscode/src/vs/workbench/contrib/markers/browser/markersTreeViewer.js +0 -670
- package/vscode/src/vs/workbench/contrib/markers/browser/markersView.js +0 -873
- package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.js +0 -132
- package/vscode/src/vs/workbench/contrib/markers/browser/media/markers.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/markers/browser/messages.js +0 -170
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +0 -70
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +0 -158
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +0 -3
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +0 -261
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.js +0 -10
- package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +0 -290
- package/vscode/src/vs/workbench/contrib/outline/browser/outlineViewState.js +0 -66
- package/vscode/src/vs/workbench/contrib/output/common/outputLinkComputer.js +0 -129
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +0 -272
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditor.js +0 -1102
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindings.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindingsEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/preferences.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsWidgets.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferences.contribution.js +0 -1213
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesActions.js +0 -94
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesEditor.js +0 -47
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +0 -37
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesRenderers.js +0 -747
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesSearch.js +0 -349
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +0 -468
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditor2.js +0 -1477
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditorSettingIndicators.js +0 -504
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +0 -296
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsSearchMenu.js +0 -79
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTree.js +0 -2041
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +0 -771
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsWidgets.js +0 -1004
- package/vscode/src/vs/workbench/contrib/preferences/browser/tocTree.js +0 -196
- package/vscode/src/vs/workbench/contrib/preferences/common/preferencesContribution.js +0 -151
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +0 -67
- package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +0 -207
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +0 -27
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +0 -1666
- package/vscode/src/vs/workbench/contrib/remote/common/remote.contribution.js +0 -481
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +0 -759
- package/vscode/src/vs/workbench/contrib/search/browser/media/anythingQuickAccess.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/search/browser/media/searchview.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearchContributions.js +0 -7
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +0 -220
- package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +0 -232
- package/vscode/src/vs/workbench/contrib/search/browser/replaceContributions.js +0 -7
- package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +0 -224
- package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +0 -513
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +0 -46
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +0 -204
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +0 -354
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +0 -459
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +0 -365
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +0 -35
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +0 -23
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +0 -308
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +0 -41
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +0 -39
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +0 -58
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +0 -383
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +0 -1916
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +0 -636
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +0 -220
- package/vscode/src/vs/workbench/contrib/search/common/cacheState.js +0 -85
- package/vscode/src/vs/workbench/contrib/search/common/constants.js +0 -66
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/constants.js +0 -11
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +0 -477
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +0 -700
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +0 -187
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +0 -298
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +0 -135
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +0 -268
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +0 -20
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/configureSnippets.js +0 -264
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +0 -87
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/insertSnippet.js +0 -126
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/surroundWithSnippet.js +0 -56
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCodeActionProvider.js +0 -136
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetPicker.js +0 -83
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.contribution.js +0 -113
- package/vscode/src/vs/workbench/contrib/terminal/browser/baseTerminalBackend.js +0 -101
- package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +0 -54
- package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +0 -119
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/scrollbar.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/terminal.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/widgets.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/xterm.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/remotePty.js +0 -175
- package/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.js +0 -311
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.contribution.js +0 -240
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +0 -1964
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalCommands.js +0 -22
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.js +0 -215
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +0 -16
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditor.js +0 -186
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorService.js +0 -239
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEvents.js +0 -47
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +0 -25
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroup.js +0 -482
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroupService.js +0 -367
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +0 -37
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +0 -2101
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstanceService.js +0 -82
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMainContribution.js +0 -82
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +0 -762
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +0 -617
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileQuickpick.js +0 -278
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.js +0 -316
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileService.js +0 -218
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +0 -146
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +0 -269
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalService.js +0 -1134
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +0 -108
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabbedView.js +0 -420
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.js +0 -676
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTooltip.js +0 -72
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalUri.js +0 -39
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalView.js +0 -598
- package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +0 -36
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +0 -469
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +0 -97
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +0 -56
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +0 -416
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +0 -390
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +0 -793
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariableService.js +0 -96
- package/vscode/src/vs/workbench/contrib/terminal/common/history.js +0 -356
- package/vscode/src/vs/workbench/contrib/terminal/common/remote/remoteTerminalChannel.js +0 -253
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalConfiguration.js +0 -1016
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +0 -272
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +0 -93
- package/vscode/src/vs/workbench/contrib/terminal/electron-sandbox/terminalProfileResolverService.js +0 -42
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/bufferContentTracker.js +0 -110
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminal.accessibility.contribution.js +0 -232
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibilityHelp.js +0 -138
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleBuffer.js +0 -226
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleWidget.js +0 -142
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.js +0 -98
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkProviderService.js +0 -26
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService.js +0 -155
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +0 -247
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +0 -334
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +0 -117
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +0 -288
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +0 -94
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +0 -86
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +0 -640
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +0 -63
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +0 -57
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +0 -120
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +0 -119
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +0 -61
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +0 -232
- package/vscode/src/vs/workbench/contrib/workspace/browser/media/workspaceTrustEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspace.contribution.js +0 -842
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspaceTrustEditor.js +0 -1047
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +0 -14
- package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -94
- package/vscode/src/vs/workbench/services/configuration/browser/configuration.js +0 -878
- package/vscode/src/vs/workbench/services/configuration/browser/configurationService.js +0 -1170
- package/vscode/src/vs/workbench/services/configuration/common/configurationCache.js +0 -80
- package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.js +0 -589
- package/vscode/src/vs/workbench/services/configuration/common/configurationModels.js +0 -119
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +0 -303
- package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +0 -26
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +0 -174
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +0 -10
- package/vscode/src/vs/workbench/services/dialogs/browser/abstractFileDialogService.js +0 -320
- package/vscode/src/vs/workbench/services/dialogs/browser/simpleFileDialog.js +0 -989
- package/vscode/src/vs/workbench/services/dialogs/common/dialogService.js +0 -66
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +0 -622
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.js +0 -4
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +0 -2
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +0 -1454
- package/vscode/src/vs/workbench/services/hover/browser/hoverService.js +0 -162
- package/vscode/src/vs/workbench/services/hover/browser/hoverWidget.js +0 -523
- package/vscode/src/vs/workbench/services/hover/browser/media/hover.css.js +0 -4
- package/vscode/src/vs/workbench/services/label/common/labelService.js +0 -412
- package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionSimpleWorker.js +0 -173
- package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionWorkerServiceImpl.js +0 -259
- package/vscode/src/vs/workbench/services/lifecycle/browser/lifecycleService.js +0 -121
- package/vscode/src/vs/workbench/services/localization/common/locale.js +0 -3
- package/vscode/src/vs/workbench/services/notification/common/notificationService.js +0 -188
- package/vscode/src/vs/workbench/services/outline/browser/outlineService.js +0 -35
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +0 -37
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +0 -556
- package/vscode/src/vs/workbench/services/preferences/browser/preferencesService.js +0 -547
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +0 -39
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +0 -1039
- package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +0 -393
- package/vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js +0 -71
- package/vscode/src/vs/workbench/services/remote/common/abstractRemoteAgentService.js +0 -177
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentEnvironmentChannel.js +0 -51
- package/vscode/src/vs/workbench/services/remote/common/remoteFileSystemProviderClient.js +0 -38
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.d.ts +0 -35
- package/vscode/src/vs/workbench/services/search/common/searchService.js +0 -370
- package/vscode/src/vs/workbench/services/storage/browser/storageService.d.ts +0 -40
- package/vscode/src/vs/workbench/services/storage/browser/storageService.js +0 -280
- package/vscode/src/vs/workbench/services/suggest/browser/media/suggest.css.js +0 -4
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +0 -10
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +0 -98
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +0 -399
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +0 -83
- package/vscode/src/vs/workbench/services/textMate/browser/arrayOperation.js +0 -62
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/textMateWorkerTokenizerController.js +0 -157
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/threadedBackgroundTokenizerFactory.js +0 -200
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/worker/textMateTokenizationWorker.worker.js +0 -87
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/worker/textMateWorkerTokenizer.js +0 -140
- package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeature.d.ts +0 -11
- package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +0 -459
- package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/textMateTokenizationSupport.js +0 -72
- package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/tokenizationSupportWithLineLimit.js +0 -36
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammarFactory.js +0 -118
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +0 -93
- package/vscode/src/vs/workbench/services/textMate/common/TMScopeRegistry.js +0 -24
- package/vscode/src/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +0 -187
- package/vscode/src/vs/workbench/services/themes/browser/fileIconThemeData.js +0 -353
- package/vscode/src/vs/workbench/services/themes/browser/productIconThemeData.js +0 -290
- package/vscode/src/vs/workbench/services/themes/browser/workbenchThemeService.js +0 -742
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +0 -864
- package/vscode/src/vs/workbench/services/themes/common/colorThemeSchema.js +0 -265
- package/vscode/src/vs/workbench/services/themes/common/fileIconThemeSchema.js +0 -303
- package/vscode/src/vs/workbench/services/themes/common/plistParser.js +0 -439
- package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +0 -94
- package/vscode/src/vs/workbench/services/themes/common/textMateScopeMatcher.js +0 -120
- package/vscode/src/vs/workbench/services/themes/common/themeCompatibility.js +0 -66
- package/vscode/src/vs/workbench/services/themes/common/themeConfiguration.js +0 -372
- package/vscode/src/vs/workbench/services/themes/common/themeExtensionPoints.js +0 -254
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +0 -689
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +0 -612
- package/vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +0 -322
- package/vscode/src/vs/workbench/services/workspaces/browser/workspaceTrustEditorInput.js +0 -27
- package/vscode/src/vs/workbench/services/workspaces/browser/workspacesService.js +0 -151
- package/workers/languageDetection.worker.js +0 -8
- package/workers/outputLinkComputer.worker.js +0 -3
- package/workers/textmate.worker.js +0 -3
|
@@ -1,989 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import * as nls from 'monaco-editor/esm/vs/nls.js';
|
|
3
|
-
import * as resources from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
4
|
-
import * as objects from 'monaco-editor/esm/vs/base/common/objects.js';
|
|
5
|
-
import { FileKind, IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
|
|
6
|
-
import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
|
|
7
|
-
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
8
|
-
import { isWindows } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
9
|
-
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
10
|
-
import { ILabelService } from 'monaco-editor/esm/vs/platform/label/common/label.js';
|
|
11
|
-
import { IWorkspaceContextService } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
12
|
-
import { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
13
|
-
import { IModelService } from 'monaco-editor/esm/vs/editor/common/services/model.js';
|
|
14
|
-
import { ILanguageService } from 'monaco-editor/esm/vs/editor/common/languages/language.js';
|
|
15
|
-
import { getIconClasses } from 'monaco-editor/esm/vs/editor/common/services/getIconClasses.js';
|
|
16
|
-
import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
|
|
17
|
-
import { IWorkbenchEnvironmentService } from '../../environment/common/environmentService.js';
|
|
18
|
-
import { IRemoteAgentService } from '../../remote/common/remoteAgentService.js';
|
|
19
|
-
import { IContextKeyService, RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
20
|
-
import { format, equalsIgnoreCase, startsWithIgnoreCase } from 'monaco-editor/esm/vs/base/common/strings.js';
|
|
21
|
-
import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
|
|
22
|
-
import { isValidBasename } from 'monaco-editor/esm/vs/base/common/extpath.js';
|
|
23
|
-
import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
24
|
-
import { dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
25
|
-
import { createCancelablePromise } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
26
|
-
import { IEditorService } from '../../editor/common/editorService.js';
|
|
27
|
-
import { normalizeDriveLetter } from 'monaco-editor/esm/vs/base/common/labels.js';
|
|
28
|
-
import { IPathService } from '../../path/common/pathService.js';
|
|
29
|
-
import { IAccessibilityService } from 'monaco-editor/esm/vs/platform/accessibility/common/accessibility.js';
|
|
30
|
-
import { IFileDialogService } from '../../../../platform/dialogs/common/dialogs.js';
|
|
31
|
-
var OpenLocalFileCommand;
|
|
32
|
-
( (function(OpenLocalFileCommand) {
|
|
33
|
-
OpenLocalFileCommand.ID = 'workbench.action.files.openLocalFile';
|
|
34
|
-
OpenLocalFileCommand.LABEL = ( nls.localize('openLocalFile', "Open Local File..."));
|
|
35
|
-
function handler() {
|
|
36
|
-
return accessor => {
|
|
37
|
-
const dialogService = accessor.get(IFileDialogService);
|
|
38
|
-
return dialogService.pickFileAndOpen({ forceNewWindow: false, availableFileSystems: [Schemas.file] });
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
OpenLocalFileCommand.handler = handler;
|
|
42
|
-
})(OpenLocalFileCommand || (OpenLocalFileCommand = {})));
|
|
43
|
-
var SaveLocalFileCommand;
|
|
44
|
-
( (function(SaveLocalFileCommand) {
|
|
45
|
-
SaveLocalFileCommand.ID = 'workbench.action.files.saveLocalFile';
|
|
46
|
-
SaveLocalFileCommand.LABEL = ( nls.localize('saveLocalFile', "Save Local File..."));
|
|
47
|
-
function handler() {
|
|
48
|
-
return accessor => {
|
|
49
|
-
const editorService = accessor.get(IEditorService);
|
|
50
|
-
const activeEditorPane = editorService.activeEditorPane;
|
|
51
|
-
if (activeEditorPane) {
|
|
52
|
-
return editorService.save({ groupId: activeEditorPane.group.id, editor: activeEditorPane.input }, { saveAs: true, availableFileSystems: [Schemas.file], reason: 1 });
|
|
53
|
-
}
|
|
54
|
-
return Promise.resolve(undefined);
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
SaveLocalFileCommand.handler = handler;
|
|
58
|
-
})(SaveLocalFileCommand || (SaveLocalFileCommand = {})));
|
|
59
|
-
var OpenLocalFolderCommand;
|
|
60
|
-
( (function(OpenLocalFolderCommand) {
|
|
61
|
-
OpenLocalFolderCommand.ID = 'workbench.action.files.openLocalFolder';
|
|
62
|
-
OpenLocalFolderCommand.LABEL = ( nls.localize('openLocalFolder', "Open Local Folder..."));
|
|
63
|
-
function handler() {
|
|
64
|
-
return accessor => {
|
|
65
|
-
const dialogService = accessor.get(IFileDialogService);
|
|
66
|
-
return dialogService.pickFolderAndOpen({ forceNewWindow: false, availableFileSystems: [Schemas.file] });
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
OpenLocalFolderCommand.handler = handler;
|
|
70
|
-
})(OpenLocalFolderCommand || (OpenLocalFolderCommand = {})));
|
|
71
|
-
var OpenLocalFileFolderCommand;
|
|
72
|
-
( (function(OpenLocalFileFolderCommand) {
|
|
73
|
-
OpenLocalFileFolderCommand.ID = 'workbench.action.files.openLocalFileFolder';
|
|
74
|
-
OpenLocalFileFolderCommand.LABEL = ( nls.localize('openLocalFileFolder', "Open Local..."));
|
|
75
|
-
function handler() {
|
|
76
|
-
return accessor => {
|
|
77
|
-
const dialogService = accessor.get(IFileDialogService);
|
|
78
|
-
return dialogService.pickFileFolderAndOpen({ forceNewWindow: false, availableFileSystems: [Schemas.file] });
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
OpenLocalFileFolderCommand.handler = handler;
|
|
82
|
-
})(OpenLocalFileFolderCommand || (OpenLocalFileFolderCommand = {})));
|
|
83
|
-
var UpdateResult;
|
|
84
|
-
( (function(UpdateResult) {
|
|
85
|
-
UpdateResult[UpdateResult["Updated"] = 0] = "Updated";
|
|
86
|
-
UpdateResult[UpdateResult["UpdatedWithTrailing"] = 1] = "UpdatedWithTrailing";
|
|
87
|
-
UpdateResult[UpdateResult["Updating"] = 2] = "Updating";
|
|
88
|
-
UpdateResult[UpdateResult["NotUpdated"] = 3] = "NotUpdated";
|
|
89
|
-
UpdateResult[UpdateResult["InvalidPath"] = 4] = "InvalidPath";
|
|
90
|
-
})(UpdateResult || (UpdateResult = {})));
|
|
91
|
-
const RemoteFileDialogContext = ( new RawContextKey('remoteFileDialogVisible', false));
|
|
92
|
-
let SimpleFileDialog = class SimpleFileDialog {
|
|
93
|
-
constructor(fileService, quickInputService, labelService, workspaceContextService, notificationService, fileDialogService, modelService, languageService, environmentService, remoteAgentService, pathService, keybindingService, contextKeyService, accessibilityService) {
|
|
94
|
-
this.fileService = fileService;
|
|
95
|
-
this.quickInputService = quickInputService;
|
|
96
|
-
this.labelService = labelService;
|
|
97
|
-
this.workspaceContextService = workspaceContextService;
|
|
98
|
-
this.notificationService = notificationService;
|
|
99
|
-
this.fileDialogService = fileDialogService;
|
|
100
|
-
this.modelService = modelService;
|
|
101
|
-
this.languageService = languageService;
|
|
102
|
-
this.environmentService = environmentService;
|
|
103
|
-
this.remoteAgentService = remoteAgentService;
|
|
104
|
-
this.pathService = pathService;
|
|
105
|
-
this.keybindingService = keybindingService;
|
|
106
|
-
this.accessibilityService = accessibilityService;
|
|
107
|
-
this.hidden = false;
|
|
108
|
-
this.allowFileSelection = true;
|
|
109
|
-
this.allowFolderSelection = false;
|
|
110
|
-
this.requiresTrailing = false;
|
|
111
|
-
this.userEnteredPathSegment = '';
|
|
112
|
-
this.autoCompletePathSegment = '';
|
|
113
|
-
this.isWindows = false;
|
|
114
|
-
this.separator = '/';
|
|
115
|
-
this.onBusyChangeEmitter = ( new Emitter());
|
|
116
|
-
this.disposables = [
|
|
117
|
-
this.onBusyChangeEmitter
|
|
118
|
-
];
|
|
119
|
-
this.remoteAuthority = this.environmentService.remoteAuthority;
|
|
120
|
-
this.contextKey = RemoteFileDialogContext.bindTo(contextKeyService);
|
|
121
|
-
this.scheme = this.pathService.defaultUriScheme;
|
|
122
|
-
}
|
|
123
|
-
set busy(busy) {
|
|
124
|
-
if (this.filePickBox.busy !== busy) {
|
|
125
|
-
this.filePickBox.busy = busy;
|
|
126
|
-
this.onBusyChangeEmitter.fire(busy);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
get busy() {
|
|
130
|
-
return this.filePickBox.busy;
|
|
131
|
-
}
|
|
132
|
-
async showOpenDialog(options = {}) {
|
|
133
|
-
this.scheme = this.getScheme(options.availableFileSystems, options.defaultUri);
|
|
134
|
-
this.userHome = await this.getUserHome();
|
|
135
|
-
this.trueHome = await this.getUserHome(true);
|
|
136
|
-
const newOptions = this.getOptions(options);
|
|
137
|
-
if (!newOptions) {
|
|
138
|
-
return Promise.resolve(undefined);
|
|
139
|
-
}
|
|
140
|
-
this.options = newOptions;
|
|
141
|
-
return this.pickResource();
|
|
142
|
-
}
|
|
143
|
-
async showSaveDialog(options) {
|
|
144
|
-
this.scheme = this.getScheme(options.availableFileSystems, options.defaultUri);
|
|
145
|
-
this.userHome = await this.getUserHome();
|
|
146
|
-
this.trueHome = await this.getUserHome(true);
|
|
147
|
-
this.requiresTrailing = true;
|
|
148
|
-
const newOptions = this.getOptions(options, true);
|
|
149
|
-
if (!newOptions) {
|
|
150
|
-
return Promise.resolve(undefined);
|
|
151
|
-
}
|
|
152
|
-
this.options = newOptions;
|
|
153
|
-
this.options.canSelectFolders = true;
|
|
154
|
-
this.options.canSelectFiles = true;
|
|
155
|
-
return ( new Promise((resolve) => {
|
|
156
|
-
this.pickResource(true).then(folderUri => {
|
|
157
|
-
resolve(folderUri);
|
|
158
|
-
});
|
|
159
|
-
}));
|
|
160
|
-
}
|
|
161
|
-
getOptions(options, isSave = false) {
|
|
162
|
-
let defaultUri = undefined;
|
|
163
|
-
let filename = undefined;
|
|
164
|
-
if (options.defaultUri) {
|
|
165
|
-
defaultUri = (this.scheme === options.defaultUri.scheme) ? options.defaultUri : undefined;
|
|
166
|
-
filename = isSave ? resources.basename(options.defaultUri) : undefined;
|
|
167
|
-
}
|
|
168
|
-
if (!defaultUri) {
|
|
169
|
-
defaultUri = this.userHome;
|
|
170
|
-
if (filename) {
|
|
171
|
-
defaultUri = resources.joinPath(defaultUri, filename);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
if ((this.scheme !== Schemas.file) && !this.fileService.hasProvider(defaultUri)) {
|
|
175
|
-
this.notificationService.info(( nls.localize(
|
|
176
|
-
'remoteFileDialog.notConnectedToRemote',
|
|
177
|
-
'File system provider for {0} is not available.',
|
|
178
|
-
( defaultUri.toString())
|
|
179
|
-
)));
|
|
180
|
-
return undefined;
|
|
181
|
-
}
|
|
182
|
-
const newOptions = objects.deepClone(options);
|
|
183
|
-
newOptions.defaultUri = defaultUri;
|
|
184
|
-
return newOptions;
|
|
185
|
-
}
|
|
186
|
-
remoteUriFrom(path, hintUri) {
|
|
187
|
-
if (!path.startsWith('\\\\')) {
|
|
188
|
-
path = path.replace(/\\/g, '/');
|
|
189
|
-
}
|
|
190
|
-
const uri = this.scheme === Schemas.file ? URI.file(path) : ( URI.from(
|
|
191
|
-
{ scheme: this.scheme, path, query: hintUri?.query, fragment: hintUri?.fragment }
|
|
192
|
-
));
|
|
193
|
-
const authority = (uri.scheme === Schemas.file) ? undefined : (this.remoteAuthority ?? hintUri?.authority);
|
|
194
|
-
return resources.toLocalResource(uri, authority,
|
|
195
|
-
authority ? this.pathService.defaultUriScheme : uri.scheme);
|
|
196
|
-
}
|
|
197
|
-
getScheme(available, defaultUri) {
|
|
198
|
-
if (available && available.length > 0) {
|
|
199
|
-
if (defaultUri && (available.indexOf(defaultUri.scheme) >= 0)) {
|
|
200
|
-
return defaultUri.scheme;
|
|
201
|
-
}
|
|
202
|
-
return available[0];
|
|
203
|
-
}
|
|
204
|
-
else if (defaultUri) {
|
|
205
|
-
return defaultUri.scheme;
|
|
206
|
-
}
|
|
207
|
-
return Schemas.file;
|
|
208
|
-
}
|
|
209
|
-
async getRemoteAgentEnvironment() {
|
|
210
|
-
if (this.remoteAgentEnvironment === undefined) {
|
|
211
|
-
this.remoteAgentEnvironment = await this.remoteAgentService.getEnvironment();
|
|
212
|
-
}
|
|
213
|
-
return this.remoteAgentEnvironment;
|
|
214
|
-
}
|
|
215
|
-
getUserHome(trueHome = false) {
|
|
216
|
-
return trueHome
|
|
217
|
-
? this.pathService.userHome({ preferLocal: this.scheme === Schemas.file })
|
|
218
|
-
: this.fileDialogService.preferredHome(this.scheme);
|
|
219
|
-
}
|
|
220
|
-
async pickResource(isSave = false) {
|
|
221
|
-
this.allowFolderSelection = !!this.options.canSelectFolders;
|
|
222
|
-
this.allowFileSelection = !!this.options.canSelectFiles;
|
|
223
|
-
this.separator = this.labelService.getSeparator(this.scheme, this.remoteAuthority);
|
|
224
|
-
this.hidden = false;
|
|
225
|
-
this.isWindows = await this.checkIsWindowsOS();
|
|
226
|
-
let homedir = this.options.defaultUri ? this.options.defaultUri : this.workspaceContextService.getWorkspace().folders[0].uri;
|
|
227
|
-
let stat;
|
|
228
|
-
const ext = resources.extname(homedir);
|
|
229
|
-
if (this.options.defaultUri) {
|
|
230
|
-
try {
|
|
231
|
-
stat = await this.fileService.stat(this.options.defaultUri);
|
|
232
|
-
}
|
|
233
|
-
catch (e) {
|
|
234
|
-
}
|
|
235
|
-
if (!stat || !stat.isDirectory) {
|
|
236
|
-
homedir = resources.dirname(this.options.defaultUri);
|
|
237
|
-
this.trailing = resources.basename(this.options.defaultUri);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
return ( new Promise((resolve) => {
|
|
241
|
-
this.filePickBox = this.quickInputService.createQuickPick();
|
|
242
|
-
this.busy = true;
|
|
243
|
-
this.filePickBox.matchOnLabel = false;
|
|
244
|
-
this.filePickBox.sortByLabel = false;
|
|
245
|
-
this.filePickBox.autoFocusOnList = false;
|
|
246
|
-
this.filePickBox.ignoreFocusOut = true;
|
|
247
|
-
this.filePickBox.ok = true;
|
|
248
|
-
if ((this.scheme !== Schemas.file) && this.options && this.options.availableFileSystems && (this.options.availableFileSystems.length > 1) && (this.options.availableFileSystems.indexOf(Schemas.file) > -1)) {
|
|
249
|
-
this.filePickBox.customButton = true;
|
|
250
|
-
this.filePickBox.customLabel = ( nls.localize('remoteFileDialog.local', 'Show Local'));
|
|
251
|
-
let action;
|
|
252
|
-
if (isSave) {
|
|
253
|
-
action = SaveLocalFileCommand;
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
action = this.allowFileSelection ? (this.allowFolderSelection ? OpenLocalFileFolderCommand : OpenLocalFileCommand) : OpenLocalFolderCommand;
|
|
257
|
-
}
|
|
258
|
-
const keybinding = this.keybindingService.lookupKeybinding(action.ID);
|
|
259
|
-
if (keybinding) {
|
|
260
|
-
const label = keybinding.getLabel();
|
|
261
|
-
if (label) {
|
|
262
|
-
this.filePickBox.customHover = format('{0} ({1})', action.LABEL, label);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
let isResolving = 0;
|
|
267
|
-
let isAcceptHandled = false;
|
|
268
|
-
this.currentFolder = resources.dirname(homedir);
|
|
269
|
-
this.userEnteredPathSegment = '';
|
|
270
|
-
this.autoCompletePathSegment = '';
|
|
271
|
-
this.filePickBox.title = this.options.title;
|
|
272
|
-
this.filePickBox.value = this.pathFromUri(this.currentFolder, true);
|
|
273
|
-
this.filePickBox.valueSelection = [this.filePickBox.value.length, this.filePickBox.value.length];
|
|
274
|
-
this.filePickBox.items = [];
|
|
275
|
-
function doResolve(dialog, uri) {
|
|
276
|
-
if (uri) {
|
|
277
|
-
uri = resources.addTrailingPathSeparator(uri, dialog.separator);
|
|
278
|
-
uri = resources.removeTrailingPathSeparator(uri);
|
|
279
|
-
}
|
|
280
|
-
resolve(uri);
|
|
281
|
-
dialog.contextKey.set(false);
|
|
282
|
-
dialog.filePickBox.dispose();
|
|
283
|
-
dispose(dialog.disposables);
|
|
284
|
-
}
|
|
285
|
-
this.filePickBox.onDidCustom(() => {
|
|
286
|
-
if (isAcceptHandled || this.busy) {
|
|
287
|
-
return;
|
|
288
|
-
}
|
|
289
|
-
isAcceptHandled = true;
|
|
290
|
-
isResolving++;
|
|
291
|
-
if (this.options.availableFileSystems && (this.options.availableFileSystems.length > 1)) {
|
|
292
|
-
this.options.availableFileSystems = this.options.availableFileSystems.slice(1);
|
|
293
|
-
}
|
|
294
|
-
this.filePickBox.hide();
|
|
295
|
-
if (isSave) {
|
|
296
|
-
return this.fileDialogService.showSaveDialog(this.options).then(result => {
|
|
297
|
-
doResolve(this, result);
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
else {
|
|
301
|
-
return this.fileDialogService.showOpenDialog(this.options).then(result => {
|
|
302
|
-
doResolve(this, result ? result[0] : undefined);
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
function handleAccept(dialog) {
|
|
307
|
-
if (dialog.busy) {
|
|
308
|
-
dialog.onBusyChangeEmitter.event((busy) => {
|
|
309
|
-
if (!busy) {
|
|
310
|
-
handleAccept(dialog);
|
|
311
|
-
}
|
|
312
|
-
});
|
|
313
|
-
return;
|
|
314
|
-
}
|
|
315
|
-
else if (isAcceptHandled) {
|
|
316
|
-
return;
|
|
317
|
-
}
|
|
318
|
-
isAcceptHandled = true;
|
|
319
|
-
isResolving++;
|
|
320
|
-
dialog.onDidAccept().then(resolveValue => {
|
|
321
|
-
if (resolveValue) {
|
|
322
|
-
dialog.filePickBox.hide();
|
|
323
|
-
doResolve(dialog, resolveValue);
|
|
324
|
-
}
|
|
325
|
-
else if (dialog.hidden) {
|
|
326
|
-
doResolve(dialog, undefined);
|
|
327
|
-
}
|
|
328
|
-
else {
|
|
329
|
-
isResolving--;
|
|
330
|
-
isAcceptHandled = false;
|
|
331
|
-
}
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
this.filePickBox.onDidAccept(_ => {
|
|
335
|
-
handleAccept(this);
|
|
336
|
-
});
|
|
337
|
-
this.filePickBox.onDidChangeActive(i => {
|
|
338
|
-
isAcceptHandled = false;
|
|
339
|
-
if ((i.length === 1) && this.isSelectionChangeFromUser()) {
|
|
340
|
-
this.filePickBox.validationMessage = undefined;
|
|
341
|
-
const userPath = this.constructFullUserPath();
|
|
342
|
-
if (!equalsIgnoreCase(this.filePickBox.value.substring(0, userPath.length), userPath)) {
|
|
343
|
-
this.filePickBox.valueSelection = [0, this.filePickBox.value.length];
|
|
344
|
-
this.insertText(userPath, userPath);
|
|
345
|
-
}
|
|
346
|
-
this.setAutoComplete(userPath, this.userEnteredPathSegment, i[0], true);
|
|
347
|
-
}
|
|
348
|
-
});
|
|
349
|
-
this.filePickBox.onDidChangeValue(async (value) => {
|
|
350
|
-
return this.handleValueChange(value);
|
|
351
|
-
});
|
|
352
|
-
this.filePickBox.onDidHide(() => {
|
|
353
|
-
this.hidden = true;
|
|
354
|
-
if (isResolving === 0) {
|
|
355
|
-
doResolve(this, undefined);
|
|
356
|
-
}
|
|
357
|
-
});
|
|
358
|
-
this.filePickBox.show();
|
|
359
|
-
this.contextKey.set(true);
|
|
360
|
-
this.updateItems(homedir, true, this.trailing).then(() => {
|
|
361
|
-
if (this.trailing) {
|
|
362
|
-
this.filePickBox.valueSelection = [this.filePickBox.value.length - this.trailing.length, this.filePickBox.value.length - ext.length];
|
|
363
|
-
}
|
|
364
|
-
else {
|
|
365
|
-
this.filePickBox.valueSelection = [this.filePickBox.value.length, this.filePickBox.value.length];
|
|
366
|
-
}
|
|
367
|
-
this.busy = false;
|
|
368
|
-
});
|
|
369
|
-
}));
|
|
370
|
-
}
|
|
371
|
-
async handleValueChange(value) {
|
|
372
|
-
try {
|
|
373
|
-
if (this.isValueChangeFromUser()) {
|
|
374
|
-
if (!equalsIgnoreCase(value, this.constructFullUserPath()) && !this.isBadSubpath(value)) {
|
|
375
|
-
this.filePickBox.validationMessage = undefined;
|
|
376
|
-
const filePickBoxUri = this.filePickBoxValue();
|
|
377
|
-
let updated = UpdateResult.NotUpdated;
|
|
378
|
-
if (!resources.extUriIgnorePathCase.isEqual(this.currentFolder, filePickBoxUri)) {
|
|
379
|
-
updated = await this.tryUpdateItems(value, filePickBoxUri);
|
|
380
|
-
}
|
|
381
|
-
if ((updated === UpdateResult.NotUpdated) || (updated === UpdateResult.UpdatedWithTrailing)) {
|
|
382
|
-
this.setActiveItems(value);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
else {
|
|
386
|
-
this.filePickBox.activeItems = [];
|
|
387
|
-
this.userEnteredPathSegment = '';
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
catch {
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
isBadSubpath(value) {
|
|
395
|
-
return this.badPath && (value.length > this.badPath.length) && equalsIgnoreCase(value.substring(0, this.badPath.length), this.badPath);
|
|
396
|
-
}
|
|
397
|
-
isValueChangeFromUser() {
|
|
398
|
-
if (equalsIgnoreCase(this.filePickBox.value, this.pathAppend(this.currentFolder, this.userEnteredPathSegment + this.autoCompletePathSegment))) {
|
|
399
|
-
return false;
|
|
400
|
-
}
|
|
401
|
-
return true;
|
|
402
|
-
}
|
|
403
|
-
isSelectionChangeFromUser() {
|
|
404
|
-
if (this.activeItem === (this.filePickBox.activeItems ? this.filePickBox.activeItems[0] : undefined)) {
|
|
405
|
-
return false;
|
|
406
|
-
}
|
|
407
|
-
return true;
|
|
408
|
-
}
|
|
409
|
-
constructFullUserPath() {
|
|
410
|
-
const currentFolderPath = this.pathFromUri(this.currentFolder);
|
|
411
|
-
if (equalsIgnoreCase(this.filePickBox.value.substr(0, this.userEnteredPathSegment.length), this.userEnteredPathSegment)) {
|
|
412
|
-
if (equalsIgnoreCase(this.filePickBox.value.substr(0, currentFolderPath.length), currentFolderPath)) {
|
|
413
|
-
return currentFolderPath;
|
|
414
|
-
}
|
|
415
|
-
else {
|
|
416
|
-
return this.userEnteredPathSegment;
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
else {
|
|
420
|
-
return this.pathAppend(this.currentFolder, this.userEnteredPathSegment);
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
filePickBoxValue() {
|
|
424
|
-
const directUri = this.remoteUriFrom(this.filePickBox.value.trimRight(), this.currentFolder);
|
|
425
|
-
const currentPath = this.pathFromUri(this.currentFolder);
|
|
426
|
-
if (equalsIgnoreCase(this.filePickBox.value, currentPath)) {
|
|
427
|
-
return this.currentFolder;
|
|
428
|
-
}
|
|
429
|
-
const currentDisplayUri = this.remoteUriFrom(currentPath, this.currentFolder);
|
|
430
|
-
const relativePath = resources.relativePath(currentDisplayUri, directUri);
|
|
431
|
-
const isSameRoot = (this.filePickBox.value.length > 1 && currentPath.length > 1) ? equalsIgnoreCase(this.filePickBox.value.substr(0, 2), currentPath.substr(0, 2)) : false;
|
|
432
|
-
if (relativePath && isSameRoot) {
|
|
433
|
-
let path = resources.joinPath(this.currentFolder, relativePath);
|
|
434
|
-
const directBasename = resources.basename(directUri);
|
|
435
|
-
if ((directBasename === '.') || (directBasename === '..')) {
|
|
436
|
-
path = this.remoteUriFrom(this.pathAppend(path, directBasename), this.currentFolder);
|
|
437
|
-
}
|
|
438
|
-
return resources.hasTrailingPathSeparator(directUri) ? resources.addTrailingPathSeparator(path) : path;
|
|
439
|
-
}
|
|
440
|
-
else {
|
|
441
|
-
return directUri;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
async onDidAccept() {
|
|
445
|
-
this.busy = true;
|
|
446
|
-
if (this.filePickBox.activeItems.length === 1) {
|
|
447
|
-
const item = this.filePickBox.selectedItems[0];
|
|
448
|
-
if (item.isFolder) {
|
|
449
|
-
if (this.trailing) {
|
|
450
|
-
await this.updateItems(item.uri, true, this.trailing);
|
|
451
|
-
}
|
|
452
|
-
else {
|
|
453
|
-
const newPath = this.pathFromUri(item.uri);
|
|
454
|
-
if (startsWithIgnoreCase(newPath, this.filePickBox.value) && (equalsIgnoreCase(item.label, resources.basename(item.uri)))) {
|
|
455
|
-
this.filePickBox.valueSelection = [this.pathFromUri(this.currentFolder).length, this.filePickBox.value.length];
|
|
456
|
-
this.insertText(newPath, this.basenameWithTrailingSlash(item.uri));
|
|
457
|
-
}
|
|
458
|
-
else if ((item.label === '..') && startsWithIgnoreCase(this.filePickBox.value, newPath)) {
|
|
459
|
-
this.filePickBox.valueSelection = [newPath.length, this.filePickBox.value.length];
|
|
460
|
-
this.insertText(newPath, '');
|
|
461
|
-
}
|
|
462
|
-
else {
|
|
463
|
-
await this.updateItems(item.uri, true);
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
this.filePickBox.busy = false;
|
|
467
|
-
return;
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
else {
|
|
471
|
-
if ((await this.tryUpdateItems(this.filePickBox.value, this.filePickBoxValue())) !== UpdateResult.NotUpdated) {
|
|
472
|
-
this.filePickBox.busy = false;
|
|
473
|
-
return;
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
let resolveValue;
|
|
477
|
-
if (this.filePickBox.activeItems.length === 0) {
|
|
478
|
-
resolveValue = this.filePickBoxValue();
|
|
479
|
-
}
|
|
480
|
-
else if (this.filePickBox.activeItems.length === 1) {
|
|
481
|
-
resolveValue = this.filePickBox.selectedItems[0].uri;
|
|
482
|
-
}
|
|
483
|
-
if (resolveValue) {
|
|
484
|
-
resolveValue = this.addPostfix(resolveValue);
|
|
485
|
-
}
|
|
486
|
-
if (await this.validate(resolveValue)) {
|
|
487
|
-
this.busy = false;
|
|
488
|
-
return resolveValue;
|
|
489
|
-
}
|
|
490
|
-
this.busy = false;
|
|
491
|
-
return undefined;
|
|
492
|
-
}
|
|
493
|
-
root(value) {
|
|
494
|
-
let lastDir = value;
|
|
495
|
-
let dir = resources.dirname(value);
|
|
496
|
-
while (!resources.isEqual(lastDir, dir)) {
|
|
497
|
-
lastDir = dir;
|
|
498
|
-
dir = resources.dirname(dir);
|
|
499
|
-
}
|
|
500
|
-
return dir;
|
|
501
|
-
}
|
|
502
|
-
tildaReplace(value) {
|
|
503
|
-
const home = this.trueHome;
|
|
504
|
-
if ((value.length > 0) && (value[0] === '~')) {
|
|
505
|
-
return resources.joinPath(home, value.substring(1));
|
|
506
|
-
}
|
|
507
|
-
return this.remoteUriFrom(value);
|
|
508
|
-
}
|
|
509
|
-
tryAddTrailingSeparatorToDirectory(uri, stat) {
|
|
510
|
-
if (stat.isDirectory) {
|
|
511
|
-
if (!this.endsWithSlash(uri.path)) {
|
|
512
|
-
return resources.addTrailingPathSeparator(uri);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
return uri;
|
|
516
|
-
}
|
|
517
|
-
async tryUpdateItems(value, valueUri) {
|
|
518
|
-
if ((value.length > 0) && (value[0] === '~')) {
|
|
519
|
-
const newDir = this.tildaReplace(value);
|
|
520
|
-
return (await this.updateItems(newDir, true)) ? UpdateResult.UpdatedWithTrailing : UpdateResult.Updated;
|
|
521
|
-
}
|
|
522
|
-
else if (value === '\\') {
|
|
523
|
-
valueUri = this.root(this.currentFolder);
|
|
524
|
-
value = this.pathFromUri(valueUri);
|
|
525
|
-
return (await this.updateItems(valueUri, true)) ? UpdateResult.UpdatedWithTrailing : UpdateResult.Updated;
|
|
526
|
-
}
|
|
527
|
-
else if (!resources.extUriIgnorePathCase.isEqual(this.currentFolder, valueUri) && (this.endsWithSlash(value) || (!resources.extUriIgnorePathCase.isEqual(this.currentFolder, resources.dirname(valueUri)) && resources.extUriIgnorePathCase.isEqualOrParent(this.currentFolder, resources.dirname(valueUri))))) {
|
|
528
|
-
let stat;
|
|
529
|
-
try {
|
|
530
|
-
stat = await this.fileService.stat(valueUri);
|
|
531
|
-
}
|
|
532
|
-
catch (e) {
|
|
533
|
-
}
|
|
534
|
-
if (stat && stat.isDirectory && (resources.basename(valueUri) !== '.') && this.endsWithSlash(value)) {
|
|
535
|
-
valueUri = this.tryAddTrailingSeparatorToDirectory(valueUri, stat);
|
|
536
|
-
return (await this.updateItems(valueUri)) ? UpdateResult.UpdatedWithTrailing : UpdateResult.Updated;
|
|
537
|
-
}
|
|
538
|
-
else if (this.endsWithSlash(value)) {
|
|
539
|
-
this.filePickBox.validationMessage = ( nls.localize('remoteFileDialog.badPath', 'The path does not exist.'));
|
|
540
|
-
this.badPath = value;
|
|
541
|
-
return UpdateResult.InvalidPath;
|
|
542
|
-
}
|
|
543
|
-
else {
|
|
544
|
-
let inputUriDirname = resources.dirname(valueUri);
|
|
545
|
-
const currentFolderWithoutSep = resources.removeTrailingPathSeparator(resources.addTrailingPathSeparator(this.currentFolder));
|
|
546
|
-
const inputUriDirnameWithoutSep = resources.removeTrailingPathSeparator(resources.addTrailingPathSeparator(inputUriDirname));
|
|
547
|
-
if (!resources.extUriIgnorePathCase.isEqual(currentFolderWithoutSep, inputUriDirnameWithoutSep)
|
|
548
|
-
&& (!/^[a-zA-Z]:$/.test(this.filePickBox.value)
|
|
549
|
-
|| !equalsIgnoreCase(this.pathFromUri(this.currentFolder).substring(0, this.filePickBox.value.length), this.filePickBox.value))) {
|
|
550
|
-
let statWithoutTrailing;
|
|
551
|
-
try {
|
|
552
|
-
statWithoutTrailing = await this.fileService.stat(inputUriDirname);
|
|
553
|
-
}
|
|
554
|
-
catch (e) {
|
|
555
|
-
}
|
|
556
|
-
if (statWithoutTrailing && statWithoutTrailing.isDirectory) {
|
|
557
|
-
this.badPath = undefined;
|
|
558
|
-
inputUriDirname = this.tryAddTrailingSeparatorToDirectory(inputUriDirname, statWithoutTrailing);
|
|
559
|
-
return (await this.updateItems(inputUriDirname, false, resources.basename(valueUri))) ? UpdateResult.UpdatedWithTrailing : UpdateResult.Updated;
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
this.badPath = undefined;
|
|
565
|
-
return UpdateResult.NotUpdated;
|
|
566
|
-
}
|
|
567
|
-
tryUpdateTrailing(value) {
|
|
568
|
-
const ext = resources.extname(value);
|
|
569
|
-
if (this.trailing && ext) {
|
|
570
|
-
this.trailing = resources.basename(value);
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
setActiveItems(value) {
|
|
574
|
-
value = this.pathFromUri(this.tildaReplace(value));
|
|
575
|
-
const asUri = this.remoteUriFrom(value);
|
|
576
|
-
const inputBasename = resources.basename(asUri);
|
|
577
|
-
const userPath = this.constructFullUserPath();
|
|
578
|
-
const pathsEqual = equalsIgnoreCase(userPath, value.substring(0, userPath.length)) ||
|
|
579
|
-
equalsIgnoreCase(value, userPath.substring(0, value.length));
|
|
580
|
-
if (pathsEqual) {
|
|
581
|
-
let hasMatch = false;
|
|
582
|
-
for (let i = 0; i < this.filePickBox.items.length; i++) {
|
|
583
|
-
const item = this.filePickBox.items[i];
|
|
584
|
-
if (this.setAutoComplete(value, inputBasename, item)) {
|
|
585
|
-
hasMatch = true;
|
|
586
|
-
break;
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
if (!hasMatch) {
|
|
590
|
-
const userBasename = inputBasename.length >= 2 ? userPath.substring(userPath.length - inputBasename.length + 2) : '';
|
|
591
|
-
this.userEnteredPathSegment = (userBasename === inputBasename) ? inputBasename : '';
|
|
592
|
-
this.autoCompletePathSegment = '';
|
|
593
|
-
this.filePickBox.activeItems = [];
|
|
594
|
-
this.tryUpdateTrailing(asUri);
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
else {
|
|
598
|
-
this.userEnteredPathSegment = inputBasename;
|
|
599
|
-
this.autoCompletePathSegment = '';
|
|
600
|
-
this.filePickBox.activeItems = [];
|
|
601
|
-
this.tryUpdateTrailing(asUri);
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
setAutoComplete(startingValue, startingBasename, quickPickItem, force = false) {
|
|
605
|
-
if (this.busy) {
|
|
606
|
-
this.userEnteredPathSegment = startingBasename;
|
|
607
|
-
this.autoCompletePathSegment = '';
|
|
608
|
-
return false;
|
|
609
|
-
}
|
|
610
|
-
const itemBasename = quickPickItem.label;
|
|
611
|
-
if (itemBasename === '..') {
|
|
612
|
-
this.userEnteredPathSegment = '';
|
|
613
|
-
this.autoCompletePathSegment = '';
|
|
614
|
-
this.activeItem = quickPickItem;
|
|
615
|
-
if (force) {
|
|
616
|
-
document.execCommand('insertText', false, '');
|
|
617
|
-
}
|
|
618
|
-
return false;
|
|
619
|
-
}
|
|
620
|
-
else if (!force && (itemBasename.length >= startingBasename.length) && equalsIgnoreCase(itemBasename.substr(0, startingBasename.length), startingBasename)) {
|
|
621
|
-
this.userEnteredPathSegment = startingBasename;
|
|
622
|
-
this.activeItem = quickPickItem;
|
|
623
|
-
this.autoCompletePathSegment = '';
|
|
624
|
-
if (quickPickItem.isFolder || !this.trailing) {
|
|
625
|
-
this.filePickBox.activeItems = [quickPickItem];
|
|
626
|
-
}
|
|
627
|
-
else {
|
|
628
|
-
this.filePickBox.activeItems = [];
|
|
629
|
-
}
|
|
630
|
-
return true;
|
|
631
|
-
}
|
|
632
|
-
else if (force && (!equalsIgnoreCase(this.basenameWithTrailingSlash(quickPickItem.uri), (this.userEnteredPathSegment + this.autoCompletePathSegment)))) {
|
|
633
|
-
this.userEnteredPathSegment = '';
|
|
634
|
-
if (!this.accessibilityService.isScreenReaderOptimized()) {
|
|
635
|
-
this.autoCompletePathSegment = this.trimTrailingSlash(itemBasename);
|
|
636
|
-
}
|
|
637
|
-
this.activeItem = quickPickItem;
|
|
638
|
-
if (!this.accessibilityService.isScreenReaderOptimized()) {
|
|
639
|
-
this.filePickBox.valueSelection = [this.pathFromUri(this.currentFolder, true).length, this.filePickBox.value.length];
|
|
640
|
-
this.insertText(this.pathAppend(this.currentFolder, this.autoCompletePathSegment), this.autoCompletePathSegment);
|
|
641
|
-
this.filePickBox.valueSelection = [this.filePickBox.value.length - this.autoCompletePathSegment.length, this.filePickBox.value.length];
|
|
642
|
-
}
|
|
643
|
-
return true;
|
|
644
|
-
}
|
|
645
|
-
else {
|
|
646
|
-
this.userEnteredPathSegment = startingBasename;
|
|
647
|
-
this.autoCompletePathSegment = '';
|
|
648
|
-
return false;
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
insertText(wholeValue, insertText) {
|
|
652
|
-
if (this.filePickBox.inputHasFocus()) {
|
|
653
|
-
document.execCommand('insertText', false, insertText);
|
|
654
|
-
if (this.filePickBox.value !== wholeValue) {
|
|
655
|
-
this.filePickBox.value = wholeValue;
|
|
656
|
-
this.handleValueChange(wholeValue);
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
else {
|
|
660
|
-
this.filePickBox.value = wholeValue;
|
|
661
|
-
this.handleValueChange(wholeValue);
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
addPostfix(uri) {
|
|
665
|
-
let result = uri;
|
|
666
|
-
if (this.requiresTrailing && this.options.filters && this.options.filters.length > 0 && !resources.hasTrailingPathSeparator(uri)) {
|
|
667
|
-
let hasExt = false;
|
|
668
|
-
const currentExt = resources.extname(uri).substr(1);
|
|
669
|
-
for (let i = 0; i < this.options.filters.length; i++) {
|
|
670
|
-
for (let j = 0; j < this.options.filters[i].extensions.length; j++) {
|
|
671
|
-
if ((this.options.filters[i].extensions[j] === '*') || (this.options.filters[i].extensions[j] === currentExt)) {
|
|
672
|
-
hasExt = true;
|
|
673
|
-
break;
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
if (hasExt) {
|
|
677
|
-
break;
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
if (!hasExt) {
|
|
681
|
-
result = resources.joinPath(resources.dirname(uri), resources.basename(uri) + '.' + this.options.filters[0].extensions[0]);
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
return result;
|
|
685
|
-
}
|
|
686
|
-
trimTrailingSlash(path) {
|
|
687
|
-
return ((path.length > 1) && this.endsWithSlash(path)) ? path.substr(0, path.length - 1) : path;
|
|
688
|
-
}
|
|
689
|
-
yesNoPrompt(uri, message) {
|
|
690
|
-
const prompt = this.quickInputService.createQuickPick();
|
|
691
|
-
prompt.title = message;
|
|
692
|
-
prompt.ignoreFocusOut = true;
|
|
693
|
-
prompt.ok = true;
|
|
694
|
-
prompt.customButton = true;
|
|
695
|
-
prompt.customLabel = ( nls.localize('remoteFileDialog.cancel', 'Cancel'));
|
|
696
|
-
prompt.value = this.pathFromUri(uri);
|
|
697
|
-
let isResolving = false;
|
|
698
|
-
return ( new Promise(resolve => {
|
|
699
|
-
prompt.onDidAccept(() => {
|
|
700
|
-
isResolving = true;
|
|
701
|
-
prompt.hide();
|
|
702
|
-
resolve(true);
|
|
703
|
-
});
|
|
704
|
-
prompt.onDidHide(() => {
|
|
705
|
-
if (!isResolving) {
|
|
706
|
-
resolve(false);
|
|
707
|
-
}
|
|
708
|
-
this.filePickBox.show();
|
|
709
|
-
this.hidden = false;
|
|
710
|
-
this.filePickBox.items = this.filePickBox.items;
|
|
711
|
-
prompt.dispose();
|
|
712
|
-
});
|
|
713
|
-
prompt.onDidChangeValue(() => {
|
|
714
|
-
prompt.hide();
|
|
715
|
-
});
|
|
716
|
-
prompt.onDidCustom(() => {
|
|
717
|
-
prompt.hide();
|
|
718
|
-
});
|
|
719
|
-
prompt.show();
|
|
720
|
-
}));
|
|
721
|
-
}
|
|
722
|
-
async validate(uri) {
|
|
723
|
-
if (uri === undefined) {
|
|
724
|
-
this.filePickBox.validationMessage = ( nls.localize('remoteFileDialog.invalidPath', 'Please enter a valid path.'));
|
|
725
|
-
return Promise.resolve(false);
|
|
726
|
-
}
|
|
727
|
-
let stat;
|
|
728
|
-
let statDirname;
|
|
729
|
-
try {
|
|
730
|
-
statDirname = await this.fileService.stat(resources.dirname(uri));
|
|
731
|
-
stat = await this.fileService.stat(uri);
|
|
732
|
-
}
|
|
733
|
-
catch (e) {
|
|
734
|
-
}
|
|
735
|
-
if (this.requiresTrailing) {
|
|
736
|
-
if (stat && stat.isDirectory) {
|
|
737
|
-
this.filePickBox.validationMessage = ( nls.localize(
|
|
738
|
-
'remoteFileDialog.validateFolder',
|
|
739
|
-
'The folder already exists. Please use a new file name.'
|
|
740
|
-
));
|
|
741
|
-
return Promise.resolve(false);
|
|
742
|
-
}
|
|
743
|
-
else if (stat) {
|
|
744
|
-
const message = ( nls.localize(
|
|
745
|
-
'remoteFileDialog.validateExisting',
|
|
746
|
-
'{0} already exists. Are you sure you want to overwrite it?',
|
|
747
|
-
resources.basename(uri)
|
|
748
|
-
));
|
|
749
|
-
return this.yesNoPrompt(uri, message);
|
|
750
|
-
}
|
|
751
|
-
else if (!(isValidBasename(resources.basename(uri), this.isWindows))) {
|
|
752
|
-
this.filePickBox.validationMessage = ( nls.localize('remoteFileDialog.validateBadFilename', 'Please enter a valid file name.'));
|
|
753
|
-
return Promise.resolve(false);
|
|
754
|
-
}
|
|
755
|
-
else if (!statDirname) {
|
|
756
|
-
const message = ( nls.localize(
|
|
757
|
-
'remoteFileDialog.validateCreateDirectory',
|
|
758
|
-
'The folder {0} does not exist. Would you like to create it?',
|
|
759
|
-
resources.basename(resources.dirname(uri))
|
|
760
|
-
));
|
|
761
|
-
return this.yesNoPrompt(uri, message);
|
|
762
|
-
}
|
|
763
|
-
else if (!statDirname.isDirectory) {
|
|
764
|
-
this.filePickBox.validationMessage = ( nls.localize(
|
|
765
|
-
'remoteFileDialog.validateNonexistentDir',
|
|
766
|
-
'Please enter a path that exists.'
|
|
767
|
-
));
|
|
768
|
-
return Promise.resolve(false);
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
else {
|
|
772
|
-
if (!stat) {
|
|
773
|
-
this.filePickBox.validationMessage = ( nls.localize(
|
|
774
|
-
'remoteFileDialog.validateNonexistentDir',
|
|
775
|
-
'Please enter a path that exists.'
|
|
776
|
-
));
|
|
777
|
-
return Promise.resolve(false);
|
|
778
|
-
}
|
|
779
|
-
else if (uri.path === '/' && this.isWindows) {
|
|
780
|
-
this.filePickBox.validationMessage = ( nls.localize(
|
|
781
|
-
'remoteFileDialog.windowsDriveLetter',
|
|
782
|
-
'Please start the path with a drive letter.'
|
|
783
|
-
));
|
|
784
|
-
return Promise.resolve(false);
|
|
785
|
-
}
|
|
786
|
-
else if (stat.isDirectory && !this.allowFolderSelection) {
|
|
787
|
-
this.filePickBox.validationMessage = ( nls.localize('remoteFileDialog.validateFileOnly', 'Please select a file.'));
|
|
788
|
-
return Promise.resolve(false);
|
|
789
|
-
}
|
|
790
|
-
else if (!stat.isDirectory && !this.allowFileSelection) {
|
|
791
|
-
this.filePickBox.validationMessage = ( nls.localize('remoteFileDialog.validateFolderOnly', 'Please select a folder.'));
|
|
792
|
-
return Promise.resolve(false);
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
return Promise.resolve(true);
|
|
796
|
-
}
|
|
797
|
-
async updateItems(newFolder, force = false, trailing) {
|
|
798
|
-
this.busy = true;
|
|
799
|
-
this.autoCompletePathSegment = '';
|
|
800
|
-
const isSave = !!trailing;
|
|
801
|
-
let result = false;
|
|
802
|
-
const updatingPromise = createCancelablePromise(async (token) => {
|
|
803
|
-
let folderStat;
|
|
804
|
-
try {
|
|
805
|
-
folderStat = await this.fileService.resolve(newFolder);
|
|
806
|
-
if (!folderStat.isDirectory) {
|
|
807
|
-
trailing = resources.basename(newFolder);
|
|
808
|
-
newFolder = resources.dirname(newFolder);
|
|
809
|
-
folderStat = undefined;
|
|
810
|
-
result = true;
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
catch (e) {
|
|
814
|
-
}
|
|
815
|
-
const newValue = trailing ? this.pathAppend(newFolder, trailing) : this.pathFromUri(newFolder, true);
|
|
816
|
-
this.currentFolder = this.endsWithSlash(newFolder.path) ? newFolder : resources.addTrailingPathSeparator(newFolder, this.separator);
|
|
817
|
-
this.userEnteredPathSegment = trailing ? trailing : '';
|
|
818
|
-
return this.createItems(folderStat, this.currentFolder, token).then(items => {
|
|
819
|
-
if (token.isCancellationRequested) {
|
|
820
|
-
this.busy = false;
|
|
821
|
-
return false;
|
|
822
|
-
}
|
|
823
|
-
this.filePickBox.items = items;
|
|
824
|
-
this.filePickBox.activeItems = [this.filePickBox.items[0]];
|
|
825
|
-
this.filePickBox.activeItems = [];
|
|
826
|
-
if (!equalsIgnoreCase(this.filePickBox.value, newValue) && force) {
|
|
827
|
-
this.filePickBox.valueSelection = [0, this.filePickBox.value.length];
|
|
828
|
-
this.insertText(newValue, newValue);
|
|
829
|
-
}
|
|
830
|
-
if (force && trailing && isSave) {
|
|
831
|
-
this.filePickBox.valueSelection = [this.filePickBox.value.length - trailing.length, this.filePickBox.value.length - trailing.length];
|
|
832
|
-
}
|
|
833
|
-
else if (!trailing) {
|
|
834
|
-
this.filePickBox.valueSelection = [this.filePickBox.value.length, this.filePickBox.value.length];
|
|
835
|
-
}
|
|
836
|
-
this.busy = false;
|
|
837
|
-
this.updatingPromise = undefined;
|
|
838
|
-
return result;
|
|
839
|
-
});
|
|
840
|
-
});
|
|
841
|
-
if (this.updatingPromise !== undefined) {
|
|
842
|
-
this.updatingPromise.cancel();
|
|
843
|
-
}
|
|
844
|
-
this.updatingPromise = updatingPromise;
|
|
845
|
-
return updatingPromise;
|
|
846
|
-
}
|
|
847
|
-
pathFromUri(uri, endWithSeparator = false) {
|
|
848
|
-
let result = normalizeDriveLetter(uri.fsPath, this.isWindows).replace(/\n/g, '');
|
|
849
|
-
if (this.separator === '/') {
|
|
850
|
-
result = result.replace(/\\/g, this.separator);
|
|
851
|
-
}
|
|
852
|
-
else {
|
|
853
|
-
result = result.replace(/\//g, this.separator);
|
|
854
|
-
}
|
|
855
|
-
if (endWithSeparator && !this.endsWithSlash(result)) {
|
|
856
|
-
result = result + this.separator;
|
|
857
|
-
}
|
|
858
|
-
return result;
|
|
859
|
-
}
|
|
860
|
-
pathAppend(uri, additional) {
|
|
861
|
-
if ((additional === '..') || (additional === '.')) {
|
|
862
|
-
const basePath = this.pathFromUri(uri, true);
|
|
863
|
-
return basePath + additional;
|
|
864
|
-
}
|
|
865
|
-
else {
|
|
866
|
-
return this.pathFromUri(resources.joinPath(uri, additional));
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
async checkIsWindowsOS() {
|
|
870
|
-
let isWindowsOS = isWindows;
|
|
871
|
-
const env = await this.getRemoteAgentEnvironment();
|
|
872
|
-
if (env) {
|
|
873
|
-
isWindowsOS = env.os === 1 ;
|
|
874
|
-
}
|
|
875
|
-
return isWindowsOS;
|
|
876
|
-
}
|
|
877
|
-
endsWithSlash(s) {
|
|
878
|
-
return /[\/\\]$/.test(s);
|
|
879
|
-
}
|
|
880
|
-
basenameWithTrailingSlash(fullPath) {
|
|
881
|
-
const child = this.pathFromUri(fullPath, true);
|
|
882
|
-
const parent = this.pathFromUri(resources.dirname(fullPath), true);
|
|
883
|
-
return child.substring(parent.length);
|
|
884
|
-
}
|
|
885
|
-
async createBackItem(currFolder) {
|
|
886
|
-
const fileRepresentationCurr = this.currentFolder.with({ scheme: Schemas.file, authority: '' });
|
|
887
|
-
const fileRepresentationParent = resources.dirname(fileRepresentationCurr);
|
|
888
|
-
if (!resources.isEqual(fileRepresentationCurr, fileRepresentationParent)) {
|
|
889
|
-
const parentFolder = resources.dirname(currFolder);
|
|
890
|
-
if (await this.fileService.exists(parentFolder)) {
|
|
891
|
-
return { label: '..', uri: resources.addTrailingPathSeparator(parentFolder, this.separator), isFolder: true };
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
return undefined;
|
|
895
|
-
}
|
|
896
|
-
async createItems(folder, currentFolder, token) {
|
|
897
|
-
const result = [];
|
|
898
|
-
const backDir = await this.createBackItem(currentFolder);
|
|
899
|
-
try {
|
|
900
|
-
if (!folder) {
|
|
901
|
-
folder = await this.fileService.resolve(currentFolder);
|
|
902
|
-
}
|
|
903
|
-
const items = folder.children ? await Promise.all(( folder.children.map(child => this.createItem(child, currentFolder, token)))) : [];
|
|
904
|
-
for (const item of items) {
|
|
905
|
-
if (item) {
|
|
906
|
-
result.push(item);
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
catch (e) {
|
|
911
|
-
console.log(e);
|
|
912
|
-
}
|
|
913
|
-
if (token.isCancellationRequested) {
|
|
914
|
-
return [];
|
|
915
|
-
}
|
|
916
|
-
const sorted = result.sort((i1, i2) => {
|
|
917
|
-
if (i1.isFolder !== i2.isFolder) {
|
|
918
|
-
return i1.isFolder ? -1 : 1;
|
|
919
|
-
}
|
|
920
|
-
const trimmed1 = this.endsWithSlash(i1.label) ? i1.label.substr(0, i1.label.length - 1) : i1.label;
|
|
921
|
-
const trimmed2 = this.endsWithSlash(i2.label) ? i2.label.substr(0, i2.label.length - 1) : i2.label;
|
|
922
|
-
return trimmed1.localeCompare(trimmed2);
|
|
923
|
-
});
|
|
924
|
-
if (backDir) {
|
|
925
|
-
sorted.unshift(backDir);
|
|
926
|
-
}
|
|
927
|
-
return sorted;
|
|
928
|
-
}
|
|
929
|
-
extname(file) {
|
|
930
|
-
const ext = resources.extname(file);
|
|
931
|
-
if (ext.length === 0) {
|
|
932
|
-
const basename = resources.basename(file);
|
|
933
|
-
if (basename.startsWith('.')) {
|
|
934
|
-
return basename;
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
else {
|
|
938
|
-
return ext;
|
|
939
|
-
}
|
|
940
|
-
return '';
|
|
941
|
-
}
|
|
942
|
-
filterFile(file) {
|
|
943
|
-
if (this.options.filters) {
|
|
944
|
-
const ext = this.extname(file);
|
|
945
|
-
for (let i = 0; i < this.options.filters.length; i++) {
|
|
946
|
-
for (let j = 0; j < this.options.filters[i].extensions.length; j++) {
|
|
947
|
-
const testExt = this.options.filters[i].extensions[j];
|
|
948
|
-
if ((testExt === '*') || (ext === ('.' + testExt))) {
|
|
949
|
-
return true;
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
return false;
|
|
954
|
-
}
|
|
955
|
-
return true;
|
|
956
|
-
}
|
|
957
|
-
async createItem(stat, parent, token) {
|
|
958
|
-
if (token.isCancellationRequested) {
|
|
959
|
-
return undefined;
|
|
960
|
-
}
|
|
961
|
-
let fullPath = resources.joinPath(parent, stat.name);
|
|
962
|
-
if (stat.isDirectory) {
|
|
963
|
-
const filename = resources.basename(fullPath);
|
|
964
|
-
fullPath = resources.addTrailingPathSeparator(fullPath, this.separator);
|
|
965
|
-
return { label: filename, uri: fullPath, isFolder: true, iconClasses: getIconClasses(this.modelService, this.languageService, fullPath || undefined, FileKind.FOLDER) };
|
|
966
|
-
}
|
|
967
|
-
else if (!stat.isDirectory && this.allowFileSelection && this.filterFile(fullPath)) {
|
|
968
|
-
return { label: stat.name, uri: fullPath, isFolder: false, iconClasses: getIconClasses(this.modelService, this.languageService, fullPath || undefined) };
|
|
969
|
-
}
|
|
970
|
-
return undefined;
|
|
971
|
-
}
|
|
972
|
-
};
|
|
973
|
-
SimpleFileDialog = ( __decorate([
|
|
974
|
-
( __param(0, IFileService)),
|
|
975
|
-
( __param(1, IQuickInputService)),
|
|
976
|
-
( __param(2, ILabelService)),
|
|
977
|
-
( __param(3, IWorkspaceContextService)),
|
|
978
|
-
( __param(4, INotificationService)),
|
|
979
|
-
( __param(5, IFileDialogService)),
|
|
980
|
-
( __param(6, IModelService)),
|
|
981
|
-
( __param(7, ILanguageService)),
|
|
982
|
-
( __param(8, IWorkbenchEnvironmentService)),
|
|
983
|
-
( __param(9, IRemoteAgentService)),
|
|
984
|
-
( __param(10, IPathService)),
|
|
985
|
-
( __param(11, IKeybindingService)),
|
|
986
|
-
( __param(12, IContextKeyService)),
|
|
987
|
-
( __param(13, IAccessibilityService))
|
|
988
|
-
], SimpleFileDialog));
|
|
989
|
-
export { OpenLocalFileCommand, OpenLocalFileFolderCommand, OpenLocalFolderCommand, RemoteFileDialogContext, SaveLocalFileCommand, SimpleFileDialog };
|