@codingame/monaco-vscode-api 1.78.8 → 1.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/activity.d.ts +2902 -0
- package/dist/api.js +6 -5
- package/dist/assets/activityaction.css +224 -0
- package/dist/assets/activitybarpart.css +65 -0
- package/dist/assets/basepanelpart.css +221 -0
- package/dist/assets/callHierarchy.css +62 -0
- package/dist/assets/{sidebysideeditor.css → compositepart.css} +10 -2
- package/dist/assets/debugViewlet.css +337 -0
- package/dist/assets/explorerviewlet.css +129 -0
- package/dist/assets/hover.css +127 -0
- package/dist/assets/interactiveSession.css +340 -0
- package/dist/assets/menubar.css +111 -0
- package/dist/assets/menubarControl.css +61 -0
- package/dist/assets/notificationsCenter.css +3 -3
- package/dist/assets/panelpart.css +75 -0
- package/dist/assets/part.css +109 -0
- package/dist/assets/repl.css +145 -0
- package/dist/assets/sidebarpart.css +61 -0
- package/dist/assets/tunnelView.css +107 -0
- package/dist/assets/typeHierarchy.css +62 -0
- package/dist/assets/views.css +297 -0
- package/dist/collections.d.ts +7 -0
- package/dist/colorRegistry.d.ts +710 -0
- package/dist/contextkey.d.ts +330 -0
- package/dist/debugProtocol.d.ts +2343 -0
- package/dist/default-extensions/bat.js +5 -4
- package/dist/default-extensions/clojure.js +4 -3
- package/dist/default-extensions/coffeescript.js +5 -4
- package/dist/default-extensions/cpp.js +10 -9
- package/dist/default-extensions/csharp.js +5 -4
- package/dist/default-extensions/css.js +4 -3
- package/dist/default-extensions/dart.js +4 -3
- package/dist/default-extensions/diff.js +4 -3
- package/dist/default-extensions/docker.js +4 -3
- package/dist/default-extensions/fsharp.js +5 -4
- package/dist/default-extensions/go.js +4 -3
- package/dist/default-extensions/groovy.js +5 -4
- package/dist/default-extensions/handlebars.js +4 -3
- package/dist/default-extensions/hlsl.js +4 -3
- package/dist/default-extensions/html.js +6 -5
- package/dist/default-extensions/ini.js +5 -4
- package/dist/default-extensions/java.js +5 -4
- package/dist/default-extensions/javascript.js +8 -7
- package/dist/default-extensions/json.js +5 -4
- package/dist/default-extensions/julia.js +4 -3
- package/dist/default-extensions/latex.js +10 -9
- package/dist/default-extensions/less.js +4 -3
- package/dist/default-extensions/log.js +3 -2
- package/dist/default-extensions/lua.js +4 -3
- package/dist/default-extensions/make.js +4 -3
- package/dist/default-extensions/markdown-basics.js +5 -4
- package/dist/default-extensions/objective-c.js +5 -4
- package/dist/default-extensions/perl.js +6 -5
- package/dist/default-extensions/php.js +6 -5
- package/dist/default-extensions/powershell.js +4 -3
- package/dist/default-extensions/pug.js +4 -3
- package/dist/default-extensions/python.js +5 -4
- package/dist/default-extensions/r.js +4 -3
- package/dist/default-extensions/razor.js +4 -3
- package/dist/default-extensions/references-view.js +8 -0
- package/dist/default-extensions/ruby.js +4 -3
- package/dist/default-extensions/rust.js +4 -3
- package/dist/default-extensions/scss.js +5 -4
- package/dist/default-extensions/shaderlab.js +4 -3
- package/dist/default-extensions/shellscript.js +4 -3
- package/dist/default-extensions/sql.js +4 -3
- package/dist/default-extensions/swift.js +5 -4
- package/dist/default-extensions/theme-abyss.js +3 -2
- package/dist/default-extensions/theme-defaults.js +31 -10
- package/dist/default-extensions/theme-kimbie-dark.js +3 -2
- package/dist/default-extensions/theme-monokai-dimmed.js +3 -2
- package/dist/default-extensions/theme-monokai.js +3 -2
- package/dist/default-extensions/theme-quietlight.js +3 -2
- package/dist/default-extensions/theme-red.js +3 -2
- package/dist/default-extensions/theme-seti.js +5 -2
- package/dist/default-extensions/theme-solarized-dark.js +3 -2
- package/dist/default-extensions/theme-solarized-light.js +3 -2
- package/dist/default-extensions/theme-tomorrow-night-blue.js +3 -2
- package/dist/default-extensions/typescript-basics.js +8 -7
- package/dist/default-extensions/vb.js +5 -4
- package/dist/default-extensions/xml.js +6 -5
- package/dist/default-extensions/yaml.js +4 -3
- package/dist/editor.d.ts +322 -0
- package/dist/editorBrowser.d.ts +3128 -0
- package/dist/event.d.ts +581 -0
- package/dist/extension-tools-d0cfdea1.js +25603 -0
- package/dist/extensions.d.ts +20 -829
- package/dist/extensions.d2.ts +457 -0
- package/dist/extensions.js +100 -5
- package/dist/extensionsRegistry.d.ts +239 -0
- package/dist/files.d.ts +853 -0
- package/dist/instantiation.d.ts +59 -0
- package/dist/jsonSchema.d.ts +90 -0
- package/dist/keybinding.d.ts +622 -0
- package/dist/languageFeatures.d.ts +4762 -0
- package/dist/log.d.ts +150 -0
- package/dist/monaco.d.ts +42 -5195
- package/dist/override/vs/workbench/contrib/files/browser/views/openEditorsView.js +2 -0
- package/dist/rollup-extension-directory-plugin.d.ts +5 -2
- package/dist/rollup-extension-directory-plugin.js +74 -46
- package/dist/rollup-vsix-plugin.d.ts +4 -2
- package/dist/rollup-vsix-plugin.js +57 -19
- package/dist/service-override/audioCue.d.ts +4 -19
- package/dist/service-override/configuration.d.ts +10 -628
- package/dist/service-override/configuration.js +16 -4
- package/dist/service-override/debug.d.ts +4 -19
- package/dist/service-override/dialogs.d.ts +3 -3
- package/dist/service-override/files.d.ts +53 -818
- package/dist/service-override/files.js +37 -15
- package/dist/service-override/keybindings.d.ts +9 -11
- package/dist/service-override/languages.d.ts +4 -74
- package/dist/service-override/layout.js +80 -6
- package/dist/service-override/modelEditor.d.ts +9 -557
- package/dist/service-override/modelEditor.js +5 -3
- package/dist/service-override/notifications.d.ts +3 -3
- package/dist/service-override/preferences.d.ts +3 -3
- package/dist/service-override/snippets.d.ts +3 -3
- package/dist/service-override/textmate.d.ts +3 -11
- package/dist/service-override/theme.d.ts +4 -16
- package/dist/service-override/views.d.ts +502 -0
- package/dist/service-override/views.js +177 -0
- package/dist/services.d.ts +1946 -16903
- package/dist/services.js +3 -0
- package/dist/standaloneServices.d.ts +14 -0
- package/dist/themables.d.ts +28 -0
- package/dist/uri.d.ts +151 -0
- package/dist/vscode/vs/base/browser/ui/menu/menubar.js +831 -0
- package/dist/vscode/vs/base/browser/ui/splitview/paneview.js +151 -2
- package/dist/vscode/vs/base/browser/ui/tree/treeDefaults.js +14 -0
- package/dist/vscode/vs/platform/backup/common/backup.js +7 -0
- package/dist/vscode/vs/platform/configuration/common/configurationRegistry.js +10 -0
- package/dist/vscode/vs/platform/credentials/common/credentials.js +3 -0
- package/dist/vscode/vs/platform/extensionManagement/common/extensionManagementUtil.js +4 -1
- package/dist/vscode/vs/platform/extensionManagement/common/extensionStorage.js +174 -0
- package/dist/vscode/vs/platform/files/common/fileService.js +2 -11
- package/dist/vscode/vs/platform/files/common/files.js +28 -0
- package/dist/vscode/vs/platform/files/common/io.js +2 -7
- package/dist/vscode/vs/platform/languagePacks/common/languagePacks.js +3 -0
- package/dist/vscode/vs/platform/remote/common/remoteAuthorityResolver.js +3 -1
- package/dist/vscode/vs/platform/storage/common/storage.js +332 -0
- package/dist/vscode/vs/platform/telemetry/common/telemetryUtils.js +2 -1
- package/dist/vscode/vs/platform/tunnel/common/tunnel.js +29 -1
- package/dist/vscode/vs/platform/update/common/update.js +3 -0
- package/dist/vscode/vs/platform/window/common/window.js +33 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadBulkEdits.js +18 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadDebugService.js +21 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadExtensionService.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadLanguageFeatures.js +13 -10
- package/dist/vscode/vs/workbench/api/browser/mainThreadLocalization.js +33 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadStorage.js +69 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadTreeViews.js +300 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadWorkspace.js +21 -1
- package/dist/vscode/vs/workbench/api/browser/viewsExtensionPoint.js +699 -0
- package/dist/vscode/vs/workbench/api/common/extHost.protocol.js +5 -1
- package/dist/vscode/vs/workbench/api/common/extHostConfiguration.js +13 -8
- package/dist/vscode/vs/workbench/api/common/extHostDebugService.js +31 -0
- package/dist/vscode/vs/workbench/api/common/extHostExtensionService.js +4 -4
- package/dist/vscode/vs/workbench/api/common/extHostLanguageFeatures.js +54 -43
- package/dist/vscode/vs/workbench/api/common/extHostTreeViews.js +823 -0
- package/dist/vscode/vs/workbench/api/common/extHostTypeConverters.js +33 -13
- package/dist/vscode/vs/workbench/api/common/extHostTypes.js +29 -1
- package/dist/vscode/vs/workbench/api/common/extHostVariableResolverService.js +3 -3
- package/dist/vscode/vs/workbench/api/common/extHostWorkspace.js +8 -0
- package/dist/vscode/vs/workbench/api/common/shared/dataTransferCache.js +1 -1
- package/dist/vscode/vs/workbench/browser/actions/layoutActions.js +318 -0
- package/dist/vscode/vs/workbench/browser/actions/listCommands.js +602 -0
- package/dist/vscode/vs/workbench/browser/actions/windowActions.js +271 -0
- package/dist/vscode/vs/workbench/browser/actions/workspaceActions.js +250 -0
- package/dist/vscode/vs/workbench/browser/actions/workspaceCommands.js +6 -0
- package/dist/vscode/vs/workbench/browser/composite.js +49 -1
- package/dist/vscode/vs/workbench/browser/dnd.js +395 -0
- package/dist/vscode/vs/workbench/browser/labels.js +426 -0
- package/dist/vscode/vs/workbench/browser/panecomposite.js +158 -0
- package/dist/vscode/vs/workbench/browser/part.js +84 -0
- package/dist/vscode/vs/workbench/browser/parts/activitybar/activitybarActions.js +582 -0
- package/dist/vscode/vs/workbench/browser/parts/activitybar/activitybarPart.js +784 -0
- package/dist/vscode/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +146 -0
- package/dist/vscode/vs/workbench/browser/parts/compositeBar.js +687 -0
- package/dist/vscode/vs/workbench/browser/parts/compositeBarActions.js +578 -0
- package/dist/vscode/vs/workbench/browser/parts/compositePart.js +319 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorActions.js +7 -7
- package/dist/vscode/vs/workbench/browser/parts/editor/editorCommands.js +4 -1121
- package/dist/vscode/vs/workbench/browser/parts/panel/panelActions.js +381 -0
- package/dist/vscode/vs/workbench/browser/parts/panel/panelPart.js +753 -0
- package/dist/vscode/vs/workbench/browser/parts/sidebar/sidebarPart.js +217 -0
- package/dist/vscode/vs/workbench/browser/parts/titlebar/menubarControl.js +600 -0
- package/dist/vscode/vs/workbench/browser/parts/views/checkbox.js +80 -0
- package/dist/vscode/vs/workbench/browser/parts/views/treeView.js +1475 -0
- package/dist/vscode/vs/workbench/browser/parts/views/viewFilter.js +181 -0
- package/dist/vscode/vs/workbench/browser/parts/views/viewPane.js +50 -2
- package/dist/vscode/vs/workbench/browser/parts/views/viewPaneContainer.js +1020 -0
- package/dist/vscode/vs/workbench/browser/parts/views/viewsService.js +562 -0
- package/dist/vscode/vs/workbench/browser/parts/views/viewsViewlet.js +109 -0
- package/dist/vscode/vs/workbench/browser/style.js +43 -0
- package/dist/vscode/vs/workbench/common/activity.js +3 -0
- package/dist/vscode/vs/workbench/common/contextkeys.js +31 -9
- package/dist/vscode/vs/workbench/common/editor/textEditorModel.js +7 -8
- package/dist/vscode/vs/workbench/common/editor.js +1 -47
- package/dist/vscode/vs/workbench/common/theme.js +38 -25
- package/dist/vscode/vs/workbench/common/views.js +280 -1
- package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits.js +62 -1
- package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +305 -0
- package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.js +373 -0
- package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.js +257 -0
- package/dist/vscode/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +259 -0
- package/dist/vscode/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +337 -0
- package/dist/vscode/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +119 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/baseDebugView.js +8 -2
- package/dist/vscode/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +12 -4
- package/dist/vscode/vs/workbench/contrib/debug/browser/breakpointWidget.js +5 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/breakpointsView.js +585 -8
- package/dist/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +5 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/callStackView.js +954 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debug.contribution.js +151 -145
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugANSIHandling.js +345 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugCommands.js +79 -3
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorActions.js +522 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorContribution.js +10 -9
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugHover.js +15 -7
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugIcons.js +28 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugSession.js +72 -65
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugViewlet.js +166 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/linkDetector.js +10 -10
- package/dist/vscode/vs/workbench/contrib/debug/browser/loadedScriptsView.js +629 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/repl.js +908 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/replFilter.js +46 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/replViewer.js +330 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/variablesView.js +295 -10
- package/dist/vscode/vs/workbench/contrib/debug/browser/watchExpressionsView.js +411 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/welcomeView.js +85 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debug.js +98 -1
- package/dist/vscode/vs/workbench/contrib/debug/common/debugModel.js +10 -1
- package/dist/vscode/vs/workbench/contrib/debug/common/debugViewModel.js +9 -1
- package/dist/vscode/vs/workbench/contrib/debug/common/replModel.js +51 -1
- package/dist/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/explorerViewlet.js +254 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.contribution.js +207 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.js +1119 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/fileCommands.js +595 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/fileConstants.js +26 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/fileImportExport.js +708 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/files.contribution.js +368 -13
- package/dist/vscode/vs/workbench/contrib/files/browser/files.js +88 -1
- package/dist/vscode/vs/workbench/contrib/files/browser/views/emptyView.js +88 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +73 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerView.js +796 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerViewer.js +1209 -0
- package/dist/vscode/vs/workbench/contrib/files/common/files.js +194 -3
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionFollowups.js +30 -0
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionInputPart.js +196 -0
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionListRenderer.js +622 -0
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionOptions.js +77 -0
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionWidget.js +311 -0
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionContextKeys.js +48 -0
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionService.js +8 -0
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionViewModel.js +207 -0
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionWidgetHistoryService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionWordCounter.js +25 -0
- package/dist/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser.js +27 -0
- package/dist/vscode/vs/workbench/contrib/notebook/common/notebookCommon.js +79 -1
- package/dist/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput.js +249 -0
- package/dist/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/notebook/common/notebookService.js +10 -0
- package/dist/vscode/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +117 -19
- package/dist/vscode/vs/workbench/contrib/remote/browser/remoteExplorer.js +186 -0
- package/dist/vscode/vs/workbench/contrib/remote/browser/remoteIcons.js +23 -0
- package/dist/vscode/vs/workbench/contrib/remote/browser/tunnelView.js +1636 -0
- package/dist/vscode/vs/workbench/contrib/scm/common/scm.js +2 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +167 -0
- package/dist/vscode/vs/workbench/contrib/testing/common/testId.js +5 -2
- package/dist/vscode/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +244 -0
- package/dist/vscode/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +332 -0
- package/dist/vscode/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +117 -0
- package/dist/vscode/vs/workbench/contrib/webview/browser/webview.js +41 -0
- package/dist/vscode/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +20 -0
- package/dist/vscode/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +231 -0
- package/dist/vscode/vs/workbench/contrib/webviewView/browser/webviewViewService.js +3 -0
- package/dist/vscode/vs/workbench/services/actions/common/menusExtensionPoint.js +179 -1
- package/dist/vscode/vs/workbench/services/activity/browser/activityService.js +94 -0
- package/dist/vscode/vs/workbench/services/activity/common/activity.js +15 -1
- package/dist/vscode/vs/workbench/services/authentication/browser/authenticationService.js +35 -0
- package/dist/vscode/vs/workbench/services/authentication/common/authentication.js +3 -0
- package/dist/vscode/vs/workbench/services/configuration/browser/configuration.js +1 -1
- package/dist/vscode/vs/workbench/services/configurationResolver/common/variableResolver.js +13 -13
- package/dist/vscode/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +3 -3
- package/dist/vscode/vs/workbench/services/extensions/common/extensionStorageMigration.js +56 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensions.js +1 -1
- package/dist/vscode/vs/workbench/services/extensions/common/extensionsApiProposals.js +8 -0
- package/dist/vscode/vs/workbench/services/hover/browser/hover.js +3 -0
- package/dist/vscode/vs/workbench/services/hover/browser/hoverService.js +149 -0
- package/dist/vscode/vs/workbench/services/hover/browser/hoverWidget.js +514 -0
- package/dist/vscode/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.js +29 -29
- package/dist/vscode/vs/workbench/services/keybinding/common/windowsKeyboardMapper.js +11 -11
- package/dist/vscode/vs/workbench/services/language/common/languageService.js +1 -1
- package/dist/vscode/vs/workbench/services/layout/browser/layoutService.js +9 -1
- package/dist/vscode/vs/workbench/services/remote/common/remoteExplorerService.js +782 -0
- package/dist/vscode/vs/workbench/services/search/common/ignoreFile.js +102 -0
- package/dist/vscode/vs/workbench/services/search/common/queryBuilder.js +26 -8
- package/dist/vscode/vs/workbench/services/search/common/search.js +4 -3
- package/dist/vscode/vs/workbench/services/semanticSimilarity/common/semanticSimilarityService.js +3 -0
- package/dist/vscode/vs/workbench/services/textMate/browser/workerHost/textMateWorkerTokenizerController.js +6 -10
- package/dist/vscode/vs/workbench/services/textfile/common/textfiles.js +1 -1
- package/dist/vscode/vs/workbench/services/themes/browser/fileIconThemeData.js +2 -2
- package/dist/vscode/vs/workbench/services/themes/browser/productIconThemeData.js +4 -5
- package/dist/vscode/vs/workbench/services/themes/browser/workbenchThemeService.js +16 -10
- package/dist/vscode/vs/workbench/services/themes/common/themeConfiguration.js +36 -38
- package/dist/vscode/vs/workbench/services/themes/common/themeExtensionPoints.js +4 -8
- package/dist/vscode/vs/workbench/services/themes/common/workbenchThemeService.js +22 -1
- package/dist/vscode/vs/workbench/services/views/browser/treeViewsService.js +3 -0
- package/dist/vscode/vs/workbench/services/views/browser/viewDescriptorService.js +688 -0
- package/dist/vscode/vs/workbench/services/views/common/treeViewsService.js +20 -0
- package/dist/vscode/vs/workbench/services/views/common/viewContainerModel.js +613 -0
- package/dist/vscode-default-extensions/bat/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/bat/snippets/batchfile.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/bat/syntaxes/batchfile.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/clojure/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/clojure/syntaxes/clojure.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/coffeescript/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/coffeescript/snippets/coffeescript.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/cpp/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/cpp/snippets/c.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/cpp/snippets/cpp.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/cpp/syntaxes/c.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/cpp/syntaxes/cpp.embedded.macro.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/cpp/syntaxes/cpp.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/cpp/syntaxes/cuda-cpp.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/cpp/syntaxes/{platform.tmLanguage.json.js → platform.tmLanguage.json.extensionResource.js} +2 -2
- package/dist/vscode-default-extensions/csharp/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/csharp/snippets/csharp.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/csharp/syntaxes/csharp.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/css/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/css/syntaxes/css.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/dart/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/dart/syntaxes/dart.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/diff/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/diff/syntaxes/diff.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/docker/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/docker/syntaxes/docker.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/fsharp/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/fsharp/snippets/fsharp.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/fsharp/syntaxes/fsharp.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/go/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/go/syntaxes/go.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/groovy/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/groovy/snippets/groovy.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/groovy/syntaxes/groovy.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/handlebars/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/handlebars/syntaxes/Handlebars.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/hlsl/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/hlsl/syntaxes/hlsl.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/html/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/html/snippets/html.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/html/syntaxes/html-derivative.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/html/syntaxes/html.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/ini/ini.language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/ini/properties.language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/ini/syntaxes/ini.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/java/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/java/snippets/java.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/java/syntaxes/java.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/javascript/javascript-language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/javascript/snippets/javascript.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/javascript/syntaxes/JavaScript.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/javascript/syntaxes/Regular Expressions (JavaScript).tmLanguage.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/javascript/tags-language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/json/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/json/syntaxes/JSON.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/json/syntaxes/JSONC.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/julia/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/julia/syntaxes/julia.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/latex-cpp-embedded-language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/latex-language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/markdown-latex-combined-language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/syntaxes/Bibtex.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/syntaxes/LaTeX.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/syntaxes/TeX.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/less/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/less/syntaxes/less.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/log/syntaxes/log.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/lua/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/lua/syntaxes/lua.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/make/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/make/syntaxes/make.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/markdown-basics/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/markdown-basics/snippets/markdown.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/markdown-basics/syntaxes/markdown.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/objective-c/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/objective-c/syntaxes/objective-c.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/objective-c/syntaxes/objective-c__.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/perl/perl.language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/perl/perl6.language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/perl/syntaxes/perl.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/perl/syntaxes/perl6.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/php/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/php/snippets/php.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/php/syntaxes/html.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/php/syntaxes/php.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/powershell/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/powershell/syntaxes/powershell.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/pug/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/pug/syntaxes/pug.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/python/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/python/syntaxes/MagicPython.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/python/syntaxes/MagicRegExp.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/r/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/r/syntaxes/r.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/razor/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/razor/syntaxes/cshtml.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/references-view/dist/extension.js.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/references-view/package.json.js +2 -0
- package/dist/vscode-default-extensions/ruby/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/ruby/syntaxes/ruby.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/rust/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/rust/syntaxes/rust.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/scss/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/scss/syntaxes/sassdoc.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/scss/syntaxes/scss.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/shaderlab/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/shaderlab/syntaxes/shaderlab.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/shellscript/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/sql/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/sql/syntaxes/sql.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/swift/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/swift/snippets/swift.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/swift/syntaxes/swift.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-abyss/themes/abyss-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/document-dark.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/document-light.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/folder-dark.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/folder-light.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/folder-open-dark.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/folder-open-light.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/root-folder-dark.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/root-folder-light.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/root-folder-open-dark.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/images/root-folder-open-light.svg.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/fileicons/vs_minimal-icon-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/package.json.js +1 -1
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_plus.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_plus_experimental.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_vs.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/hc_black.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/hc_light.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/light_plus.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/light_plus_experimental.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/light_vs.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-monokai/themes/monokai-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-quietlight/themes/quietlight-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-red/themes/Red-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-seti/icons/seti.woff.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-seti/icons/vs-seti-icon-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-solarized-light/themes/solarized-light-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/typescript-basics/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/typescript-basics/snippets/typescript.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/typescript-basics/syntaxes/jsdoc.js.injection.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/typescript-basics/syntaxes/jsdoc.ts.injection.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/vb/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/vb/snippets/vb.code-snippets.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/vb/syntaxes/asp-vb-net.tmlanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/xml/syntaxes/xml.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/xml/syntaxes/xsl.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/xml/xml.language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/xml/xsl.language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/yaml/language-configuration.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/yaml/syntaxes/yaml.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-services/extHost.js +28 -5
- package/dist/vscode-services/l10n.js +26 -0
- package/dist/vscode-services/missing-services.js +64 -12
- package/dist/vscode-services/window.js +23 -5
- package/dist/workbenchThemeService.d.ts +20 -0
- package/dist/workspace.d.ts +141 -0
- package/monaco-editor-treemending.patch +1134 -1902
- package/package.json +28 -16
- package/dist/default-extensions/typescript-language-features.js +0 -6
- package/dist/extension-tools-b68a64de.js +0 -1024
- package/dist/vscode/vs/workbench/browser/parts/editor/editorPane.js +0 -242
- package/dist/vscode/vs/workbench/browser/parts/editor/editorWithViewState.js +0 -139
- package/dist/vscode/vs/workbench/browser/parts/editor/sideBySideEditor.js +0 -387
- package/dist/vscode/vs/workbench/browser/parts/editor/textDiffEditor.js +0 -289
- package/dist/vscode-default-extensions/bat/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/bat/snippets/batchfile.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/bat/syntaxes/batchfile.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/clojure/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/clojure/syntaxes/clojure.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/coffeescript/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/coffeescript/snippets/coffeescript.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/cpp/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/cpp/snippets/c.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/cpp/snippets/cpp.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/cpp/syntaxes/c.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/cpp/syntaxes/cpp.embedded.macro.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/cpp/syntaxes/cpp.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/cpp/syntaxes/cuda-cpp.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/csharp/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/csharp/snippets/csharp.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/csharp/syntaxes/csharp.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/css/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/css/syntaxes/css.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/dart/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/dart/syntaxes/dart.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/diff/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/diff/syntaxes/diff.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/docker/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/docker/syntaxes/docker.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/fsharp/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/fsharp/snippets/fsharp.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/fsharp/syntaxes/fsharp.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/go/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/go/syntaxes/go.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/groovy/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/groovy/snippets/groovy.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/groovy/syntaxes/groovy.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/handlebars/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/handlebars/syntaxes/Handlebars.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/hlsl/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/hlsl/syntaxes/hlsl.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/html/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/html/snippets/html.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/html/syntaxes/html-derivative.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/html/syntaxes/html.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/ini/ini.language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/ini/properties.language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/ini/syntaxes/ini.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/java/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/java/snippets/java.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/java/syntaxes/java.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/javascript/javascript-language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/javascript/snippets/javascript.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/javascript/syntaxes/JavaScript.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/javascript/syntaxes/Regular Expressions (JavaScript).tmLanguage.js +0 -2
- package/dist/vscode-default-extensions/javascript/tags-language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/json/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/json/syntaxes/JSON.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/json/syntaxes/JSONC.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/julia/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/julia/syntaxes/julia.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/latex/latex-cpp-embedded-language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/latex/latex-language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/latex/markdown-latex-combined-language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/latex/syntaxes/Bibtex.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/latex/syntaxes/LaTeX.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/latex/syntaxes/TeX.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/less/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/less/syntaxes/less.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/log/syntaxes/log.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/lua/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/lua/syntaxes/lua.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/make/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/make/syntaxes/make.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/markdown-basics/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/markdown-basics/snippets/markdown.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/markdown-basics/syntaxes/markdown.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/objective-c/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/objective-c/syntaxes/objective-c.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/objective-c/syntaxes/objective-c__.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/perl/perl.language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/perl/perl6.language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/perl/syntaxes/perl.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/perl/syntaxes/perl6.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/php/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/php/snippets/php.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/php/syntaxes/html.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/php/syntaxes/php.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/powershell/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/powershell/syntaxes/powershell.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/pug/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/pug/syntaxes/pug.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/python/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/python/syntaxes/MagicPython.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/python/syntaxes/MagicRegExp.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/r/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/r/syntaxes/r.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/razor/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/razor/syntaxes/cshtml.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/ruby/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/ruby/syntaxes/ruby.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/rust/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/rust/syntaxes/rust.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/scss/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/scss/syntaxes/sassdoc.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/scss/syntaxes/scss.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/shaderlab/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/shaderlab/syntaxes/shaderlab.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/shellscript/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/sql/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/sql/syntaxes/sql.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/swift/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/swift/snippets/swift.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/swift/syntaxes/swift.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/theme-abyss/themes/abyss-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/fileicons/vs_minimal-icon-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_plus.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_plus_experimental.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_vs.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/hc_black.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/hc_light.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/light_plus.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/light_plus_experimental.json.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/light_vs.json.js +0 -2
- package/dist/vscode-default-extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-monokai/themes/monokai-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-quietlight/themes/quietlight-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-red/themes/Red-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-seti/icons/vs-seti-icon-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-solarized-light/themes/solarized-light-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json.js +0 -2
- package/dist/vscode-default-extensions/typescript-basics/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/typescript-basics/snippets/typescript.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/typescript-basics/syntaxes/jsdoc.js.injection.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/typescript-basics/syntaxes/jsdoc.ts.injection.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/typescript-language-features/package.json.js +0 -2
- package/dist/vscode-default-extensions/vb/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/vb/snippets/vb.code-snippets.js +0 -2
- package/dist/vscode-default-extensions/vb/syntaxes/asp-vb-net.tmlanguage.json.js +0 -2
- package/dist/vscode-default-extensions/xml/syntaxes/xml.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/xml/syntaxes/xsl.tmLanguage.json.js +0 -2
- package/dist/vscode-default-extensions/xml/xml.language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/xml/xsl.language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/yaml/language-configuration.json.js +0 -2
- package/dist/vscode-default-extensions/yaml/syntaxes/yaml.tmLanguage.json.js +0 -2
package/dist/files.d.ts
ADDED
|
@@ -0,0 +1,853 @@
|
|
|
1
|
+
import { S as ServiceIdentifier } from './instantiation.js';
|
|
2
|
+
import { E as Event, I as IDisposable, C as CancellationToken } from './event.js';
|
|
3
|
+
import { U as URI } from './uri.js';
|
|
4
|
+
|
|
5
|
+
interface IRelativePattern {
|
|
6
|
+
/**
|
|
7
|
+
* A base file path to which this pattern will be matched against relatively.
|
|
8
|
+
*/
|
|
9
|
+
readonly base: string;
|
|
10
|
+
/**
|
|
11
|
+
* A file glob pattern like `*.{ts,js}` that will be matched on file paths
|
|
12
|
+
* relative to the base path.
|
|
13
|
+
*
|
|
14
|
+
* Example: Given a base of `/home/work/folder` and a file path of `/home/work/folder/index.js`,
|
|
15
|
+
* the file glob pattern will match on `index.js`.
|
|
16
|
+
*/
|
|
17
|
+
readonly pattern: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface ReadableStreamEvents<T> {
|
|
21
|
+
/**
|
|
22
|
+
* The 'data' event is emitted whenever the stream is
|
|
23
|
+
* relinquishing ownership of a chunk of data to a consumer.
|
|
24
|
+
*
|
|
25
|
+
* NOTE: PLEASE UNDERSTAND THAT ADDING A DATA LISTENER CAN
|
|
26
|
+
* TURN THE STREAM INTO FLOWING MODE. IT IS THEREFOR THE
|
|
27
|
+
* LAST LISTENER THAT SHOULD BE ADDED AND NOT THE FIRST
|
|
28
|
+
*
|
|
29
|
+
* Use `listenStream` as a helper method to listen to
|
|
30
|
+
* stream events in the right order.
|
|
31
|
+
*/
|
|
32
|
+
on(event: 'data', callback: (data: T) => void): void;
|
|
33
|
+
/**
|
|
34
|
+
* Emitted when any error occurs.
|
|
35
|
+
*/
|
|
36
|
+
on(event: 'error', callback: (err: Error) => void): void;
|
|
37
|
+
/**
|
|
38
|
+
* The 'end' event is emitted when there is no more data
|
|
39
|
+
* to be consumed from the stream. The 'end' event will
|
|
40
|
+
* not be emitted unless the data is completely consumed.
|
|
41
|
+
*/
|
|
42
|
+
on(event: 'end', callback: () => void): void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* A interface that emulates the API shape of a node.js readable
|
|
46
|
+
* stream for use in native and web environments.
|
|
47
|
+
*/
|
|
48
|
+
interface ReadableStream<T> extends ReadableStreamEvents<T> {
|
|
49
|
+
/**
|
|
50
|
+
* Stops emitting any events until resume() is called.
|
|
51
|
+
*/
|
|
52
|
+
pause(): void;
|
|
53
|
+
/**
|
|
54
|
+
* Starts emitting events again after pause() was called.
|
|
55
|
+
*/
|
|
56
|
+
resume(): void;
|
|
57
|
+
/**
|
|
58
|
+
* Destroys the stream and stops emitting any event.
|
|
59
|
+
*/
|
|
60
|
+
destroy(): void;
|
|
61
|
+
/**
|
|
62
|
+
* Allows to remove a listener that was previously added.
|
|
63
|
+
*/
|
|
64
|
+
removeListener(event: string, callback: Function): void;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* A interface that emulates the API shape of a node.js readable
|
|
68
|
+
* for use in native and web environments.
|
|
69
|
+
*/
|
|
70
|
+
interface Readable<T> {
|
|
71
|
+
/**
|
|
72
|
+
* Read data from the underlying source. Will return
|
|
73
|
+
* null to indicate that no more data can be read.
|
|
74
|
+
*/
|
|
75
|
+
read(): T | null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
declare class VSBuffer {
|
|
79
|
+
/**
|
|
80
|
+
* When running in a nodejs context, the backing store for the returned `VSBuffer` instance
|
|
81
|
+
* might use a nodejs Buffer allocated from node's Buffer pool, which is not transferrable.
|
|
82
|
+
*/
|
|
83
|
+
static alloc(byteLength: number): VSBuffer;
|
|
84
|
+
/**
|
|
85
|
+
* When running in a nodejs context, if `actual` is not a nodejs Buffer, the backing store for
|
|
86
|
+
* the returned `VSBuffer` instance might use a nodejs Buffer allocated from node's Buffer pool,
|
|
87
|
+
* which is not transferrable.
|
|
88
|
+
*/
|
|
89
|
+
static wrap(actual: Uint8Array): VSBuffer;
|
|
90
|
+
/**
|
|
91
|
+
* When running in a nodejs context, the backing store for the returned `VSBuffer` instance
|
|
92
|
+
* might use a nodejs Buffer allocated from node's Buffer pool, which is not transferrable.
|
|
93
|
+
*/
|
|
94
|
+
static fromString(source: string, options?: {
|
|
95
|
+
dontUseNodeBuffer?: boolean;
|
|
96
|
+
}): VSBuffer;
|
|
97
|
+
/**
|
|
98
|
+
* When running in a nodejs context, the backing store for the returned `VSBuffer` instance
|
|
99
|
+
* might use a nodejs Buffer allocated from node's Buffer pool, which is not transferrable.
|
|
100
|
+
*/
|
|
101
|
+
static fromByteArray(source: number[]): VSBuffer;
|
|
102
|
+
/**
|
|
103
|
+
* When running in a nodejs context, the backing store for the returned `VSBuffer` instance
|
|
104
|
+
* might use a nodejs Buffer allocated from node's Buffer pool, which is not transferrable.
|
|
105
|
+
*/
|
|
106
|
+
static concat(buffers: VSBuffer[], totalLength?: number): VSBuffer;
|
|
107
|
+
readonly buffer: Uint8Array;
|
|
108
|
+
readonly byteLength: number;
|
|
109
|
+
private constructor();
|
|
110
|
+
/**
|
|
111
|
+
* When running in a nodejs context, the backing store for the returned `VSBuffer` instance
|
|
112
|
+
* might use a nodejs Buffer allocated from node's Buffer pool, which is not transferrable.
|
|
113
|
+
*/
|
|
114
|
+
clone(): VSBuffer;
|
|
115
|
+
toString(): string;
|
|
116
|
+
slice(start?: number, end?: number): VSBuffer;
|
|
117
|
+
set(array: VSBuffer, offset?: number): void;
|
|
118
|
+
set(array: Uint8Array, offset?: number): void;
|
|
119
|
+
set(array: ArrayBuffer, offset?: number): void;
|
|
120
|
+
set(array: ArrayBufferView, offset?: number): void;
|
|
121
|
+
set(array: VSBuffer | Uint8Array | ArrayBuffer | ArrayBufferView, offset?: number): void;
|
|
122
|
+
readUInt32BE(offset: number): number;
|
|
123
|
+
writeUInt32BE(value: number, offset: number): void;
|
|
124
|
+
readUInt32LE(offset: number): number;
|
|
125
|
+
writeUInt32LE(value: number, offset: number): void;
|
|
126
|
+
readUInt8(offset: number): number;
|
|
127
|
+
writeUInt8(value: number, offset: number): void;
|
|
128
|
+
}
|
|
129
|
+
interface VSBufferReadable extends Readable<VSBuffer> {
|
|
130
|
+
}
|
|
131
|
+
interface VSBufferReadableStream extends ReadableStream<VSBuffer> {
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
declare const IFileService: ServiceIdentifier<IFileService>;
|
|
135
|
+
interface IFileService {
|
|
136
|
+
readonly _serviceBrand: undefined;
|
|
137
|
+
/**
|
|
138
|
+
* An event that is fired when a file system provider is added or removed
|
|
139
|
+
*/
|
|
140
|
+
readonly onDidChangeFileSystemProviderRegistrations: Event<IFileSystemProviderRegistrationEvent>;
|
|
141
|
+
/**
|
|
142
|
+
* An event that is fired when a registered file system provider changes its capabilities.
|
|
143
|
+
*/
|
|
144
|
+
readonly onDidChangeFileSystemProviderCapabilities: Event<IFileSystemProviderCapabilitiesChangeEvent>;
|
|
145
|
+
/**
|
|
146
|
+
* An event that is fired when a file system provider is about to be activated. Listeners
|
|
147
|
+
* can join this event with a long running promise to help in the activation process.
|
|
148
|
+
*/
|
|
149
|
+
readonly onWillActivateFileSystemProvider: Event<IFileSystemProviderActivationEvent>;
|
|
150
|
+
/**
|
|
151
|
+
* Registers a file system provider for a certain scheme.
|
|
152
|
+
*/
|
|
153
|
+
registerProvider(scheme: string, provider: IFileSystemProvider): IDisposable;
|
|
154
|
+
/**
|
|
155
|
+
* Returns a file system provider for a certain scheme.
|
|
156
|
+
*/
|
|
157
|
+
getProvider(scheme: string): IFileSystemProvider | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* Tries to activate a provider with the given scheme.
|
|
160
|
+
*/
|
|
161
|
+
activateProvider(scheme: string): Promise<void>;
|
|
162
|
+
/**
|
|
163
|
+
* Checks if this file service can handle the given resource by
|
|
164
|
+
* first activating any extension that wants to be activated
|
|
165
|
+
* on the provided resource scheme to include extensions that
|
|
166
|
+
* contribute file system providers for the given resource.
|
|
167
|
+
*/
|
|
168
|
+
canHandleResource(resource: URI): Promise<boolean>;
|
|
169
|
+
/**
|
|
170
|
+
* Checks if the file service has a registered provider for the
|
|
171
|
+
* provided resource.
|
|
172
|
+
*
|
|
173
|
+
* Note: this does NOT account for contributed providers from
|
|
174
|
+
* extensions that have not been activated yet. To include those,
|
|
175
|
+
* consider to call `await fileService.canHandleResource(resource)`.
|
|
176
|
+
*/
|
|
177
|
+
hasProvider(resource: URI): boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Checks if the provider for the provided resource has the provided file system capability.
|
|
180
|
+
*/
|
|
181
|
+
hasCapability(resource: URI, capability: FileSystemProviderCapabilities): boolean;
|
|
182
|
+
/**
|
|
183
|
+
* List the schemes and capabilities for registered file system providers
|
|
184
|
+
*/
|
|
185
|
+
listCapabilities(): Iterable<{
|
|
186
|
+
scheme: string;
|
|
187
|
+
capabilities: FileSystemProviderCapabilities;
|
|
188
|
+
}>;
|
|
189
|
+
/**
|
|
190
|
+
* Allows to listen for file changes. The event will fire for every file within the opened workspace
|
|
191
|
+
* (if any) as well as all files that have been watched explicitly using the #watch() API.
|
|
192
|
+
*/
|
|
193
|
+
readonly onDidFilesChange: Event<FileChangesEvent>;
|
|
194
|
+
/**
|
|
195
|
+
* An event that is fired upon successful completion of a certain file operation.
|
|
196
|
+
*/
|
|
197
|
+
readonly onDidRunOperation: Event<FileOperationEvent>;
|
|
198
|
+
/**
|
|
199
|
+
* Resolve the properties of a file/folder identified by the resource. For a folder, children
|
|
200
|
+
* information is resolved as well depending on the provided options. Use `stat()` method if
|
|
201
|
+
* you do not need children information.
|
|
202
|
+
*
|
|
203
|
+
* If the optional parameter "resolveTo" is specified in options, the stat service is asked
|
|
204
|
+
* to provide a stat object that should contain the full graph of folders up to all of the
|
|
205
|
+
* target resources.
|
|
206
|
+
*
|
|
207
|
+
* If the optional parameter "resolveSingleChildDescendants" is specified in options,
|
|
208
|
+
* the stat service is asked to automatically resolve child folders that only
|
|
209
|
+
* contain a single element.
|
|
210
|
+
*
|
|
211
|
+
* If the optional parameter "resolveMetadata" is specified in options,
|
|
212
|
+
* the stat will contain metadata information such as size, mtime and etag.
|
|
213
|
+
*/
|
|
214
|
+
resolve(resource: URI, options: IResolveMetadataFileOptions): Promise<IFileStatWithMetadata>;
|
|
215
|
+
resolve(resource: URI, options?: IResolveFileOptions): Promise<IFileStat>;
|
|
216
|
+
/**
|
|
217
|
+
* Same as `resolve()` but supports resolving multiple resources in parallel.
|
|
218
|
+
*
|
|
219
|
+
* If one of the resolve targets fails to resolve returns a fake `IFileStat` instead of
|
|
220
|
+
* making the whole call fail.
|
|
221
|
+
*/
|
|
222
|
+
resolveAll(toResolve: {
|
|
223
|
+
resource: URI;
|
|
224
|
+
options: IResolveMetadataFileOptions;
|
|
225
|
+
}[]): Promise<IFileStatResult[]>;
|
|
226
|
+
resolveAll(toResolve: {
|
|
227
|
+
resource: URI;
|
|
228
|
+
options?: IResolveFileOptions;
|
|
229
|
+
}[]): Promise<IFileStatResult[]>;
|
|
230
|
+
/**
|
|
231
|
+
* Same as `resolve()` but without resolving the children of a folder if the
|
|
232
|
+
* resource is pointing to a folder.
|
|
233
|
+
*/
|
|
234
|
+
stat(resource: URI): Promise<IFileStatWithPartialMetadata>;
|
|
235
|
+
/**
|
|
236
|
+
* Finds out if a file/folder identified by the resource exists.
|
|
237
|
+
*/
|
|
238
|
+
exists(resource: URI): Promise<boolean>;
|
|
239
|
+
/**
|
|
240
|
+
* Read the contents of the provided resource unbuffered.
|
|
241
|
+
*/
|
|
242
|
+
readFile(resource: URI, options?: IReadFileOptions, token?: CancellationToken): Promise<IFileContent>;
|
|
243
|
+
/**
|
|
244
|
+
* Read the contents of the provided resource buffered as stream.
|
|
245
|
+
*/
|
|
246
|
+
readFileStream(resource: URI, options?: IReadFileStreamOptions, token?: CancellationToken): Promise<IFileStreamContent>;
|
|
247
|
+
/**
|
|
248
|
+
* Updates the content replacing its previous value.
|
|
249
|
+
*
|
|
250
|
+
* Emits a `FileOperation.WRITE` file operation event when successful.
|
|
251
|
+
*/
|
|
252
|
+
writeFile(resource: URI, bufferOrReadableOrStream: VSBuffer | VSBufferReadable | VSBufferReadableStream, options?: IWriteFileOptions): Promise<IFileStatWithMetadata>;
|
|
253
|
+
/**
|
|
254
|
+
* Moves the file/folder to a new path identified by the resource.
|
|
255
|
+
*
|
|
256
|
+
* The optional parameter overwrite can be set to replace an existing file at the location.
|
|
257
|
+
*
|
|
258
|
+
* Emits a `FileOperation.MOVE` file operation event when successful.
|
|
259
|
+
*/
|
|
260
|
+
move(source: URI, target: URI, overwrite?: boolean): Promise<IFileStatWithMetadata>;
|
|
261
|
+
/**
|
|
262
|
+
* Find out if a move operation is possible given the arguments. No changes on disk will
|
|
263
|
+
* be performed. Returns an Error if the operation cannot be done.
|
|
264
|
+
*/
|
|
265
|
+
canMove(source: URI, target: URI, overwrite?: boolean): Promise<Error | true>;
|
|
266
|
+
/**
|
|
267
|
+
* Copies the file/folder to a path identified by the resource. A folder is copied
|
|
268
|
+
* recursively.
|
|
269
|
+
*
|
|
270
|
+
* Emits a `FileOperation.COPY` file operation event when successful.
|
|
271
|
+
*/
|
|
272
|
+
copy(source: URI, target: URI, overwrite?: boolean): Promise<IFileStatWithMetadata>;
|
|
273
|
+
/**
|
|
274
|
+
* Find out if a copy operation is possible given the arguments. No changes on disk will
|
|
275
|
+
* be performed. Returns an Error if the operation cannot be done.
|
|
276
|
+
*/
|
|
277
|
+
canCopy(source: URI, target: URI, overwrite?: boolean): Promise<Error | true>;
|
|
278
|
+
/**
|
|
279
|
+
* Clones a file to a path identified by the resource. Folders are not supported.
|
|
280
|
+
*
|
|
281
|
+
* If the target path exists, it will be overwritten.
|
|
282
|
+
*/
|
|
283
|
+
cloneFile(source: URI, target: URI): Promise<void>;
|
|
284
|
+
/**
|
|
285
|
+
* Creates a new file with the given path and optional contents. The returned promise
|
|
286
|
+
* will have the stat model object as a result.
|
|
287
|
+
*
|
|
288
|
+
* The optional parameter content can be used as value to fill into the new file.
|
|
289
|
+
*
|
|
290
|
+
* Emits a `FileOperation.CREATE` file operation event when successful.
|
|
291
|
+
*/
|
|
292
|
+
createFile(resource: URI, bufferOrReadableOrStream?: VSBuffer | VSBufferReadable | VSBufferReadableStream, options?: ICreateFileOptions): Promise<IFileStatWithMetadata>;
|
|
293
|
+
/**
|
|
294
|
+
* Find out if a file create operation is possible given the arguments. No changes on disk will
|
|
295
|
+
* be performed. Returns an Error if the operation cannot be done.
|
|
296
|
+
*/
|
|
297
|
+
canCreateFile(resource: URI, options?: ICreateFileOptions): Promise<Error | true>;
|
|
298
|
+
/**
|
|
299
|
+
* Creates a new folder with the given path. The returned promise
|
|
300
|
+
* will have the stat model object as a result.
|
|
301
|
+
*
|
|
302
|
+
* Emits a `FileOperation.CREATE` file operation event when successful.
|
|
303
|
+
*/
|
|
304
|
+
createFolder(resource: URI): Promise<IFileStatWithMetadata>;
|
|
305
|
+
/**
|
|
306
|
+
* Deletes the provided file. The optional useTrash parameter allows to
|
|
307
|
+
* move the file to trash. The optional recursive parameter allows to delete
|
|
308
|
+
* non-empty folders recursively.
|
|
309
|
+
*
|
|
310
|
+
* Emits a `FileOperation.DELETE` file operation event when successful.
|
|
311
|
+
*/
|
|
312
|
+
del(resource: URI, options?: Partial<IFileDeleteOptions>): Promise<void>;
|
|
313
|
+
/**
|
|
314
|
+
* Find out if a delete operation is possible given the arguments. No changes on disk will
|
|
315
|
+
* be performed. Returns an Error if the operation cannot be done.
|
|
316
|
+
*/
|
|
317
|
+
canDelete(resource: URI, options?: Partial<IFileDeleteOptions>): Promise<Error | true>;
|
|
318
|
+
/**
|
|
319
|
+
* An event that signals an error when watching for file changes.
|
|
320
|
+
*/
|
|
321
|
+
readonly onDidWatchError: Event<Error>;
|
|
322
|
+
/**
|
|
323
|
+
* Allows to start a watcher that reports file/folder change events on the provided resource.
|
|
324
|
+
*
|
|
325
|
+
* Note: recursive file watching is not supported from this method. Only events from files
|
|
326
|
+
* that are direct children of the provided resource will be reported.
|
|
327
|
+
*/
|
|
328
|
+
watch(resource: URI, options?: IWatchOptions): IDisposable;
|
|
329
|
+
/**
|
|
330
|
+
* Frees up any resources occupied by this service.
|
|
331
|
+
*/
|
|
332
|
+
dispose(): void;
|
|
333
|
+
}
|
|
334
|
+
interface IFileOverwriteOptions {
|
|
335
|
+
/**
|
|
336
|
+
* Set to `true` to overwrite a file if it exists. Will
|
|
337
|
+
* throw an error otherwise if the file does exist.
|
|
338
|
+
*/
|
|
339
|
+
readonly overwrite: boolean;
|
|
340
|
+
}
|
|
341
|
+
interface IFileUnlockOptions {
|
|
342
|
+
/**
|
|
343
|
+
* Set to `true` to try to remove any write locks the file might
|
|
344
|
+
* have. A file that is write locked will throw an error for any
|
|
345
|
+
* attempt to write to unless `unlock: true` is provided.
|
|
346
|
+
*/
|
|
347
|
+
readonly unlock: boolean;
|
|
348
|
+
}
|
|
349
|
+
interface IFileReadLimits {
|
|
350
|
+
/**
|
|
351
|
+
* If the file exceeds the given size, an error of kind
|
|
352
|
+
* `FILE_TOO_LARGE` will be thrown.
|
|
353
|
+
*/
|
|
354
|
+
size?: number;
|
|
355
|
+
}
|
|
356
|
+
interface IFileReadStreamOptions {
|
|
357
|
+
/**
|
|
358
|
+
* Is an integer specifying where to begin reading from in the file. If position is undefined,
|
|
359
|
+
* data will be read from the current file position.
|
|
360
|
+
*/
|
|
361
|
+
readonly position?: number;
|
|
362
|
+
/**
|
|
363
|
+
* Is an integer specifying how many bytes to read from the file. By default, all bytes
|
|
364
|
+
* will be read.
|
|
365
|
+
*/
|
|
366
|
+
readonly length?: number;
|
|
367
|
+
/**
|
|
368
|
+
* If provided, the size of the file will be checked against the limits
|
|
369
|
+
* and an error will be thrown if any limit is exceeded.
|
|
370
|
+
*/
|
|
371
|
+
readonly limits?: IFileReadLimits;
|
|
372
|
+
}
|
|
373
|
+
interface IFileWriteOptions extends IFileOverwriteOptions, IFileUnlockOptions {
|
|
374
|
+
/**
|
|
375
|
+
* Set to `true` to create a file when it does not exist. Will
|
|
376
|
+
* throw an error otherwise if the file does not exist.
|
|
377
|
+
*/
|
|
378
|
+
readonly create: boolean;
|
|
379
|
+
}
|
|
380
|
+
type IFileOpenOptions = IFileOpenForReadOptions | IFileOpenForWriteOptions;
|
|
381
|
+
interface IFileOpenForReadOptions {
|
|
382
|
+
/**
|
|
383
|
+
* A hint that the file should be opened for reading only.
|
|
384
|
+
*/
|
|
385
|
+
readonly create: false;
|
|
386
|
+
}
|
|
387
|
+
interface IFileOpenForWriteOptions extends IFileUnlockOptions {
|
|
388
|
+
/**
|
|
389
|
+
* A hint that the file should be opened for reading and writing.
|
|
390
|
+
*/
|
|
391
|
+
readonly create: true;
|
|
392
|
+
}
|
|
393
|
+
interface IFileDeleteOptions {
|
|
394
|
+
/**
|
|
395
|
+
* Set to `true` to recursively delete any children of the file. This
|
|
396
|
+
* only applies to folders and can lead to an error unless provided
|
|
397
|
+
* if the folder is not empty.
|
|
398
|
+
*/
|
|
399
|
+
readonly recursive: boolean;
|
|
400
|
+
/**
|
|
401
|
+
* Set to `true` to attempt to move the file to trash
|
|
402
|
+
* instead of deleting it permanently from disk. This
|
|
403
|
+
* option maybe not be supported on all providers.
|
|
404
|
+
*/
|
|
405
|
+
readonly useTrash: boolean;
|
|
406
|
+
}
|
|
407
|
+
declare enum FileType {
|
|
408
|
+
/**
|
|
409
|
+
* File is unknown (neither file, directory nor symbolic link).
|
|
410
|
+
*/
|
|
411
|
+
Unknown = 0,
|
|
412
|
+
/**
|
|
413
|
+
* File is a normal file.
|
|
414
|
+
*/
|
|
415
|
+
File = 1,
|
|
416
|
+
/**
|
|
417
|
+
* File is a directory.
|
|
418
|
+
*/
|
|
419
|
+
Directory = 2,
|
|
420
|
+
/**
|
|
421
|
+
* File is a symbolic link.
|
|
422
|
+
*
|
|
423
|
+
* Note: even when the file is a symbolic link, you can test for
|
|
424
|
+
* `FileType.File` and `FileType.Directory` to know the type of
|
|
425
|
+
* the target the link points to.
|
|
426
|
+
*/
|
|
427
|
+
SymbolicLink = 64
|
|
428
|
+
}
|
|
429
|
+
declare enum FilePermission {
|
|
430
|
+
/**
|
|
431
|
+
* File is readonly.
|
|
432
|
+
*/
|
|
433
|
+
Readonly = 1
|
|
434
|
+
}
|
|
435
|
+
interface IStat {
|
|
436
|
+
/**
|
|
437
|
+
* The file type.
|
|
438
|
+
*/
|
|
439
|
+
readonly type: FileType;
|
|
440
|
+
/**
|
|
441
|
+
* The last modification date represented as millis from unix epoch.
|
|
442
|
+
*/
|
|
443
|
+
readonly mtime: number;
|
|
444
|
+
/**
|
|
445
|
+
* The creation date represented as millis from unix epoch.
|
|
446
|
+
*/
|
|
447
|
+
readonly ctime: number;
|
|
448
|
+
/**
|
|
449
|
+
* The size of the file in bytes.
|
|
450
|
+
*/
|
|
451
|
+
readonly size: number;
|
|
452
|
+
/**
|
|
453
|
+
* The file permissions.
|
|
454
|
+
*/
|
|
455
|
+
readonly permissions?: FilePermission;
|
|
456
|
+
}
|
|
457
|
+
interface IWatchOptions {
|
|
458
|
+
/**
|
|
459
|
+
* Set to `true` to watch for changes recursively in a folder
|
|
460
|
+
* and all of its children.
|
|
461
|
+
*/
|
|
462
|
+
readonly recursive: boolean;
|
|
463
|
+
/**
|
|
464
|
+
* A set of glob patterns or paths to exclude from watching.
|
|
465
|
+
* Paths can be relative or absolute and when relative are
|
|
466
|
+
* resolved against the watched folder. Glob patterns are
|
|
467
|
+
* always matched relative to the watched folder.
|
|
468
|
+
*/
|
|
469
|
+
excludes: string[];
|
|
470
|
+
/**
|
|
471
|
+
* An optional set of glob patterns or paths to include for
|
|
472
|
+
* watching. If not provided, all paths are considered for
|
|
473
|
+
* events.
|
|
474
|
+
* Paths can be relative or absolute and when relative are
|
|
475
|
+
* resolved against the watched folder. Glob patterns are
|
|
476
|
+
* always matched relative to the watched folder.
|
|
477
|
+
*/
|
|
478
|
+
includes?: Array<string | IRelativePattern>;
|
|
479
|
+
}
|
|
480
|
+
declare const enum FileSystemProviderCapabilities {
|
|
481
|
+
/**
|
|
482
|
+
* No capabilities.
|
|
483
|
+
*/
|
|
484
|
+
None = 0,
|
|
485
|
+
/**
|
|
486
|
+
* Provider supports unbuffered read/write.
|
|
487
|
+
*/
|
|
488
|
+
FileReadWrite = 2,
|
|
489
|
+
/**
|
|
490
|
+
* Provider supports open/read/write/close low level file operations.
|
|
491
|
+
*/
|
|
492
|
+
FileOpenReadWriteClose = 4,
|
|
493
|
+
/**
|
|
494
|
+
* Provider supports stream based reading.
|
|
495
|
+
*/
|
|
496
|
+
FileReadStream = 16,
|
|
497
|
+
/**
|
|
498
|
+
* Provider supports copy operation.
|
|
499
|
+
*/
|
|
500
|
+
FileFolderCopy = 8,
|
|
501
|
+
/**
|
|
502
|
+
* Provider is path case sensitive.
|
|
503
|
+
*/
|
|
504
|
+
PathCaseSensitive = 1024,
|
|
505
|
+
/**
|
|
506
|
+
* All files of the provider are readonly.
|
|
507
|
+
*/
|
|
508
|
+
Readonly = 2048,
|
|
509
|
+
/**
|
|
510
|
+
* Provider supports to delete via trash.
|
|
511
|
+
*/
|
|
512
|
+
Trash = 4096,
|
|
513
|
+
/**
|
|
514
|
+
* Provider support to unlock files for writing.
|
|
515
|
+
*/
|
|
516
|
+
FileWriteUnlock = 8192,
|
|
517
|
+
/**
|
|
518
|
+
* Provider support to read files atomically. This implies the
|
|
519
|
+
* provider provides the `FileReadWrite` capability too.
|
|
520
|
+
*/
|
|
521
|
+
FileAtomicRead = 16384,
|
|
522
|
+
/**
|
|
523
|
+
* Provider support to clone files atomically.
|
|
524
|
+
*/
|
|
525
|
+
FileClone = 32768
|
|
526
|
+
}
|
|
527
|
+
interface IFileSystemProvider {
|
|
528
|
+
readonly capabilities: FileSystemProviderCapabilities;
|
|
529
|
+
readonly onDidChangeCapabilities: Event<void>;
|
|
530
|
+
readonly onDidChangeFile: Event<readonly IFileChange[]>;
|
|
531
|
+
readonly onDidWatchError?: Event<string>;
|
|
532
|
+
watch(resource: URI, opts: IWatchOptions): IDisposable;
|
|
533
|
+
stat(resource: URI): Promise<IStat>;
|
|
534
|
+
mkdir(resource: URI): Promise<void>;
|
|
535
|
+
readdir(resource: URI): Promise<[string, FileType][]>;
|
|
536
|
+
delete(resource: URI, opts: IFileDeleteOptions): Promise<void>;
|
|
537
|
+
rename(from: URI, to: URI, opts: IFileOverwriteOptions): Promise<void>;
|
|
538
|
+
copy?(from: URI, to: URI, opts: IFileOverwriteOptions): Promise<void>;
|
|
539
|
+
readFile?(resource: URI): Promise<Uint8Array>;
|
|
540
|
+
writeFile?(resource: URI, content: Uint8Array, opts: IFileWriteOptions): Promise<void>;
|
|
541
|
+
readFileStream?(resource: URI, opts: IFileReadStreamOptions, token: CancellationToken): ReadableStreamEvents<Uint8Array>;
|
|
542
|
+
open?(resource: URI, opts: IFileOpenOptions): Promise<number>;
|
|
543
|
+
close?(fd: number): Promise<void>;
|
|
544
|
+
read?(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number>;
|
|
545
|
+
write?(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number>;
|
|
546
|
+
cloneFile?(from: URI, to: URI): Promise<void>;
|
|
547
|
+
}
|
|
548
|
+
interface IFileSystemProviderWithFileReadWriteCapability extends IFileSystemProvider {
|
|
549
|
+
readFile(resource: URI): Promise<Uint8Array>;
|
|
550
|
+
writeFile(resource: URI, content: Uint8Array, opts: IFileWriteOptions): Promise<void>;
|
|
551
|
+
}
|
|
552
|
+
interface IFileSystemProviderWithFileReadStreamCapability extends IFileSystemProvider {
|
|
553
|
+
readFileStream(resource: URI, opts: IFileReadStreamOptions, token: CancellationToken): ReadableStreamEvents<Uint8Array>;
|
|
554
|
+
}
|
|
555
|
+
declare enum FileSystemProviderErrorCode {
|
|
556
|
+
FileExists = "EntryExists",
|
|
557
|
+
FileNotFound = "EntryNotFound",
|
|
558
|
+
FileNotADirectory = "EntryNotADirectory",
|
|
559
|
+
FileIsADirectory = "EntryIsADirectory",
|
|
560
|
+
FileExceedsStorageQuota = "EntryExceedsStorageQuota",
|
|
561
|
+
FileTooLarge = "EntryTooLarge",
|
|
562
|
+
FileWriteLocked = "EntryWriteLocked",
|
|
563
|
+
NoPermissions = "NoPermissions",
|
|
564
|
+
Unavailable = "Unavailable",
|
|
565
|
+
Unknown = "Unknown"
|
|
566
|
+
}
|
|
567
|
+
interface IFileSystemProviderError extends Error {
|
|
568
|
+
readonly name: string;
|
|
569
|
+
readonly code: FileSystemProviderErrorCode;
|
|
570
|
+
}
|
|
571
|
+
declare class FileSystemProviderError extends Error implements IFileSystemProviderError {
|
|
572
|
+
readonly code: FileSystemProviderErrorCode;
|
|
573
|
+
static create(error: Error | string, code: FileSystemProviderErrorCode): FileSystemProviderError;
|
|
574
|
+
private constructor();
|
|
575
|
+
}
|
|
576
|
+
interface IFileSystemProviderRegistrationEvent {
|
|
577
|
+
readonly added: boolean;
|
|
578
|
+
readonly scheme: string;
|
|
579
|
+
readonly provider?: IFileSystemProvider;
|
|
580
|
+
}
|
|
581
|
+
interface IFileSystemProviderCapabilitiesChangeEvent {
|
|
582
|
+
readonly provider: IFileSystemProvider;
|
|
583
|
+
readonly scheme: string;
|
|
584
|
+
}
|
|
585
|
+
interface IFileSystemProviderActivationEvent {
|
|
586
|
+
readonly scheme: string;
|
|
587
|
+
join(promise: Promise<void>): void;
|
|
588
|
+
}
|
|
589
|
+
declare const enum FileOperation {
|
|
590
|
+
CREATE = 0,
|
|
591
|
+
DELETE = 1,
|
|
592
|
+
MOVE = 2,
|
|
593
|
+
COPY = 3,
|
|
594
|
+
WRITE = 4
|
|
595
|
+
}
|
|
596
|
+
interface IFileOperationEvent {
|
|
597
|
+
readonly resource: URI;
|
|
598
|
+
readonly operation: FileOperation;
|
|
599
|
+
isOperation(operation: FileOperation.DELETE | FileOperation.WRITE): boolean;
|
|
600
|
+
isOperation(operation: FileOperation.CREATE | FileOperation.MOVE | FileOperation.COPY): this is IFileOperationEventWithMetadata;
|
|
601
|
+
}
|
|
602
|
+
interface IFileOperationEventWithMetadata extends IFileOperationEvent {
|
|
603
|
+
readonly target: IFileStatWithMetadata;
|
|
604
|
+
}
|
|
605
|
+
declare class FileOperationEvent implements IFileOperationEvent {
|
|
606
|
+
readonly resource: URI;
|
|
607
|
+
readonly operation: FileOperation;
|
|
608
|
+
readonly target?: IFileStatWithMetadata | undefined;
|
|
609
|
+
constructor(resource: URI, operation: FileOperation.DELETE | FileOperation.WRITE);
|
|
610
|
+
constructor(resource: URI, operation: FileOperation.CREATE | FileOperation.MOVE | FileOperation.COPY, target: IFileStatWithMetadata);
|
|
611
|
+
isOperation(operation: FileOperation.DELETE | FileOperation.WRITE): boolean;
|
|
612
|
+
isOperation(operation: FileOperation.CREATE | FileOperation.MOVE | FileOperation.COPY): this is IFileOperationEventWithMetadata;
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* Possible changes that can occur to a file.
|
|
616
|
+
*/
|
|
617
|
+
declare const enum FileChangeType {
|
|
618
|
+
UPDATED = 0,
|
|
619
|
+
ADDED = 1,
|
|
620
|
+
DELETED = 2
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* Identifies a single change in a file.
|
|
624
|
+
*/
|
|
625
|
+
interface IFileChange {
|
|
626
|
+
/**
|
|
627
|
+
* The type of change that occurred to the file.
|
|
628
|
+
*/
|
|
629
|
+
readonly type: FileChangeType;
|
|
630
|
+
/**
|
|
631
|
+
* The unified resource identifier of the file that changed.
|
|
632
|
+
*/
|
|
633
|
+
readonly resource: URI;
|
|
634
|
+
}
|
|
635
|
+
declare class FileChangesEvent {
|
|
636
|
+
private readonly added;
|
|
637
|
+
private readonly updated;
|
|
638
|
+
private readonly deleted;
|
|
639
|
+
constructor(changes: readonly IFileChange[], ignorePathCasing: boolean);
|
|
640
|
+
/**
|
|
641
|
+
* Find out if the file change events match the provided resource.
|
|
642
|
+
*
|
|
643
|
+
* Note: when passing `FileChangeType.DELETED`, we consider a match
|
|
644
|
+
* also when the parent of the resource got deleted.
|
|
645
|
+
*/
|
|
646
|
+
contains(resource: URI, ...types: FileChangeType[]): boolean;
|
|
647
|
+
/**
|
|
648
|
+
* Find out if the file change events either match the provided
|
|
649
|
+
* resource, or contain a child of this resource.
|
|
650
|
+
*/
|
|
651
|
+
affects(resource: URI, ...types: FileChangeType[]): boolean;
|
|
652
|
+
private doContains;
|
|
653
|
+
/**
|
|
654
|
+
* Returns if this event contains added files.
|
|
655
|
+
*/
|
|
656
|
+
gotAdded(): boolean;
|
|
657
|
+
/**
|
|
658
|
+
* Returns if this event contains deleted files.
|
|
659
|
+
*/
|
|
660
|
+
gotDeleted(): boolean;
|
|
661
|
+
/**
|
|
662
|
+
* Returns if this event contains updated files.
|
|
663
|
+
*/
|
|
664
|
+
gotUpdated(): boolean;
|
|
665
|
+
/**
|
|
666
|
+
* @deprecated use the `contains` or `affects` method to efficiently find
|
|
667
|
+
* out if the event relates to a given resource. these methods ensure:
|
|
668
|
+
* - that there is no expensive lookup needed (by using a `TernarySearchTree`)
|
|
669
|
+
* - correctly handles `FileChangeType.DELETED` events
|
|
670
|
+
*/
|
|
671
|
+
readonly rawAdded: URI[];
|
|
672
|
+
/**
|
|
673
|
+
* @deprecated use the `contains` or `affects` method to efficiently find
|
|
674
|
+
* out if the event relates to a given resource. these methods ensure:
|
|
675
|
+
* - that there is no expensive lookup needed (by using a `TernarySearchTree`)
|
|
676
|
+
* - correctly handles `FileChangeType.DELETED` events
|
|
677
|
+
*/
|
|
678
|
+
readonly rawUpdated: URI[];
|
|
679
|
+
/**
|
|
680
|
+
* @deprecated use the `contains` or `affects` method to efficiently find
|
|
681
|
+
* out if the event relates to a given resource. these methods ensure:
|
|
682
|
+
* - that there is no expensive lookup needed (by using a `TernarySearchTree`)
|
|
683
|
+
* - correctly handles `FileChangeType.DELETED` events
|
|
684
|
+
*/
|
|
685
|
+
readonly rawDeleted: URI[];
|
|
686
|
+
}
|
|
687
|
+
interface IBaseFileStat {
|
|
688
|
+
/**
|
|
689
|
+
* The unified resource identifier of this file or folder.
|
|
690
|
+
*/
|
|
691
|
+
readonly resource: URI;
|
|
692
|
+
/**
|
|
693
|
+
* The name which is the last segment
|
|
694
|
+
* of the {{path}}.
|
|
695
|
+
*/
|
|
696
|
+
readonly name: string;
|
|
697
|
+
/**
|
|
698
|
+
* The size of the file.
|
|
699
|
+
*
|
|
700
|
+
* The value may or may not be resolved as
|
|
701
|
+
* it is optional.
|
|
702
|
+
*/
|
|
703
|
+
readonly size?: number;
|
|
704
|
+
/**
|
|
705
|
+
* The last modification date represented as millis from unix epoch.
|
|
706
|
+
*
|
|
707
|
+
* The value may or may not be resolved as
|
|
708
|
+
* it is optional.
|
|
709
|
+
*/
|
|
710
|
+
readonly mtime?: number;
|
|
711
|
+
/**
|
|
712
|
+
* The creation date represented as millis from unix epoch.
|
|
713
|
+
*
|
|
714
|
+
* The value may or may not be resolved as
|
|
715
|
+
* it is optional.
|
|
716
|
+
*/
|
|
717
|
+
readonly ctime?: number;
|
|
718
|
+
/**
|
|
719
|
+
* A unique identifier that represents the
|
|
720
|
+
* current state of the file or directory.
|
|
721
|
+
*
|
|
722
|
+
* The value may or may not be resolved as
|
|
723
|
+
* it is optional.
|
|
724
|
+
*/
|
|
725
|
+
readonly etag?: string;
|
|
726
|
+
/**
|
|
727
|
+
* The file is read-only.
|
|
728
|
+
*/
|
|
729
|
+
readonly readonly?: boolean;
|
|
730
|
+
}
|
|
731
|
+
interface IBaseFileStatWithMetadata extends Required<IBaseFileStat> {
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* A file resource with meta information and resolved children if any.
|
|
735
|
+
*/
|
|
736
|
+
interface IFileStat extends IBaseFileStat {
|
|
737
|
+
/**
|
|
738
|
+
* The resource is a file.
|
|
739
|
+
*/
|
|
740
|
+
readonly isFile: boolean;
|
|
741
|
+
/**
|
|
742
|
+
* The resource is a directory.
|
|
743
|
+
*/
|
|
744
|
+
readonly isDirectory: boolean;
|
|
745
|
+
/**
|
|
746
|
+
* The resource is a symbolic link. Note: even when the
|
|
747
|
+
* file is a symbolic link, you can test for `FileType.File`
|
|
748
|
+
* and `FileType.Directory` to know the type of the target
|
|
749
|
+
* the link points to.
|
|
750
|
+
*/
|
|
751
|
+
readonly isSymbolicLink: boolean;
|
|
752
|
+
/**
|
|
753
|
+
* The children of the file stat or undefined if none.
|
|
754
|
+
*/
|
|
755
|
+
children: IFileStat[] | undefined;
|
|
756
|
+
}
|
|
757
|
+
interface IFileStatWithMetadata extends IFileStat, IBaseFileStatWithMetadata {
|
|
758
|
+
readonly mtime: number;
|
|
759
|
+
readonly ctime: number;
|
|
760
|
+
readonly etag: string;
|
|
761
|
+
readonly size: number;
|
|
762
|
+
readonly readonly: boolean;
|
|
763
|
+
readonly children: IFileStatWithMetadata[] | undefined;
|
|
764
|
+
}
|
|
765
|
+
interface IFileStatResult {
|
|
766
|
+
readonly stat?: IFileStat;
|
|
767
|
+
readonly success: boolean;
|
|
768
|
+
}
|
|
769
|
+
interface IFileStatWithPartialMetadata extends Omit<IFileStatWithMetadata, 'children'> {
|
|
770
|
+
}
|
|
771
|
+
interface IFileContent extends IBaseFileStatWithMetadata {
|
|
772
|
+
/**
|
|
773
|
+
* The content of a file as buffer.
|
|
774
|
+
*/
|
|
775
|
+
readonly value: VSBuffer;
|
|
776
|
+
}
|
|
777
|
+
interface IFileStreamContent extends IBaseFileStatWithMetadata {
|
|
778
|
+
/**
|
|
779
|
+
* The content of a file as stream.
|
|
780
|
+
*/
|
|
781
|
+
readonly value: VSBufferReadableStream;
|
|
782
|
+
}
|
|
783
|
+
interface IBaseReadFileOptions extends IFileReadStreamOptions {
|
|
784
|
+
/**
|
|
785
|
+
* The optional etag parameter allows to return early from resolving the resource if
|
|
786
|
+
* the contents on disk match the etag. This prevents accumulated reading of resources
|
|
787
|
+
* that have been read already with the same etag.
|
|
788
|
+
* It is the task of the caller to makes sure to handle this error case from the promise.
|
|
789
|
+
*/
|
|
790
|
+
readonly etag?: string;
|
|
791
|
+
}
|
|
792
|
+
interface IReadFileStreamOptions extends IBaseReadFileOptions {
|
|
793
|
+
}
|
|
794
|
+
interface IReadFileOptions extends IBaseReadFileOptions {
|
|
795
|
+
/**
|
|
796
|
+
* The optional `atomic` flag can be used to make sure
|
|
797
|
+
* the `readFile` method is not running in parallel with
|
|
798
|
+
* any `write` operations in the same process.
|
|
799
|
+
*
|
|
800
|
+
* Typically you should not need to use this flag but if
|
|
801
|
+
* for example you are quickly reading a file right after
|
|
802
|
+
* a file event occurred and the file changes a lot, there
|
|
803
|
+
* is a chance that a read returns an empty or partial file
|
|
804
|
+
* because a pending write has not finished yet.
|
|
805
|
+
*
|
|
806
|
+
* Note: this does not prevent the file from being written
|
|
807
|
+
* to from a different process. If you need such atomic
|
|
808
|
+
* operations, you better use a real database as storage.
|
|
809
|
+
*/
|
|
810
|
+
readonly atomic?: boolean;
|
|
811
|
+
}
|
|
812
|
+
interface IWriteFileOptions {
|
|
813
|
+
/**
|
|
814
|
+
* The last known modification time of the file. This can be used to prevent dirty writes.
|
|
815
|
+
*/
|
|
816
|
+
readonly mtime?: number;
|
|
817
|
+
/**
|
|
818
|
+
* The etag of the file. This can be used to prevent dirty writes.
|
|
819
|
+
*/
|
|
820
|
+
readonly etag?: string;
|
|
821
|
+
/**
|
|
822
|
+
* Whether to attempt to unlock a file before writing.
|
|
823
|
+
*/
|
|
824
|
+
readonly unlock?: boolean;
|
|
825
|
+
}
|
|
826
|
+
interface IResolveFileOptions {
|
|
827
|
+
/**
|
|
828
|
+
* Automatically continue resolving children of a directory until the provided resources
|
|
829
|
+
* are found.
|
|
830
|
+
*/
|
|
831
|
+
readonly resolveTo?: readonly URI[];
|
|
832
|
+
/**
|
|
833
|
+
* Automatically continue resolving children of a directory if the number of children is 1.
|
|
834
|
+
*/
|
|
835
|
+
readonly resolveSingleChildDescendants?: boolean;
|
|
836
|
+
/**
|
|
837
|
+
* Will resolve mtime, ctime, size and etag of files if enabled. This can have a negative impact
|
|
838
|
+
* on performance and thus should only be used when these values are required.
|
|
839
|
+
*/
|
|
840
|
+
readonly resolveMetadata?: boolean;
|
|
841
|
+
}
|
|
842
|
+
interface IResolveMetadataFileOptions extends IResolveFileOptions {
|
|
843
|
+
readonly resolveMetadata: true;
|
|
844
|
+
}
|
|
845
|
+
interface ICreateFileOptions {
|
|
846
|
+
/**
|
|
847
|
+
* Overwrite the file to create if it already exists on disk. Otherwise
|
|
848
|
+
* an error will be thrown (FILE_MODIFIED_SINCE).
|
|
849
|
+
*/
|
|
850
|
+
readonly overwrite?: boolean;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
export { FileSystemProviderCapabilities as F, IFileService as I, ReadableStreamEvents as R, VSBuffer as V, IFileSystemProviderWithFileReadWriteCapability as a, IFileSystemProviderWithFileReadStreamCapability as b, IStat as c, FileType as d, IFileReadStreamOptions as e, IFileWriteOptions as f, IFileDeleteOptions as g, IFileOverwriteOptions as h, IWatchOptions as i, IFileChange as j, FileSystemProviderError as k, FileSystemProviderErrorCode as l, FileChangeType as m, VSBufferReadable as n, VSBufferReadableStream as o, IFileStatWithMetadata as p, FileOperation as q, ReadableStream as r, IReadFileStreamOptions as s, IWriteFileOptions as t, IBaseFileStatWithMetadata as u, IFileReadLimits as v, IRelativePattern as w };
|