@codingame/monaco-vscode-api 4.0.0 → 4.1.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 -0
- package/l10n.d.ts +5 -2
- package/l10n.js +14 -2
- package/missing-services.js +6 -7
- package/override/vs/platform/userDataSync/common/extensionsSync.js +4 -0
- package/override/vs/platform/userDataSync/common/globalStateSync.js +5 -0
- package/package.json +8 -8
- package/services.d.ts +2 -0
- package/services.js +2 -0
- package/vscode/src/vs/base/browser/hash.js +15 -0
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.css.js +4 -0
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +246 -0
- package/vscode/src/vs/base/common/amd.js +101 -0
- package/vscode/src/vs/base/common/console.js +60 -0
- package/vscode/src/vs/base/common/objects.js +1 -1
- package/vscode/src/vs/base/common/paging.js +116 -0
- package/vscode/src/vs/base/common/parsers.js +43 -0
- package/vscode/src/vs/base/common/processes.js +25 -0
- package/vscode/src/vs/base/parts/request/browser/request.js +60 -0
- package/vscode/src/vs/editor/browser/coreCommands.js +1 -1
- package/vscode/src/vs/editor/common/services/modelUndoRedoParticipant.js +56 -0
- package/vscode/src/vs/editor/common/services/textResourceConfigurationService.js +116 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/commandsQuickAccess.js +23 -0
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +71 -0
- package/vscode/src/vs/platform/download/common/downloadIpc.js +16 -0
- package/vscode/src/vs/platform/download/common/downloadService.js +31 -0
- package/vscode/src/vs/platform/extensionManagement/common/abstractExtensionManagementService.js +748 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryService.js +852 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +495 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementIpc.js +120 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionTipsService.js +65 -0
- package/vscode/src/vs/platform/extensionManagement/common/unsupportedExtensionsMigration.js +56 -0
- package/vscode/src/vs/platform/extensionResourceLoader/browser/extensionResourceLoaderService.js +42 -0
- package/vscode/src/vs/platform/externalServices/common/marketplace.js +15 -0
- package/vscode/src/vs/platform/externalTerminal/common/externalTerminal.js +3 -0
- package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js +404 -0
- package/vscode/src/vs/platform/files/common/fileService.js +986 -0
- package/vscode/src/vs/platform/files/common/io.js +75 -0
- package/vscode/src/vs/platform/issue/common/issueReporterUtil.js +15 -0
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +48 -0
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardMapper.js +23 -0
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.d.ts +18 -0
- package/vscode/src/vs/platform/lifecycle/common/lifecycle.js +25 -0
- package/vscode/src/vs/platform/log/common/fileLog.js +105 -0
- package/vscode/src/vs/platform/log/common/logIpc.js +26 -0
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +355 -0
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +65 -0
- package/vscode/src/vs/platform/remote/browser/remoteAuthorityResolverService.js +108 -0
- package/vscode/src/vs/platform/remote/common/managedSocket.js +96 -0
- package/vscode/src/vs/platform/request/browser/requestService.js +28 -0
- package/vscode/src/vs/platform/request/common/requestIpc.js +18 -0
- package/vscode/src/vs/platform/telemetry/common/commonProperties.js +11 -0
- package/vscode/src/vs/platform/telemetry/common/telemetry.js +2 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +7 -3
- package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +22 -0
- package/vscode/src/vs/platform/terminal/common/environmentVariable.js +7 -0
- package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +196 -0
- package/vscode/src/vs/platform/terminal/common/terminalLogService.js +49 -0
- package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +518 -0
- package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +111 -0
- package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +66 -0
- package/vscode/src/vs/platform/update/common/update.config.contribution.js +98 -0
- package/vscode/src/vs/platform/url/common/urlService.js +20 -0
- package/vscode/src/vs/platform/userDataProfile/browser/userDataProfile.js +93 -0
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfileStorageService.js +8 -0
- package/vscode/src/vs/platform/userDataSync/common/extensionsSync.js +256 -0
- package/vscode/src/vs/platform/userDataSync/common/globalStateSync.js +120 -0
- package/vscode/src/vs/platform/userDataSync/common/keybindingsMerge.js +275 -0
- package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +316 -0
- package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +314 -0
- package/vscode/src/vs/platform/userDataSync/common/snippetsMerge.js +125 -0
- package/vscode/src/vs/platform/userDataSync/common/snippetsSync.js +474 -0
- package/vscode/src/vs/platform/userDataSync/common/tasksSync.js +242 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataAutoSyncService.js +464 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataProfilesManifestMerge.js +90 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataProfilesManifestSync.js +257 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncEnablementService.js +75 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncLocalStoreService.js +148 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncLog.js +39 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncResourceProvider.js +447 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncService.js +781 -0
- package/vscode/src/vs/workbench/api/browser/extensionHost.contribution.js +103 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadAiEmbeddingVector.js +29 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.js +33 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +252 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.js +66 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +102 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChat.js +68 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +205 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatVariables.js +39 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadClipboard.js +22 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadCodeInsets.js +106 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadCommands.js +96 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +558 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadConfiguration.js +78 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadConsole.js +33 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +577 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.js +433 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDecorations.js +100 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.js +67 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDialogs.js +66 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentContentProviders.js +77 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +251 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +368 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDownloadService.js +20 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +39 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadEditor.js +412 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +499 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +225 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadErrors.js +22 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +315 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.js +206 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +367 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadInlineChat.js +70 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadInteractive.js +26 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadIssueReporter.js +48 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLabelService.js +25 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +1014 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +183 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguages.js +76 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLocalization.js +33 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLogService.js +76 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadManagedSockets.js +91 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +135 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +192 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.js +121 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +186 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDto.js +127 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +129 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +372 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.js +23 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +46 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.js +74 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadProfileContentHandlers.js +36 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +66 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickDiff.js +40 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickOpen.js +183 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadRemoteConnectionData.js +28 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +491 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +47 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadSearch.js +166 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.js +68 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadShare.js +48 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadSpeech.js +97 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadStatusBar.js +51 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadStorage.js +70 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +729 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTelemetry.js +51 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +407 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.js +49 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTesting.js +217 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTheming.js +22 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTimeline.js +53 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTreeViews.js +310 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +221 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +108 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadUrls.js +59 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewManager.js +27 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.js +281 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewViews.js +98 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +133 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadWindow.js +55 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +266 -0
- package/vscode/src/vs/workbench/api/common/configurationExtensionPoint.js +594 -0
- package/vscode/src/vs/workbench/api/common/shared/dataTransferCache.js +33 -0
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +227 -0
- package/vscode/src/vs/workbench/browser/layout.js +2059 -0
- package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.js +233 -0
- package/vscode/src/vs/workbench/browser/parts/banner/media/bannerpart.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.web.contribution.js +74 -0
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialogHandler.js +132 -0
- package/vscode/src/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarActions.js +119 -0
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarItem.js +250 -0
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarModel.js +249 -0
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.js +610 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/commandCenterControl.js +220 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +259 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.js +582 -0
- package/vscode/src/vs/workbench/common/dialogs.js +36 -0
- package/vscode/src/vs/workbench/common/editor.js +5 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibility.contribution.js +23 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityStatus.js +112 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/openDiffEditorAnnouncement.js +50 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/saveAccessibilitySignal.js +18 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/unfocusedViewDimmingContribution.js +66 -0
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +358 -0
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.js +362 -0
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.js +265 -0
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/conflicts.js +78 -0
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEdit.contribution.js +364 -0
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEdit.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPane.js +340 -0
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPreview.js +361 -0
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditTree.js +655 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +113 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +501 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +80 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +75 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +108 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +169 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +269 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +316 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContributionServiceImpl.js +421 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +96 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +283 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +88 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +183 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatHistoryVariables.js +25 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +617 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +598 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChat.js +139 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.js +39 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +389 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +370 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +290 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +86 -0
- package/vscode/src/vs/workbench/contrib/commands/common/commands.contribution.js +145 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +231 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsEditorContribution.js +282 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +74 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +1024 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +1003 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +345 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +335 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +430 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +1037 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +647 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +62 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +634 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +738 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +406 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +204 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +78 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +167 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +1269 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +1328 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +113 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +75 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +305 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +29 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +385 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +265 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +815 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +129 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +140 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +260 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +667 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +707 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +1000 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +46 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +350 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +127 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +732 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +499 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +160 -0
- package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +19 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +15 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +108 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +60 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +458 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +164 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +34 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +148 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +287 -0
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +85 -0
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.js +1197 -0
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsFileSystemProvider.js +55 -0
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsStorageService.js +455 -0
- package/vscode/src/vs/workbench/contrib/editSessions/browser/editSessionsViews.js +337 -0
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessionsLogService.js +39 -0
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessionsStorageClient.js +4 -0
- package/vscode/src/vs/workbench/contrib/editSessions/common/workspaceStateSync.js +140 -0
- package/vscode/src/vs/workbench/contrib/emmet/browser/actions/expandAbbreviation.js +41 -0
- package/vscode/src/vs/workbench/contrib/emmet/browser/emmetActions.js +88 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js +539 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/browserRuntimeExtensionsEditor.js +26 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +76 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/deprecatedExtensionsChecker.js +88 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +58 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +1171 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +50 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +543 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +464 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendations.js +15 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationsService.js +233 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +2182 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.web.contribution.js +12 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +44 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +63 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +96 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsList.js +219 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +119 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +293 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +934 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +1349 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +858 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +2349 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +328 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/keymapRecommendations.js +26 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/languageRecommendations.js +26 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extension.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionEditor.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionsViewlet.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionsWidgets.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/runtimeExtensionsEditor.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/remoteRecommendations.js +27 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/unsupportedExtensionsMigrationContribution.js +24 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +36 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +160 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionQuery.js +56 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/reportExtensionIssueAction.js +29 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.js +49 -0
- package/vscode/src/vs/workbench/contrib/externalTerminal/browser/externalTerminal.contribution.js +152 -0
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/contributedOpeners.js +81 -0
- package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +430 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +786 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +510 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.explorer.contribution.js +460 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +39 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +39 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +70 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.js +234 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChatServiceImpl.js +31 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactive.contribution.js +737 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.js +6 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditor.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditor.js +600 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/media/interactive.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/issue/browser/issue.contribution.js +27 -0
- package/vscode/src/vs/workbench/contrib/issue/common/issue.contribution.js +102 -0
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +28 -0
- package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +156 -0
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistory.contribution.js +4 -0
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistory.js +35 -0
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryCommands.js +635 -0
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryFileSystemProvider.js +87 -0
- package/vscode/src/vs/workbench/contrib/localHistory/browser/localHistoryTimeline.js +136 -0
- package/vscode/src/vs/workbench/contrib/logs/common/logs.contribution.js +225 -0
- package/vscode/src/vs/workbench/contrib/logs/common/logsActions.js +12 -6
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownSettingRenderer.js +307 -0
- package/vscode/src/vs/workbench/contrib/markers/browser/markers.contribution.js +759 -0
- package/vscode/src/vs/workbench/contrib/markers/browser/markersFileDecorations.js +127 -0
- package/vscode/src/vs/workbench/contrib/markers/browser/markersFilterOptions.js +75 -0
- package/vscode/src/vs/workbench/contrib/markers/browser/markersModel.js +200 -0
- package/vscode/src/vs/workbench/contrib/markers/browser/markersTable.js +475 -0
- package/vscode/src/vs/workbench/contrib/markers/browser/markersTreeViewer.js +691 -0
- package/vscode/src/vs/workbench/contrib/markers/browser/markersView.js +900 -0
- package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.js +132 -0
- package/vscode/src/vs/workbench/contrib/markers/browser/media/markers.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/markers/browser/messages.js +301 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/actions.js +108 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor.contribution.js +39 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor.js +117 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +146 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +107 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +172 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +542 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +105 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +66 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +163 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +65 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +318 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +70 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/media/notebookFind.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +167 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +207 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +82 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +81 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +65 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +100 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +391 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +62 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +95 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +118 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +58 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +148 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +654 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +75 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +515 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +157 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +55 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +93 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +50 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +651 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +719 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +349 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +314 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +197 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +46 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +1295 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +282 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +561 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +113 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +37 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +312 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +909 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +11 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +393 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +183 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +1185 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibility.js +157 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +449 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +190 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +104 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +508 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +128 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +339 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +109 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +26 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +63 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +639 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +198 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +89 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +1000 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +101 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +201 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +78 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.js +96 -0
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +367 -0
- package/vscode/src/vs/workbench/contrib/outline/browser/outlineActions.js +172 -0
- package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +316 -0
- package/vscode/src/vs/workbench/contrib/outline/browser/outlineViewState.js +66 -0
- package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +613 -0
- package/vscode/src/vs/workbench/contrib/output/browser/output.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/output/browser/outputLinkProvider.js +76 -0
- package/vscode/src/vs/workbench/contrib/output/browser/outputServices.js +200 -0
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +224 -0
- package/vscode/src/vs/workbench/contrib/performance/browser/inputLatencyContrib.js +43 -0
- package/vscode/src/vs/workbench/contrib/performance/browser/performance.contribution.js +116 -0
- package/vscode/src/vs/workbench/contrib/performance/browser/performance.web.contribution.js +5 -0
- package/vscode/src/vs/workbench/contrib/performance/browser/perfviewEditor.js +340 -0
- package/vscode/src/vs/workbench/contrib/performance/browser/startupTimings.js +114 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditor.js +1237 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js +248 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindingsEditor.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/preferences.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsWidgets.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferences.contribution.js +1374 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesActions.js +104 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesEditor.js +47 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesRenderers.js +784 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesSearch.js +461 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditor2.js +1578 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditorSettingIndicators.js +624 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsSearchMenu.js +135 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTree.js +2122 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsWidgets.js +1158 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/tocTree.js +217 -0
- package/vscode/src/vs/workbench/contrib/preferences/common/preferencesContribution.js +160 -0
- package/vscode/src/vs/workbench/contrib/preferences/common/smartSnippetInserter.js +124 -0
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +293 -0
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +167 -0
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +264 -0
- package/vscode/src/vs/workbench/contrib/relauncher/browser/relauncher.contribution.js +206 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/explorerViewItems.js +133 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/media/remoteViewlet.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remote.contribution.js +18 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remote.js +829 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteConnectionHealth.js +164 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIndicator.js +800 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteStartEntry.contribution.js +5 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteStartEntry.js +95 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/showCandidate.js +33 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelFactory.js +108 -0
- package/vscode/src/vs/workbench/contrib/remote/common/remote.contribution.js +513 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/activity.js +306 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/media/scm.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/menus.js +278 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scm.contribution.js +701 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.js +172 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoryRenderer.js +134 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.js +3365 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPaneContainer.js +52 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewService.js +303 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/util.js +119 -0
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.js +74 -0
- package/vscode/src/vs/workbench/contrib/scm/common/scmService.js +310 -0
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +794 -0
- package/vscode/src/vs/workbench/contrib/search/browser/media/anythingQuickAccess.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/search/browser/media/searchview.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +232 -0
- package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +339 -0
- package/vscode/src/vs/workbench/contrib/search/browser/replaceContributions.js +7 -0
- package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +230 -0
- package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +646 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +207 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +510 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +372 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +42 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +43 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +322 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +101 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +104 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +64 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +435 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +2175 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +672 -0
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +232 -0
- package/vscode/src/vs/workbench/contrib/search/common/cacheState.js +85 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +585 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +758 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +187 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +318 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +136 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +291 -0
- package/vscode/src/vs/workbench/contrib/share/browser/share.contribution.js +167 -0
- package/vscode/src/vs/workbench/contrib/share/browser/share.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/share/browser/shareService.js +70 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/configureSnippets.js +331 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/insertSnippet.js +127 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/surroundWithSnippet.js +57 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCodeActionProvider.js +154 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetPicker.js +111 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.contribution.js +141 -0
- package/vscode/src/vs/workbench/contrib/speech/browser/speechService.js +271 -0
- package/vscode/src/vs/workbench/contrib/surveys/browser/ces.contribution.js +137 -0
- package/vscode/src/vs/workbench/contrib/surveys/browser/languageSurveys.contribution.js +50 -0
- package/vscode/src/vs/workbench/contrib/surveys/browser/nps.contribution.js +92 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.js +3857 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/runAutomaticTasks.js +183 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/task.contribution.js +682 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskQuickPick.js +450 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskService.js +36 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskTerminalStatus.js +189 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/tasksQuickAccess.js +119 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.js +1711 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchemaCommon.js +437 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v1.js +123 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.js +899 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.js +463 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +1794 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +1579 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskSystem.js +14 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskTemplates.js +143 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/baseTerminalBackend.js +114 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +133 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/scrollbar.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/terminal.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/terminalVoice.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/widgets.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/xterm.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/remotePty.js +91 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.js +312 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.contribution.js +267 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.web.contribution.js +11 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +2070 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalCommands.js +22 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.js +221 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +40 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditor.js +193 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorSerializer.js +40 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorService.js +239 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEscapeSequences.js +12 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEvents.js +47 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroup.js +501 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroupService.js +368 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +2180 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstanceService.js +81 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMainContribution.js +94 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +840 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +619 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileQuickpick.js +312 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.js +285 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileService.js +225 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +155 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +335 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalService.js +1156 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +121 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabbedView.js +439 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.js +690 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTooltip.js +84 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalUri.js +39 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalView.js +628 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalVoice.js +199 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/terminalHoverWidget.js +91 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +56 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/basePty.js +91 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariableService.js +96 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/history.js +375 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/remote/remoteTerminalChannel.js +253 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalClipboard.js +98 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalConfiguration.js +1351 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +282 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +145 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/bufferContentTracker.js +112 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminal.accessibility.contribution.js +389 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibilityHelp.js +190 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleBufferProvider.js +102 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.js +106 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminal.chat.contribution.js +9 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +84 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +125 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibleView.js +31 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +344 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +335 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +154 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/developer/browser/media/developer.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/developer/browser/terminal.developer.contribution.js +237 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/environmentChanges/browser/terminal.environmentChanges.contribution.js +114 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/find/browser/terminal.find.contribution.js +264 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/find/browser/terminalFindWidget.js +165 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/find/browser/textInputContextMenu.js +61 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/highlight/browser/terminal.highlight.contribution.js +36 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminal.links.contribution.js +132 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalExternalLinkDetector.js +38 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLink.js +120 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkDetectorAdapter.js +108 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkHelpers.js +175 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkManager.js +394 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkOpeners.js +240 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkParsing.js +206 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkQuickpick.js +264 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkResolver.js +141 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLocalLinkDetector.js +220 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalMultiLineLinkDetector.js +182 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalUriLinkDetector.js +119 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalWordLinkDetector.js +94 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/media/terminalQuickFix.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFixAddon.js +451 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminal.quickFix.contribution.js +61 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixBuiltinActions.js +323 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService.js +168 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/media/stickyScroll.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminal.stickyScroll.contribution.js +5 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollColorRegistry.js +35 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollContribution.js +91 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollOverlay.js +379 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminal.suggest.contribution.js +181 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalSuggestAddon.js +406 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/browser/terminal.typeAhead.contribution.js +54 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/browser/terminalTypeAheadAddon.js +1047 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/browser/terminal.zoom.contribution.js +130 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/codeCoverageDecorations.js +589 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/display.js +2 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/index.js +81 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/listProjection.js +184 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/testItemContextOverlay.js +16 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/testingObjectTree.js +44 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/testingViewState.js +15 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/explorerProjections/treeProjection.js +222 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/icons.js +182 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/media/testMessageColorizer.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/media/testing.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageBars.js +238 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testCoverageView.js +562 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testExplorerActions.js +1671 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testMessageColorizer.js +71 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testing.contribution.js +224 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testingConfigurationUi.js +119 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testingDecorations.js +968 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerFilter.js +234 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testingExplorerView.js +1239 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testingOutputPeek.js +2108 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testingProgressUiService.js +140 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/testingViewPaneContainer.js +45 -0
- package/vscode/src/vs/workbench/contrib/testing/browser/theme.js +335 -0
- package/vscode/src/vs/workbench/contrib/testing/common/configuration.js +274 -0
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +57 -0
- package/vscode/src/vs/workbench/contrib/testing/common/mainThreadTestCollection.js +127 -0
- package/vscode/src/vs/workbench/contrib/testing/common/observableUtils.js +19 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testExclusions.js +46 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testServiceImpl.js +294 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingContentProvider.js +123 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingUri.js +65 -0
- package/vscode/src/vs/workbench/contrib/themes/browser/themes.contribution.js +955 -0
- package/vscode/src/vs/workbench/contrib/timeline/browser/media/timelinePane.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/timeline/browser/timeline.contribution.js +118 -0
- package/vscode/src/vs/workbench/contrib/timeline/browser/timelinePane.js +1161 -0
- package/vscode/src/vs/workbench/contrib/timeline/common/timelineService.js +106 -0
- package/vscode/src/vs/workbench/contrib/update/browser/media/releasenoteseditor.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/update/browser/releaseNotesEditor.js +411 -0
- package/vscode/src/vs/workbench/contrib/update/browser/update.contribution.js +252 -0
- package/vscode/src/vs/workbench/contrib/update/browser/update.js +676 -0
- package/vscode/src/vs/workbench/contrib/url/browser/externalUriResolver.js +26 -0
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +198 -0
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainsFileSystemProvider.js +135 -0
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainsValidator.js +203 -0
- package/vscode/src/vs/workbench/contrib/url/browser/url.contribution.js +66 -0
- package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSync.contribution.js +110 -0
- package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSync.js +1466 -0
- package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSyncConflictsView.js +223 -0
- package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSyncTrigger.js +59 -0
- package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSyncViews.js +858 -0
- package/vscode/src/vs/workbench/contrib/welcomeBanner/browser/welcomeBanner.contribution.js +45 -0
- package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/media/welcomeWidget.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/welcomeDialog.contribution.js +102 -0
- package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/welcomeWidget.js +187 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +380 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +1526 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +47 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedDetailsRenderer.js +261 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +14 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +51 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedList.js +95 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +216 -0
- package/vscode/src/vs/workbench/contrib/welcomeViews/common/newFile.contribution.js +237 -0
- package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcome.contribution.js +18 -0
- package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcomeContribution.js +73 -0
- package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcomeExtensionPoint.js +97 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +61 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/media/walkThroughPart.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +38 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughActions.js +57 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.js +113 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +429 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.js +74 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +18 -0
- package/vscode/src/vs/workbench/contrib/workspace/browser/media/workspaceTrustEditor.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspace.contribution.js +976 -0
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspaceTrustEditor.js +1243 -0
- package/vscode/src/vs/workbench/contrib/workspaces/browser/workspaces.contribution.js +132 -0
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +1595 -0
- package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformationService.js +82 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationExtensionsService.js +369 -0
- package/vscode/src/vs/workbench/services/commands/common/commandService.js +77 -0
- package/vscode/src/vs/workbench/services/configuration/browser/configuration.js +850 -0
- package/vscode/src/vs/workbench/services/configuration/browser/configurationService.js +1199 -0
- package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.js +666 -0
- package/vscode/src/vs/workbench/services/configuration/common/configurationModels.js +119 -0
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +120 -0
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +309 -0
- package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +27 -0
- package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +330 -0
- package/vscode/src/vs/workbench/services/dialogs/browser/abstractFileDialogService.js +377 -0
- package/vscode/src/vs/workbench/services/dialogs/browser/simpleFileDialog.js +1037 -0
- package/vscode/src/vs/workbench/services/dialogs/common/dialogService.js +70 -0
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionEnablementService.js +638 -0
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionsProfileScannerService.js +22 -0
- package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js +892 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeaturesManagemetService.js +232 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementChannelClient.js +107 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementServerService.js +61 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementService.js +1043 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/remoteExtensionManagementService.js +56 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/webExtensionManagementService.js +279 -0
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionIgnoredRecommendationsService.js +82 -0
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +283 -0
- package/vscode/src/vs/workbench/services/extensions/browser/extensionsScannerService.js +31 -0
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +274 -0
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerFileSystemProvider.js +50 -0
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +1147 -0
- package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.js +40 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionDevOptions.js +23 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +510 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js +272 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionStorageMigration.js +56 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +78 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +62 -0
- package/vscode/src/vs/workbench/services/extensions/common/lazyCreateExtensionHostManager.js +159 -0
- package/vscode/src/vs/workbench/services/extensions/common/remoteConsoleUtil.js +47 -0
- package/vscode/src/vs/workbench/services/extensions/common/remoteExtensionHost.js +220 -0
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +428 -0
- package/vscode/src/vs/workbench/services/issue/browser/issueService.js +97 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +945 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +500 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/_.contribution.js +13 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/cz.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de-swiss.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de.darwin.js +125 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de.linux.js +180 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/dk.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/dvorak.darwin.js +125 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-belgian.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-ext.darwin.js +125 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-in.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-intl.darwin.js +125 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-intl.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-uk.darwin.js +125 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-uk.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en.darwin.js +133 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en.linux.js +182 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en.win.js +167 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es-latin.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es.darwin.js +125 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es.linux.js +180 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.darwin.js +125 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.linux.js +180 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/hu.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/it.darwin.js +125 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/it.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/jp-roman.darwin.js +125 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/jp.darwin.js +125 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ko.darwin.js +125 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.darwin.js +17 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.linux.js +6 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.win.js +23 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/no.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pl.darwin.js +125 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pl.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pt-br.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pt.darwin.js +125 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pt.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.darwin.js +125 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.linux.js +180 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/sv.win.js +164 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/thai.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/tr.win.js +162 -0
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/zh-hans.darwin.js +125 -0
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingIO.js +72 -0
- package/vscode/src/vs/workbench/services/keybinding/common/keymapInfo.js +108 -0
- package/vscode/src/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.js +886 -0
- package/vscode/src/vs/workbench/services/keybinding/common/windowsKeyboardMapper.js +350 -0
- package/vscode/src/vs/workbench/services/label/common/labelService.js +435 -0
- package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionWorkerServiceImpl.js +259 -0
- package/vscode/src/vs/workbench/services/lifecycle/browser/lifecycleService.js +135 -0
- package/vscode/src/vs/workbench/services/localization/common/locale.d.ts +11 -0
- package/vscode/src/vs/workbench/services/notification/common/notificationService.js +251 -0
- package/vscode/src/vs/workbench/services/preferences/browser/preferencesService.js +551 -0
- package/vscode/src/vs/workbench/services/quickinput/browser/quickInputService.js +37 -0
- package/vscode/src/vs/workbench/services/remote/browser/browserRemoteResourceHandler.js +47 -0
- package/vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js +76 -0
- package/vscode/src/vs/workbench/services/remote/common/abstractRemoteAgentService.js +177 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentEnvironmentChannel.js +52 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExtensionsScanner.js +71 -0
- package/vscode/src/vs/workbench/services/request/browser/requestService.js +48 -0
- package/vscode/src/vs/workbench/services/search/common/searchService.js +414 -0
- package/vscode/src/vs/workbench/services/storage/browser/storageService.js +290 -0
- package/vscode/src/vs/workbench/services/suggest/browser/media/suggest.css.js +4 -0
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +9 -0
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +97 -0
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +428 -0
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +83 -0
- package/vscode/src/vs/workbench/services/textMate/browser/arrayOperation.js +62 -0
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/textMateWorkerTokenizerController.js +160 -0
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/threadedBackgroundTokenizerFactory.js +200 -0
- package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +482 -0
- package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/textMateTokenizationSupport.js +72 -0
- package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/tokenizationSupportWithLineLimit.js +39 -0
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammarFactory.js +118 -0
- package/vscode/src/vs/workbench/services/textMate/common/TMScopeRegistry.js +15 -0
- package/vscode/src/vs/workbench/services/textfile/browser/browserTextFileService.js +57 -0
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +652 -0
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +402 -0
- package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +62 -0
- package/vscode/src/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +191 -0
- package/vscode/src/vs/workbench/services/textresourceProperties/common/textResourcePropertiesService.js +44 -0
- package/vscode/src/vs/workbench/services/themes/browser/fileIconThemeData.js +372 -0
- package/vscode/src/vs/workbench/services/themes/browser/productIconThemeData.js +305 -0
- package/vscode/src/vs/workbench/services/themes/browser/workbenchThemeService.js +768 -0
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +886 -0
- package/vscode/src/vs/workbench/services/themes/common/colorThemeSchema.js +309 -0
- package/vscode/src/vs/workbench/services/themes/common/fileIconThemeSchema.js +432 -0
- package/vscode/src/vs/workbench/services/themes/common/plistParser.js +439 -0
- package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +114 -0
- package/vscode/src/vs/workbench/services/themes/common/textMateScopeMatcher.js +120 -0
- package/vscode/src/vs/workbench/services/themes/common/themeCompatibility.js +76 -0
- package/vscode/src/vs/workbench/services/themes/common/themeConfiguration.js +469 -0
- package/vscode/src/vs/workbench/services/themes/common/themeExtensionPoints.js +340 -0
- package/vscode/src/vs/workbench/services/tunnel/browser/tunnelService.js +34 -0
- package/vscode/src/vs/workbench/services/url/browser/urlService.js +48 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.js +340 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/globalStateResource.js +145 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/iconSelectBox.js +96 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/keybindingsResource.js +117 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/media/userDataProfileView.css.js +4 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/settingsResource.js +138 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/snippetsResource.js +153 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/tasksResource.js +116 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.js +1752 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileInit.js +148 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.js +188 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +7 -2
- package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncInit.js +445 -0
- package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncWorkbenchService.js +786 -0
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSyncUtil.js +46 -0
- package/vscode/src/vs/workbench/services/workingCopy/browser/workingCopyBackupService.js +23 -0
- package/vscode/src/vs/workbench/services/workingCopy/browser/workingCopyBackupTracker.js +43 -0
- package/vscode/src/vs/workbench/services/workingCopy/browser/workingCopyHistoryService.js +28 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +87 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +384 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +406 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +142 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +127 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +452 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupTracker.js +253 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyHistoryService.js +616 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyHistoryTracker.js +162 -0
- package/vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +335 -0
- package/vscode/src/vs/workbench/services/workspaces/browser/workspaceTrustEditorInput.js +41 -0
- package/vscode/src/vs/workbench/services/workspaces/browser/workspacesService.js +151 -0
- package/vscode/src/vs/workbench/services/workspaces/common/editSessionIdentityService.js +60 -0
|
@@ -0,0 +1,986 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { coalesce } from '../../../base/common/arrays.js';
|
|
3
|
+
import { ResourceQueue, Promises } from '../../../base/common/async.js';
|
|
4
|
+
import { VSBuffer, bufferToReadable, streamToBuffer, bufferedStreamToBuffer, readableToBuffer, newWriteableBufferStream } from '../../../base/common/buffer.js';
|
|
5
|
+
import { CancellationToken, CancellationTokenSource } from '../../../base/common/cancellation.js';
|
|
6
|
+
import { Emitter } from '../../../base/common/event.js';
|
|
7
|
+
import { hash } from '../../../base/common/hash.js';
|
|
8
|
+
import { Iterable } from '../../../base/common/iterator.js';
|
|
9
|
+
import { Disposable, toDisposable, dispose, DisposableStore } from '../../../base/common/lifecycle.js';
|
|
10
|
+
import { TernarySearchTree } from '../../../base/common/ternarySearchTree.js';
|
|
11
|
+
import { Schemas } from '../../../base/common/network.js';
|
|
12
|
+
import { mark } from '../../../base/common/performance.js';
|
|
13
|
+
import { isAbsolutePath, extUri, extUriIgnorePathCase } from '../../../base/common/resources.js';
|
|
14
|
+
import { isReadableStream, peekStream, peekReadable, consumeStream, transform, isReadableBufferedStream, listenStream, newWriteableStream } from '../../../base/common/stream.js';
|
|
15
|
+
import { localizeWithPath } from '../../../nls.js';
|
|
16
|
+
import { FileChangesEvent, FileOperationError, hasOpenReadWriteCloseCapability, hasReadWriteCapability, hasFileReadStreamCapability, toFileSystemProviderErrorCode, FileSystemProviderErrorCode, ensureFileSystemProviderError, FileType, FilePermission, etag, FileOperationEvent, hasFileAtomicWriteCapability, toFileOperationResult, ETAG_DISABLED, hasFileAtomicReadCapability, NotModifiedSinceFileOperationError, TooLargeFileOperationError, hasFileFolderCopyCapability, hasFileAtomicDeleteCapability, hasFileCloneCapability } from './files.js';
|
|
17
|
+
import { readFileIntoStream } from './io.js';
|
|
18
|
+
import { ILogService } from '../../log/common/log.js';
|
|
19
|
+
import { ErrorNoTelemetry } from '../../../base/common/errors.js';
|
|
20
|
+
var FileService_1;
|
|
21
|
+
let FileService = class FileService extends Disposable {
|
|
22
|
+
static { FileService_1 = this; }
|
|
23
|
+
constructor(logService) {
|
|
24
|
+
super();
|
|
25
|
+
this.logService = logService;
|
|
26
|
+
this.BUFFER_SIZE = 256 * 1024;
|
|
27
|
+
this._onDidChangeFileSystemProviderRegistrations = this._register(( new Emitter()));
|
|
28
|
+
this.onDidChangeFileSystemProviderRegistrations = this._onDidChangeFileSystemProviderRegistrations.event;
|
|
29
|
+
this._onWillActivateFileSystemProvider = this._register(( new Emitter()));
|
|
30
|
+
this.onWillActivateFileSystemProvider = this._onWillActivateFileSystemProvider.event;
|
|
31
|
+
this._onDidChangeFileSystemProviderCapabilities = this._register(( new Emitter()));
|
|
32
|
+
this.onDidChangeFileSystemProviderCapabilities = this._onDidChangeFileSystemProviderCapabilities.event;
|
|
33
|
+
this.provider = ( new Map());
|
|
34
|
+
this._onDidRunOperation = this._register(( new Emitter()));
|
|
35
|
+
this.onDidRunOperation = this._onDidRunOperation.event;
|
|
36
|
+
this.internalOnDidFilesChange = this._register(( new Emitter()));
|
|
37
|
+
this._onDidUncorrelatedFilesChange = this._register(( new Emitter()));
|
|
38
|
+
this.onDidFilesChange = this._onDidUncorrelatedFilesChange.event;
|
|
39
|
+
this._onDidWatchError = this._register(( new Emitter()));
|
|
40
|
+
this.onDidWatchError = this._onDidWatchError.event;
|
|
41
|
+
this.activeWatchers = ( new Map());
|
|
42
|
+
this.writeQueue = this._register(( new ResourceQueue()));
|
|
43
|
+
}
|
|
44
|
+
registerProvider(scheme, provider) {
|
|
45
|
+
if (( this.provider.has(scheme))) {
|
|
46
|
+
throw new Error(`A filesystem provider for the scheme '${scheme}' is already registered.`);
|
|
47
|
+
}
|
|
48
|
+
mark(`code/registerFilesystem/${scheme}`);
|
|
49
|
+
const providerDisposables = ( new DisposableStore());
|
|
50
|
+
this.provider.set(scheme, provider);
|
|
51
|
+
this._onDidChangeFileSystemProviderRegistrations.fire({ added: true, scheme, provider });
|
|
52
|
+
providerDisposables.add(provider.onDidChangeFile(changes => {
|
|
53
|
+
const event = ( new FileChangesEvent(changes, !this.isPathCaseSensitive(provider)));
|
|
54
|
+
this.internalOnDidFilesChange.fire(event);
|
|
55
|
+
if (!event.hasCorrelation()) {
|
|
56
|
+
this._onDidUncorrelatedFilesChange.fire(event);
|
|
57
|
+
}
|
|
58
|
+
}));
|
|
59
|
+
if (typeof provider.onDidWatchError === 'function') {
|
|
60
|
+
providerDisposables.add(provider.onDidWatchError(error => this._onDidWatchError.fire(( new Error(error)))));
|
|
61
|
+
}
|
|
62
|
+
providerDisposables.add(provider.onDidChangeCapabilities(() => this._onDidChangeFileSystemProviderCapabilities.fire({ provider, scheme })));
|
|
63
|
+
return toDisposable(() => {
|
|
64
|
+
this._onDidChangeFileSystemProviderRegistrations.fire({ added: false, scheme, provider });
|
|
65
|
+
this.provider.delete(scheme);
|
|
66
|
+
dispose(providerDisposables);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
getProvider(scheme) {
|
|
70
|
+
return this.provider.get(scheme);
|
|
71
|
+
}
|
|
72
|
+
async activateProvider(scheme) {
|
|
73
|
+
const joiners = [];
|
|
74
|
+
this._onWillActivateFileSystemProvider.fire({
|
|
75
|
+
scheme,
|
|
76
|
+
join(promise) {
|
|
77
|
+
joiners.push(promise);
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
if (( this.provider.has(scheme))) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
await Promises.settled(joiners);
|
|
84
|
+
}
|
|
85
|
+
async canHandleResource(resource) {
|
|
86
|
+
await this.activateProvider(resource.scheme);
|
|
87
|
+
return this.hasProvider(resource);
|
|
88
|
+
}
|
|
89
|
+
hasProvider(resource) {
|
|
90
|
+
return ( this.provider.has(resource.scheme));
|
|
91
|
+
}
|
|
92
|
+
hasCapability(resource, capability) {
|
|
93
|
+
const provider = this.provider.get(resource.scheme);
|
|
94
|
+
return !!(provider && (provider.capabilities & capability));
|
|
95
|
+
}
|
|
96
|
+
listCapabilities() {
|
|
97
|
+
return ( Iterable.map(
|
|
98
|
+
this.provider,
|
|
99
|
+
([scheme, provider]) => ({ scheme, capabilities: provider.capabilities })
|
|
100
|
+
));
|
|
101
|
+
}
|
|
102
|
+
async withProvider(resource) {
|
|
103
|
+
if (!isAbsolutePath(resource)) {
|
|
104
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'invalidPath', "Unable to resolve filesystem provider with relative file path '{0}'", this.resourceForError(resource)), 8 );
|
|
105
|
+
}
|
|
106
|
+
await this.activateProvider(resource.scheme);
|
|
107
|
+
const provider = this.provider.get(resource.scheme);
|
|
108
|
+
if (!provider) {
|
|
109
|
+
const error = ( new ErrorNoTelemetry());
|
|
110
|
+
error.message = ( localizeWithPath(
|
|
111
|
+
'vs/platform/files/common/fileService',
|
|
112
|
+
'noProviderFound',
|
|
113
|
+
"ENOPRO: No file system provider found for resource '{0}'",
|
|
114
|
+
( resource.toString())
|
|
115
|
+
));
|
|
116
|
+
throw error;
|
|
117
|
+
}
|
|
118
|
+
return provider;
|
|
119
|
+
}
|
|
120
|
+
async withReadProvider(resource) {
|
|
121
|
+
const provider = await this.withProvider(resource);
|
|
122
|
+
if (hasOpenReadWriteCloseCapability(provider) || hasReadWriteCapability(provider) || hasFileReadStreamCapability(provider)) {
|
|
123
|
+
return provider;
|
|
124
|
+
}
|
|
125
|
+
throw new Error(`Filesystem provider for scheme '${resource.scheme}' neither has FileReadWrite, FileReadStream nor FileOpenReadWriteClose capability which is needed for the read operation.`);
|
|
126
|
+
}
|
|
127
|
+
async withWriteProvider(resource) {
|
|
128
|
+
const provider = await this.withProvider(resource);
|
|
129
|
+
if (hasOpenReadWriteCloseCapability(provider) || hasReadWriteCapability(provider)) {
|
|
130
|
+
return provider;
|
|
131
|
+
}
|
|
132
|
+
throw new Error(`Filesystem provider for scheme '${resource.scheme}' neither has FileReadWrite nor FileOpenReadWriteClose capability which is needed for the write operation.`);
|
|
133
|
+
}
|
|
134
|
+
async resolve(resource, options) {
|
|
135
|
+
try {
|
|
136
|
+
return await this.doResolveFile(resource, options);
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
if (toFileSystemProviderErrorCode(error) === FileSystemProviderErrorCode.FileNotFound) {
|
|
140
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'fileNotFoundError', "Unable to resolve nonexistent file '{0}'", this.resourceForError(resource)), 1 );
|
|
141
|
+
}
|
|
142
|
+
throw ensureFileSystemProviderError(error);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
async doResolveFile(resource, options) {
|
|
146
|
+
const provider = await this.withProvider(resource);
|
|
147
|
+
const isPathCaseSensitive = this.isPathCaseSensitive(provider);
|
|
148
|
+
const resolveTo = options?.resolveTo;
|
|
149
|
+
const resolveSingleChildDescendants = options?.resolveSingleChildDescendants;
|
|
150
|
+
const resolveMetadata = options?.resolveMetadata;
|
|
151
|
+
const stat = await provider.stat(resource);
|
|
152
|
+
let trie;
|
|
153
|
+
return this.toFileStat(provider, resource, stat, undefined, !!resolveMetadata, (stat, siblings) => {
|
|
154
|
+
if (!trie) {
|
|
155
|
+
trie = TernarySearchTree.forUris(() => !isPathCaseSensitive);
|
|
156
|
+
trie.set(resource, true);
|
|
157
|
+
if (resolveTo) {
|
|
158
|
+
trie.fill(true, resolveTo);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
if (trie.get(stat.resource) || trie.findSuperstr(stat.resource.with({ query: null, fragment: null } ))) {
|
|
162
|
+
return true;
|
|
163
|
+
}
|
|
164
|
+
if (stat.isDirectory && resolveSingleChildDescendants) {
|
|
165
|
+
return siblings === 1;
|
|
166
|
+
}
|
|
167
|
+
return false;
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
async toFileStat(provider, resource, stat, siblings, resolveMetadata, recurse) {
|
|
171
|
+
const { providerExtUri } = this.getExtUri(provider);
|
|
172
|
+
const fileStat = {
|
|
173
|
+
resource,
|
|
174
|
+
name: providerExtUri.basename(resource),
|
|
175
|
+
isFile: (stat.type & FileType.File) !== 0,
|
|
176
|
+
isDirectory: (stat.type & FileType.Directory) !== 0,
|
|
177
|
+
isSymbolicLink: (stat.type & FileType.SymbolicLink) !== 0,
|
|
178
|
+
mtime: stat.mtime,
|
|
179
|
+
ctime: stat.ctime,
|
|
180
|
+
size: stat.size,
|
|
181
|
+
readonly: Boolean((stat.permissions ?? 0) & FilePermission.Readonly) || Boolean(provider.capabilities & 2048 ),
|
|
182
|
+
locked: Boolean((stat.permissions ?? 0) & FilePermission.Locked),
|
|
183
|
+
etag: etag({ mtime: stat.mtime, size: stat.size }),
|
|
184
|
+
children: undefined
|
|
185
|
+
};
|
|
186
|
+
if (fileStat.isDirectory && recurse(fileStat, siblings)) {
|
|
187
|
+
try {
|
|
188
|
+
const entries = await provider.readdir(resource);
|
|
189
|
+
const resolvedEntries = await Promises.settled(( entries.map(async ([name, type]) => {
|
|
190
|
+
try {
|
|
191
|
+
const childResource = providerExtUri.joinPath(resource, name);
|
|
192
|
+
const childStat = resolveMetadata ? await provider.stat(childResource) : { type };
|
|
193
|
+
return await this.toFileStat(provider, childResource, childStat, entries.length, resolveMetadata, recurse);
|
|
194
|
+
}
|
|
195
|
+
catch (error) {
|
|
196
|
+
this.logService.trace(error);
|
|
197
|
+
return null;
|
|
198
|
+
}
|
|
199
|
+
})));
|
|
200
|
+
fileStat.children = coalesce(resolvedEntries);
|
|
201
|
+
}
|
|
202
|
+
catch (error) {
|
|
203
|
+
this.logService.trace(error);
|
|
204
|
+
fileStat.children = [];
|
|
205
|
+
}
|
|
206
|
+
return fileStat;
|
|
207
|
+
}
|
|
208
|
+
return fileStat;
|
|
209
|
+
}
|
|
210
|
+
async resolveAll(toResolve) {
|
|
211
|
+
return Promises.settled(( toResolve.map(async (entry) => {
|
|
212
|
+
try {
|
|
213
|
+
return { stat: await this.doResolveFile(entry.resource, entry.options), success: true };
|
|
214
|
+
}
|
|
215
|
+
catch (error) {
|
|
216
|
+
this.logService.trace(error);
|
|
217
|
+
return { stat: undefined, success: false };
|
|
218
|
+
}
|
|
219
|
+
})));
|
|
220
|
+
}
|
|
221
|
+
async stat(resource) {
|
|
222
|
+
const provider = await this.withProvider(resource);
|
|
223
|
+
const stat = await provider.stat(resource);
|
|
224
|
+
return this.toFileStat(provider, resource, stat, undefined, true, () => false );
|
|
225
|
+
}
|
|
226
|
+
async exists(resource) {
|
|
227
|
+
const provider = await this.withProvider(resource);
|
|
228
|
+
try {
|
|
229
|
+
const stat = await provider.stat(resource);
|
|
230
|
+
return !!stat;
|
|
231
|
+
}
|
|
232
|
+
catch (error) {
|
|
233
|
+
return false;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
async canCreateFile(resource, options) {
|
|
237
|
+
try {
|
|
238
|
+
await this.doValidateCreateFile(resource, options);
|
|
239
|
+
}
|
|
240
|
+
catch (error) {
|
|
241
|
+
return error;
|
|
242
|
+
}
|
|
243
|
+
return true;
|
|
244
|
+
}
|
|
245
|
+
async doValidateCreateFile(resource, options) {
|
|
246
|
+
if (!options?.overwrite && (await this.exists(resource))) {
|
|
247
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'fileExists', "Unable to create file '{0}' that already exists when overwrite flag is not set", this.resourceForError(resource)), 3 , options);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
async createFile(resource, bufferOrReadableOrStream = VSBuffer.fromString(''), options) {
|
|
251
|
+
await this.doValidateCreateFile(resource, options);
|
|
252
|
+
const fileStat = await this.writeFile(resource, bufferOrReadableOrStream);
|
|
253
|
+
this._onDidRunOperation.fire(( new FileOperationEvent(resource, 0 , fileStat)));
|
|
254
|
+
return fileStat;
|
|
255
|
+
}
|
|
256
|
+
async writeFile(resource, bufferOrReadableOrStream, options) {
|
|
257
|
+
const provider = this.throwIfFileSystemIsReadonly(await this.withWriteProvider(resource), resource);
|
|
258
|
+
const { providerExtUri } = this.getExtUri(provider);
|
|
259
|
+
let writeFileOptions = options;
|
|
260
|
+
if (hasFileAtomicWriteCapability(provider) && !writeFileOptions?.atomic) {
|
|
261
|
+
const enforcedAtomicWrite = provider.enforceAtomicWriteFile?.(resource);
|
|
262
|
+
if (enforcedAtomicWrite) {
|
|
263
|
+
writeFileOptions = { ...options, atomic: enforcedAtomicWrite };
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
try {
|
|
267
|
+
const stat = await this.validateWriteFile(provider, resource, writeFileOptions);
|
|
268
|
+
if (!stat) {
|
|
269
|
+
await this.mkdirp(provider, providerExtUri.dirname(resource));
|
|
270
|
+
}
|
|
271
|
+
let bufferOrReadableOrStreamOrBufferedStream;
|
|
272
|
+
if (hasReadWriteCapability(provider) && !(bufferOrReadableOrStream instanceof VSBuffer)) {
|
|
273
|
+
if (isReadableStream(bufferOrReadableOrStream)) {
|
|
274
|
+
const bufferedStream = await peekStream(bufferOrReadableOrStream, 3);
|
|
275
|
+
if (bufferedStream.ended) {
|
|
276
|
+
bufferOrReadableOrStreamOrBufferedStream = VSBuffer.concat(bufferedStream.buffer);
|
|
277
|
+
}
|
|
278
|
+
else {
|
|
279
|
+
bufferOrReadableOrStreamOrBufferedStream = bufferedStream;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
bufferOrReadableOrStreamOrBufferedStream = peekReadable(bufferOrReadableOrStream, data => VSBuffer.concat(data), 3);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
else {
|
|
287
|
+
bufferOrReadableOrStreamOrBufferedStream = bufferOrReadableOrStream;
|
|
288
|
+
}
|
|
289
|
+
if (!hasOpenReadWriteCloseCapability(provider) ||
|
|
290
|
+
(hasReadWriteCapability(provider) && bufferOrReadableOrStreamOrBufferedStream instanceof VSBuffer) ||
|
|
291
|
+
(hasReadWriteCapability(provider) && hasFileAtomicWriteCapability(provider) && writeFileOptions?.atomic)
|
|
292
|
+
) {
|
|
293
|
+
await this.doWriteUnbuffered(provider, resource, writeFileOptions, bufferOrReadableOrStreamOrBufferedStream);
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
await this.doWriteBuffered(provider, resource, writeFileOptions, bufferOrReadableOrStreamOrBufferedStream instanceof VSBuffer ? bufferToReadable(bufferOrReadableOrStreamOrBufferedStream) : bufferOrReadableOrStreamOrBufferedStream);
|
|
297
|
+
}
|
|
298
|
+
this._onDidRunOperation.fire(( new FileOperationEvent(resource, 4 )));
|
|
299
|
+
}
|
|
300
|
+
catch (error) {
|
|
301
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'err.write', "Unable to write file '{0}' ({1})", this.resourceForError(resource), ensureFileSystemProviderError(error).toString()), toFileOperationResult(error), writeFileOptions);
|
|
302
|
+
}
|
|
303
|
+
return this.resolve(resource, { resolveMetadata: true });
|
|
304
|
+
}
|
|
305
|
+
async validateWriteFile(provider, resource, options) {
|
|
306
|
+
const unlock = !!options?.unlock;
|
|
307
|
+
if (unlock && !((provider.capabilities & 8192) )) {
|
|
308
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'writeFailedUnlockUnsupported', "Unable to unlock file '{0}' because provider does not support it.", this.resourceForError(resource)));
|
|
309
|
+
}
|
|
310
|
+
const atomic = !!options?.atomic;
|
|
311
|
+
if (atomic) {
|
|
312
|
+
if (!((provider.capabilities & 32768) )) {
|
|
313
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'writeFailedAtomicUnsupported1', "Unable to atomically write file '{0}' because provider does not support it.", this.resourceForError(resource)));
|
|
314
|
+
}
|
|
315
|
+
if (!((provider.capabilities & 2) )) {
|
|
316
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'writeFailedAtomicUnsupported2', "Unable to atomically write file '{0}' because provider does not support unbuffered writes.", this.resourceForError(resource)));
|
|
317
|
+
}
|
|
318
|
+
if (unlock) {
|
|
319
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'writeFailedAtomicUnlock', "Unable to unlock file '{0}' because atomic write is enabled.", this.resourceForError(resource)));
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
let stat = undefined;
|
|
323
|
+
try {
|
|
324
|
+
stat = await provider.stat(resource);
|
|
325
|
+
}
|
|
326
|
+
catch (error) {
|
|
327
|
+
return undefined;
|
|
328
|
+
}
|
|
329
|
+
if ((stat.type & FileType.Directory) !== 0) {
|
|
330
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'fileIsDirectoryWriteError', "Unable to write file '{0}' that is actually a directory", this.resourceForError(resource)), 0 , options);
|
|
331
|
+
}
|
|
332
|
+
this.throwIfFileIsReadonly(resource, stat);
|
|
333
|
+
if (typeof options?.mtime === 'number' && typeof options.etag === 'string' && options.etag !== ETAG_DISABLED &&
|
|
334
|
+
typeof stat.mtime === 'number' && typeof stat.size === 'number' &&
|
|
335
|
+
options.mtime < stat.mtime && options.etag !== etag({ mtime: options.mtime , size: stat.size })) {
|
|
336
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'fileModifiedError', "File Modified Since"), 3 , options);
|
|
337
|
+
}
|
|
338
|
+
return stat;
|
|
339
|
+
}
|
|
340
|
+
async readFile(resource, options, token) {
|
|
341
|
+
const provider = await this.withReadProvider(resource);
|
|
342
|
+
if (options?.atomic) {
|
|
343
|
+
return this.doReadFileAtomic(provider, resource, options, token);
|
|
344
|
+
}
|
|
345
|
+
return this.doReadFile(provider, resource, options, token);
|
|
346
|
+
}
|
|
347
|
+
async doReadFileAtomic(provider, resource, options, token) {
|
|
348
|
+
return ( new Promise((resolve, reject) => {
|
|
349
|
+
this.writeQueue.queueFor(resource, async () => {
|
|
350
|
+
try {
|
|
351
|
+
const content = await this.doReadFile(provider, resource, options, token);
|
|
352
|
+
resolve(content);
|
|
353
|
+
}
|
|
354
|
+
catch (error) {
|
|
355
|
+
reject(error);
|
|
356
|
+
}
|
|
357
|
+
}, this.getExtUri(provider).providerExtUri);
|
|
358
|
+
}));
|
|
359
|
+
}
|
|
360
|
+
async doReadFile(provider, resource, options, token) {
|
|
361
|
+
const stream = await this.doReadFileStream(provider, resource, {
|
|
362
|
+
...options,
|
|
363
|
+
preferUnbuffered: true
|
|
364
|
+
}, token);
|
|
365
|
+
return {
|
|
366
|
+
...stream,
|
|
367
|
+
value: await streamToBuffer(stream.value)
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
async readFileStream(resource, options, token) {
|
|
371
|
+
const provider = await this.withReadProvider(resource);
|
|
372
|
+
return this.doReadFileStream(provider, resource, options, token);
|
|
373
|
+
}
|
|
374
|
+
async doReadFileStream(provider, resource, options, token) {
|
|
375
|
+
const cancellableSource = ( new CancellationTokenSource(token));
|
|
376
|
+
let readFileOptions = options;
|
|
377
|
+
if (hasFileAtomicReadCapability(provider) && provider.enforceAtomicReadFile?.(resource)) {
|
|
378
|
+
readFileOptions = { ...options, atomic: true };
|
|
379
|
+
}
|
|
380
|
+
const statPromise = this.validateReadFile(resource, readFileOptions).then(stat => stat, error => {
|
|
381
|
+
cancellableSource.dispose(true);
|
|
382
|
+
throw error;
|
|
383
|
+
});
|
|
384
|
+
let fileStream = undefined;
|
|
385
|
+
try {
|
|
386
|
+
if (typeof readFileOptions?.etag === 'string' && readFileOptions.etag !== ETAG_DISABLED) {
|
|
387
|
+
await statPromise;
|
|
388
|
+
}
|
|
389
|
+
if ((readFileOptions?.atomic && hasFileAtomicReadCapability(provider)) ||
|
|
390
|
+
!(hasOpenReadWriteCloseCapability(provider) || hasFileReadStreamCapability(provider)) ||
|
|
391
|
+
(hasReadWriteCapability(provider) && readFileOptions?.preferUnbuffered)
|
|
392
|
+
) {
|
|
393
|
+
fileStream = this.readFileUnbuffered(provider, resource, readFileOptions);
|
|
394
|
+
}
|
|
395
|
+
else if (hasFileReadStreamCapability(provider)) {
|
|
396
|
+
fileStream = this.readFileStreamed(provider, resource, cancellableSource.token, readFileOptions);
|
|
397
|
+
}
|
|
398
|
+
else {
|
|
399
|
+
fileStream = this.readFileBuffered(provider, resource, cancellableSource.token, readFileOptions);
|
|
400
|
+
}
|
|
401
|
+
fileStream.on('end', () => cancellableSource.dispose());
|
|
402
|
+
fileStream.on('error', () => cancellableSource.dispose());
|
|
403
|
+
const fileStat = await statPromise;
|
|
404
|
+
return {
|
|
405
|
+
...fileStat,
|
|
406
|
+
value: fileStream
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
catch (error) {
|
|
410
|
+
if (fileStream) {
|
|
411
|
+
await consumeStream(fileStream);
|
|
412
|
+
}
|
|
413
|
+
throw this.restoreReadError(error, resource, readFileOptions);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
restoreReadError(error, resource, options) {
|
|
417
|
+
const message = ( localizeWithPath(
|
|
418
|
+
'vs/platform/files/common/fileService',
|
|
419
|
+
'err.read',
|
|
420
|
+
"Unable to read file '{0}' ({1})",
|
|
421
|
+
this.resourceForError(resource),
|
|
422
|
+
( ensureFileSystemProviderError(error).toString())
|
|
423
|
+
));
|
|
424
|
+
if (error instanceof NotModifiedSinceFileOperationError) {
|
|
425
|
+
return ( new NotModifiedSinceFileOperationError(message, error.stat, options));
|
|
426
|
+
}
|
|
427
|
+
if (error instanceof TooLargeFileOperationError) {
|
|
428
|
+
return ( new TooLargeFileOperationError(message, error.fileOperationResult, error.size, error.options));
|
|
429
|
+
}
|
|
430
|
+
return ( new FileOperationError(message, toFileOperationResult(error), options));
|
|
431
|
+
}
|
|
432
|
+
readFileStreamed(provider, resource, token, options = Object.create(null)) {
|
|
433
|
+
const fileStream = provider.readFileStream(resource, options, token);
|
|
434
|
+
return transform(fileStream, {
|
|
435
|
+
data: data => data instanceof VSBuffer ? data : VSBuffer.wrap(data),
|
|
436
|
+
error: error => this.restoreReadError(error, resource, options)
|
|
437
|
+
}, data => VSBuffer.concat(data));
|
|
438
|
+
}
|
|
439
|
+
readFileBuffered(provider, resource, token, options = Object.create(null)) {
|
|
440
|
+
const stream = newWriteableBufferStream();
|
|
441
|
+
readFileIntoStream(provider, resource, stream, data => data, {
|
|
442
|
+
...options,
|
|
443
|
+
bufferSize: this.BUFFER_SIZE,
|
|
444
|
+
errorTransformer: error => this.restoreReadError(error, resource, options)
|
|
445
|
+
}, token);
|
|
446
|
+
return stream;
|
|
447
|
+
}
|
|
448
|
+
readFileUnbuffered(provider, resource, options) {
|
|
449
|
+
const stream = newWriteableStream(data => VSBuffer.concat(data));
|
|
450
|
+
(async () => {
|
|
451
|
+
try {
|
|
452
|
+
let buffer;
|
|
453
|
+
if (options?.atomic && hasFileAtomicReadCapability(provider)) {
|
|
454
|
+
buffer = await provider.readFile(resource, { atomic: true });
|
|
455
|
+
}
|
|
456
|
+
else {
|
|
457
|
+
buffer = await provider.readFile(resource);
|
|
458
|
+
}
|
|
459
|
+
if (typeof options?.position === 'number') {
|
|
460
|
+
buffer = buffer.slice(options.position);
|
|
461
|
+
}
|
|
462
|
+
if (typeof options?.length === 'number') {
|
|
463
|
+
buffer = buffer.slice(0, options.length);
|
|
464
|
+
}
|
|
465
|
+
this.validateReadFileLimits(resource, buffer.byteLength, options);
|
|
466
|
+
stream.end(VSBuffer.wrap(buffer));
|
|
467
|
+
}
|
|
468
|
+
catch (err) {
|
|
469
|
+
stream.error(err);
|
|
470
|
+
stream.end();
|
|
471
|
+
}
|
|
472
|
+
})();
|
|
473
|
+
return stream;
|
|
474
|
+
}
|
|
475
|
+
async validateReadFile(resource, options) {
|
|
476
|
+
const stat = await this.resolve(resource, { resolveMetadata: true });
|
|
477
|
+
if (stat.isDirectory) {
|
|
478
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'fileIsDirectoryReadError', "Unable to read file '{0}' that is actually a directory", this.resourceForError(resource)), 0 , options);
|
|
479
|
+
}
|
|
480
|
+
if (typeof options?.etag === 'string' && options.etag !== ETAG_DISABLED && options.etag === stat.etag) {
|
|
481
|
+
throw new NotModifiedSinceFileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'fileNotModifiedError', "File not modified since"), stat, options);
|
|
482
|
+
}
|
|
483
|
+
this.validateReadFileLimits(resource, stat.size, options);
|
|
484
|
+
return stat;
|
|
485
|
+
}
|
|
486
|
+
validateReadFileLimits(resource, size, options) {
|
|
487
|
+
if (typeof options?.limits?.size === 'number' && size > options.limits.size) {
|
|
488
|
+
throw new TooLargeFileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'fileTooLargeError', "Unable to read file '{0}' that is too large to open", this.resourceForError(resource)), 7 , size, options);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
async canMove(source, target, overwrite) {
|
|
492
|
+
return this.doCanMoveCopy(source, target, 'move', overwrite);
|
|
493
|
+
}
|
|
494
|
+
async canCopy(source, target, overwrite) {
|
|
495
|
+
return this.doCanMoveCopy(source, target, 'copy', overwrite);
|
|
496
|
+
}
|
|
497
|
+
async doCanMoveCopy(source, target, mode, overwrite) {
|
|
498
|
+
if (( source.toString()) !== ( target.toString())) {
|
|
499
|
+
try {
|
|
500
|
+
const sourceProvider = mode === 'move' ? this.throwIfFileSystemIsReadonly(await this.withWriteProvider(source), source) : await this.withReadProvider(source);
|
|
501
|
+
const targetProvider = this.throwIfFileSystemIsReadonly(await this.withWriteProvider(target), target);
|
|
502
|
+
await this.doValidateMoveCopy(sourceProvider, source, targetProvider, target, mode, overwrite);
|
|
503
|
+
}
|
|
504
|
+
catch (error) {
|
|
505
|
+
return error;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
return true;
|
|
509
|
+
}
|
|
510
|
+
async move(source, target, overwrite) {
|
|
511
|
+
const sourceProvider = this.throwIfFileSystemIsReadonly(await this.withWriteProvider(source), source);
|
|
512
|
+
const targetProvider = this.throwIfFileSystemIsReadonly(await this.withWriteProvider(target), target);
|
|
513
|
+
const mode = await this.doMoveCopy(sourceProvider, source, targetProvider, target, 'move', !!overwrite);
|
|
514
|
+
const fileStat = await this.resolve(target, { resolveMetadata: true });
|
|
515
|
+
this._onDidRunOperation.fire(( new FileOperationEvent(
|
|
516
|
+
source,
|
|
517
|
+
mode === 'move' ? 2 : 3 ,
|
|
518
|
+
fileStat
|
|
519
|
+
)));
|
|
520
|
+
return fileStat;
|
|
521
|
+
}
|
|
522
|
+
async copy(source, target, overwrite) {
|
|
523
|
+
const sourceProvider = await this.withReadProvider(source);
|
|
524
|
+
const targetProvider = this.throwIfFileSystemIsReadonly(await this.withWriteProvider(target), target);
|
|
525
|
+
const mode = await this.doMoveCopy(sourceProvider, source, targetProvider, target, 'copy', !!overwrite);
|
|
526
|
+
const fileStat = await this.resolve(target, { resolveMetadata: true });
|
|
527
|
+
this._onDidRunOperation.fire(( new FileOperationEvent(
|
|
528
|
+
source,
|
|
529
|
+
mode === 'copy' ? 3 : 2 ,
|
|
530
|
+
fileStat
|
|
531
|
+
)));
|
|
532
|
+
return fileStat;
|
|
533
|
+
}
|
|
534
|
+
async doMoveCopy(sourceProvider, source, targetProvider, target, mode, overwrite) {
|
|
535
|
+
if (( source.toString()) === ( target.toString())) {
|
|
536
|
+
return mode;
|
|
537
|
+
}
|
|
538
|
+
const { exists, isSameResourceWithDifferentPathCase } = await this.doValidateMoveCopy(sourceProvider, source, targetProvider, target, mode, overwrite);
|
|
539
|
+
if (exists && !isSameResourceWithDifferentPathCase && overwrite) {
|
|
540
|
+
await this.del(target, { recursive: true });
|
|
541
|
+
}
|
|
542
|
+
await this.mkdirp(targetProvider, this.getExtUri(targetProvider).providerExtUri.dirname(target));
|
|
543
|
+
if (mode === 'copy') {
|
|
544
|
+
if (sourceProvider === targetProvider && hasFileFolderCopyCapability(sourceProvider)) {
|
|
545
|
+
await sourceProvider.copy(source, target, { overwrite });
|
|
546
|
+
}
|
|
547
|
+
else {
|
|
548
|
+
const sourceFile = await this.resolve(source);
|
|
549
|
+
if (sourceFile.isDirectory) {
|
|
550
|
+
await this.doCopyFolder(sourceProvider, sourceFile, targetProvider, target);
|
|
551
|
+
}
|
|
552
|
+
else {
|
|
553
|
+
await this.doCopyFile(sourceProvider, source, targetProvider, target);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
return mode;
|
|
557
|
+
}
|
|
558
|
+
else {
|
|
559
|
+
if (sourceProvider === targetProvider) {
|
|
560
|
+
await sourceProvider.rename(source, target, { overwrite });
|
|
561
|
+
return mode;
|
|
562
|
+
}
|
|
563
|
+
else {
|
|
564
|
+
await this.doMoveCopy(sourceProvider, source, targetProvider, target, 'copy', overwrite);
|
|
565
|
+
await this.del(source, { recursive: true });
|
|
566
|
+
return 'copy';
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
async doCopyFile(sourceProvider, source, targetProvider, target) {
|
|
571
|
+
if (hasOpenReadWriteCloseCapability(sourceProvider) && hasOpenReadWriteCloseCapability(targetProvider)) {
|
|
572
|
+
return this.doPipeBuffered(sourceProvider, source, targetProvider, target);
|
|
573
|
+
}
|
|
574
|
+
if (hasOpenReadWriteCloseCapability(sourceProvider) && hasReadWriteCapability(targetProvider)) {
|
|
575
|
+
return this.doPipeBufferedToUnbuffered(sourceProvider, source, targetProvider, target);
|
|
576
|
+
}
|
|
577
|
+
if (hasReadWriteCapability(sourceProvider) && hasOpenReadWriteCloseCapability(targetProvider)) {
|
|
578
|
+
return this.doPipeUnbufferedToBuffered(sourceProvider, source, targetProvider, target);
|
|
579
|
+
}
|
|
580
|
+
if (hasReadWriteCapability(sourceProvider) && hasReadWriteCapability(targetProvider)) {
|
|
581
|
+
return this.doPipeUnbuffered(sourceProvider, source, targetProvider, target);
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
async doCopyFolder(sourceProvider, sourceFolder, targetProvider, targetFolder) {
|
|
585
|
+
await targetProvider.mkdir(targetFolder);
|
|
586
|
+
if (Array.isArray(sourceFolder.children)) {
|
|
587
|
+
await Promises.settled(( sourceFolder.children.map(async (sourceChild) => {
|
|
588
|
+
const targetChild = this.getExtUri(targetProvider).providerExtUri.joinPath(targetFolder, sourceChild.name);
|
|
589
|
+
if (sourceChild.isDirectory) {
|
|
590
|
+
return this.doCopyFolder(sourceProvider, await this.resolve(sourceChild.resource), targetProvider, targetChild);
|
|
591
|
+
}
|
|
592
|
+
else {
|
|
593
|
+
return this.doCopyFile(sourceProvider, sourceChild.resource, targetProvider, targetChild);
|
|
594
|
+
}
|
|
595
|
+
})));
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
async doValidateMoveCopy(sourceProvider, source, targetProvider, target, mode, overwrite) {
|
|
599
|
+
let isSameResourceWithDifferentPathCase = false;
|
|
600
|
+
if (sourceProvider === targetProvider) {
|
|
601
|
+
const { providerExtUri, isPathCaseSensitive } = this.getExtUri(sourceProvider);
|
|
602
|
+
if (!isPathCaseSensitive) {
|
|
603
|
+
isSameResourceWithDifferentPathCase = providerExtUri.isEqual(source, target);
|
|
604
|
+
}
|
|
605
|
+
if (isSameResourceWithDifferentPathCase && mode === 'copy') {
|
|
606
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'unableToMoveCopyError1', "Unable to copy when source '{0}' is same as target '{1}' with different path case on a case insensitive file system", this.resourceForError(source), this.resourceForError(target)));
|
|
607
|
+
}
|
|
608
|
+
if (!isSameResourceWithDifferentPathCase && providerExtUri.isEqualOrParent(target, source)) {
|
|
609
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'unableToMoveCopyError2', "Unable to move/copy when source '{0}' is parent of target '{1}'.", this.resourceForError(source), this.resourceForError(target)));
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
const exists = await this.exists(target);
|
|
613
|
+
if (exists && !isSameResourceWithDifferentPathCase) {
|
|
614
|
+
if (!overwrite) {
|
|
615
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'unableToMoveCopyError3', "Unable to move/copy '{0}' because target '{1}' already exists at destination.", this.resourceForError(source), this.resourceForError(target)), 4 );
|
|
616
|
+
}
|
|
617
|
+
if (sourceProvider === targetProvider) {
|
|
618
|
+
const { providerExtUri } = this.getExtUri(sourceProvider);
|
|
619
|
+
if (providerExtUri.isEqualOrParent(source, target)) {
|
|
620
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'unableToMoveCopyError4', "Unable to move/copy '{0}' into '{1}' since a file would replace the folder it is contained in.", this.resourceForError(source), this.resourceForError(target)));
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
return { exists, isSameResourceWithDifferentPathCase };
|
|
625
|
+
}
|
|
626
|
+
getExtUri(provider) {
|
|
627
|
+
const isPathCaseSensitive = this.isPathCaseSensitive(provider);
|
|
628
|
+
return {
|
|
629
|
+
providerExtUri: isPathCaseSensitive ? extUri : extUriIgnorePathCase,
|
|
630
|
+
isPathCaseSensitive
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
isPathCaseSensitive(provider) {
|
|
634
|
+
return !!((provider.capabilities & 1024) );
|
|
635
|
+
}
|
|
636
|
+
async createFolder(resource) {
|
|
637
|
+
const provider = this.throwIfFileSystemIsReadonly(await this.withProvider(resource), resource);
|
|
638
|
+
await this.mkdirp(provider, resource);
|
|
639
|
+
const fileStat = await this.resolve(resource, { resolveMetadata: true });
|
|
640
|
+
this._onDidRunOperation.fire(( new FileOperationEvent(resource, 0 , fileStat)));
|
|
641
|
+
return fileStat;
|
|
642
|
+
}
|
|
643
|
+
async mkdirp(provider, directory) {
|
|
644
|
+
const directoriesToCreate = [];
|
|
645
|
+
const { providerExtUri } = this.getExtUri(provider);
|
|
646
|
+
while (!providerExtUri.isEqual(directory, providerExtUri.dirname(directory))) {
|
|
647
|
+
try {
|
|
648
|
+
const stat = await provider.stat(directory);
|
|
649
|
+
if ((stat.type & FileType.Directory) === 0) {
|
|
650
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'mkdirExistsError', "Unable to create folder '{0}' that already exists but is not a directory", this.resourceForError(directory)));
|
|
651
|
+
}
|
|
652
|
+
break;
|
|
653
|
+
}
|
|
654
|
+
catch (error) {
|
|
655
|
+
if (toFileSystemProviderErrorCode(error) !== FileSystemProviderErrorCode.FileNotFound) {
|
|
656
|
+
throw error;
|
|
657
|
+
}
|
|
658
|
+
directoriesToCreate.push(providerExtUri.basename(directory));
|
|
659
|
+
directory = providerExtUri.dirname(directory);
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
for (let i = directoriesToCreate.length - 1; i >= 0; i--) {
|
|
663
|
+
directory = providerExtUri.joinPath(directory, directoriesToCreate[i]);
|
|
664
|
+
try {
|
|
665
|
+
await provider.mkdir(directory);
|
|
666
|
+
}
|
|
667
|
+
catch (error) {
|
|
668
|
+
if (toFileSystemProviderErrorCode(error) !== FileSystemProviderErrorCode.FileExists) {
|
|
669
|
+
throw error;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
async canDelete(resource, options) {
|
|
675
|
+
try {
|
|
676
|
+
await this.doValidateDelete(resource, options);
|
|
677
|
+
}
|
|
678
|
+
catch (error) {
|
|
679
|
+
return error;
|
|
680
|
+
}
|
|
681
|
+
return true;
|
|
682
|
+
}
|
|
683
|
+
async doValidateDelete(resource, options) {
|
|
684
|
+
const provider = this.throwIfFileSystemIsReadonly(await this.withProvider(resource), resource);
|
|
685
|
+
const useTrash = !!options?.useTrash;
|
|
686
|
+
if (useTrash && !((provider.capabilities & 4096) )) {
|
|
687
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'deleteFailedTrashUnsupported', "Unable to delete file '{0}' via trash because provider does not support it.", this.resourceForError(resource)));
|
|
688
|
+
}
|
|
689
|
+
const atomic = options?.atomic;
|
|
690
|
+
if (atomic && !((provider.capabilities & 65536) )) {
|
|
691
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'deleteFailedAtomicUnsupported', "Unable to delete file '{0}' atomically because provider does not support it.", this.resourceForError(resource)));
|
|
692
|
+
}
|
|
693
|
+
if (useTrash && atomic) {
|
|
694
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'deleteFailedTrashAndAtomicUnsupported', "Unable to atomically delete file '{0}' because using trash is enabled.", this.resourceForError(resource)));
|
|
695
|
+
}
|
|
696
|
+
let stat = undefined;
|
|
697
|
+
try {
|
|
698
|
+
stat = await provider.stat(resource);
|
|
699
|
+
}
|
|
700
|
+
catch (error) {
|
|
701
|
+
}
|
|
702
|
+
if (stat) {
|
|
703
|
+
this.throwIfFileIsReadonly(resource, stat);
|
|
704
|
+
}
|
|
705
|
+
else {
|
|
706
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'deleteFailedNotFound', "Unable to delete nonexistent file '{0}'", this.resourceForError(resource)), 1 );
|
|
707
|
+
}
|
|
708
|
+
const recursive = !!options?.recursive;
|
|
709
|
+
if (!recursive) {
|
|
710
|
+
const stat = await this.resolve(resource);
|
|
711
|
+
if (stat.isDirectory && Array.isArray(stat.children) && stat.children.length > 0) {
|
|
712
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'deleteFailedNonEmptyFolder', "Unable to delete non-empty folder '{0}'.", this.resourceForError(resource)));
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
return provider;
|
|
716
|
+
}
|
|
717
|
+
async del(resource, options) {
|
|
718
|
+
const provider = await this.doValidateDelete(resource, options);
|
|
719
|
+
let deleteFileOptions = options;
|
|
720
|
+
if (hasFileAtomicDeleteCapability(provider) && !deleteFileOptions?.atomic) {
|
|
721
|
+
const enforcedAtomicDelete = provider.enforceAtomicDelete?.(resource);
|
|
722
|
+
if (enforcedAtomicDelete) {
|
|
723
|
+
deleteFileOptions = { ...options, atomic: enforcedAtomicDelete };
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
const useTrash = !!deleteFileOptions?.useTrash;
|
|
727
|
+
const recursive = !!deleteFileOptions?.recursive;
|
|
728
|
+
const atomic = deleteFileOptions?.atomic ?? false;
|
|
729
|
+
await provider.delete(resource, { recursive, useTrash, atomic });
|
|
730
|
+
this._onDidRunOperation.fire(( new FileOperationEvent(resource, 1 )));
|
|
731
|
+
}
|
|
732
|
+
async cloneFile(source, target) {
|
|
733
|
+
const sourceProvider = await this.withProvider(source);
|
|
734
|
+
const targetProvider = this.throwIfFileSystemIsReadonly(await this.withWriteProvider(target), target);
|
|
735
|
+
if (sourceProvider === targetProvider && this.getExtUri(sourceProvider).providerExtUri.isEqual(source, target)) {
|
|
736
|
+
return;
|
|
737
|
+
}
|
|
738
|
+
if (sourceProvider === targetProvider && hasFileCloneCapability(sourceProvider)) {
|
|
739
|
+
return sourceProvider.cloneFile(source, target);
|
|
740
|
+
}
|
|
741
|
+
await this.mkdirp(targetProvider, this.getExtUri(targetProvider).providerExtUri.dirname(target));
|
|
742
|
+
if (sourceProvider === targetProvider && hasFileFolderCopyCapability(sourceProvider)) {
|
|
743
|
+
return this.writeQueue.queueFor(source, () => sourceProvider.copy(source, target, { overwrite: true }), this.getExtUri(sourceProvider).providerExtUri);
|
|
744
|
+
}
|
|
745
|
+
return this.writeQueue.queueFor(source, () => this.doCopyFile(sourceProvider, source, targetProvider, target), this.getExtUri(sourceProvider).providerExtUri);
|
|
746
|
+
}
|
|
747
|
+
static { this.WATCHER_CORRELATION_IDS = 0; }
|
|
748
|
+
createWatcher(resource, options) {
|
|
749
|
+
return this.watch(resource, {
|
|
750
|
+
...options,
|
|
751
|
+
correlationId: FileService_1.WATCHER_CORRELATION_IDS++
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
watch(resource, options = { recursive: false, excludes: [] }) {
|
|
755
|
+
const disposables = ( new DisposableStore());
|
|
756
|
+
let watchDisposed = false;
|
|
757
|
+
let disposeWatch = () => { watchDisposed = true; };
|
|
758
|
+
disposables.add(toDisposable(() => disposeWatch()));
|
|
759
|
+
(async () => {
|
|
760
|
+
try {
|
|
761
|
+
const disposable = await this.doWatch(resource, options);
|
|
762
|
+
if (watchDisposed) {
|
|
763
|
+
dispose(disposable);
|
|
764
|
+
}
|
|
765
|
+
else {
|
|
766
|
+
disposeWatch = () => dispose(disposable);
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
catch (error) {
|
|
770
|
+
this.logService.error(error);
|
|
771
|
+
}
|
|
772
|
+
})();
|
|
773
|
+
const correlationId = options.correlationId;
|
|
774
|
+
if (typeof correlationId === 'number') {
|
|
775
|
+
const fileChangeEmitter = disposables.add(( new Emitter()));
|
|
776
|
+
disposables.add(this.internalOnDidFilesChange.event(e => {
|
|
777
|
+
if (e.correlates(correlationId)) {
|
|
778
|
+
fileChangeEmitter.fire(e);
|
|
779
|
+
}
|
|
780
|
+
}));
|
|
781
|
+
const watcher = {
|
|
782
|
+
onDidChange: fileChangeEmitter.event,
|
|
783
|
+
dispose: () => disposables.dispose()
|
|
784
|
+
};
|
|
785
|
+
return watcher;
|
|
786
|
+
}
|
|
787
|
+
return disposables;
|
|
788
|
+
}
|
|
789
|
+
async doWatch(resource, options) {
|
|
790
|
+
const provider = await this.withProvider(resource);
|
|
791
|
+
const watchHash = hash([this.getExtUri(provider).providerExtUri.getComparisonKey(resource), options]);
|
|
792
|
+
let watcher = this.activeWatchers.get(watchHash);
|
|
793
|
+
if (!watcher) {
|
|
794
|
+
watcher = {
|
|
795
|
+
count: 0,
|
|
796
|
+
disposable: provider.watch(resource, options)
|
|
797
|
+
};
|
|
798
|
+
this.activeWatchers.set(watchHash, watcher);
|
|
799
|
+
}
|
|
800
|
+
watcher.count += 1;
|
|
801
|
+
return toDisposable(() => {
|
|
802
|
+
if (watcher) {
|
|
803
|
+
watcher.count--;
|
|
804
|
+
if (watcher.count === 0) {
|
|
805
|
+
dispose(watcher.disposable);
|
|
806
|
+
this.activeWatchers.delete(watchHash);
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
dispose() {
|
|
812
|
+
super.dispose();
|
|
813
|
+
for (const [, watcher] of this.activeWatchers) {
|
|
814
|
+
dispose(watcher.disposable);
|
|
815
|
+
}
|
|
816
|
+
this.activeWatchers.clear();
|
|
817
|
+
}
|
|
818
|
+
async doWriteBuffered(provider, resource, options, readableOrStreamOrBufferedStream) {
|
|
819
|
+
return this.writeQueue.queueFor(resource, async () => {
|
|
820
|
+
const handle = await provider.open(resource, { create: true, unlock: options?.unlock ?? false });
|
|
821
|
+
try {
|
|
822
|
+
if (isReadableStream(readableOrStreamOrBufferedStream) || isReadableBufferedStream(readableOrStreamOrBufferedStream)) {
|
|
823
|
+
await this.doWriteStreamBufferedQueued(provider, handle, readableOrStreamOrBufferedStream);
|
|
824
|
+
}
|
|
825
|
+
else {
|
|
826
|
+
await this.doWriteReadableBufferedQueued(provider, handle, readableOrStreamOrBufferedStream);
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
catch (error) {
|
|
830
|
+
throw ensureFileSystemProviderError(error);
|
|
831
|
+
}
|
|
832
|
+
finally {
|
|
833
|
+
await provider.close(handle);
|
|
834
|
+
}
|
|
835
|
+
}, this.getExtUri(provider).providerExtUri);
|
|
836
|
+
}
|
|
837
|
+
async doWriteStreamBufferedQueued(provider, handle, streamOrBufferedStream) {
|
|
838
|
+
let posInFile = 0;
|
|
839
|
+
let stream;
|
|
840
|
+
if (isReadableBufferedStream(streamOrBufferedStream)) {
|
|
841
|
+
if (streamOrBufferedStream.buffer.length > 0) {
|
|
842
|
+
const chunk = VSBuffer.concat(streamOrBufferedStream.buffer);
|
|
843
|
+
await this.doWriteBuffer(provider, handle, chunk, chunk.byteLength, posInFile, 0);
|
|
844
|
+
posInFile += chunk.byteLength;
|
|
845
|
+
}
|
|
846
|
+
if (streamOrBufferedStream.ended) {
|
|
847
|
+
return;
|
|
848
|
+
}
|
|
849
|
+
stream = streamOrBufferedStream.stream;
|
|
850
|
+
}
|
|
851
|
+
else {
|
|
852
|
+
stream = streamOrBufferedStream;
|
|
853
|
+
}
|
|
854
|
+
return ( new Promise((resolve, reject) => {
|
|
855
|
+
listenStream(stream, {
|
|
856
|
+
onData: async (chunk) => {
|
|
857
|
+
stream.pause();
|
|
858
|
+
try {
|
|
859
|
+
await this.doWriteBuffer(provider, handle, chunk, chunk.byteLength, posInFile, 0);
|
|
860
|
+
}
|
|
861
|
+
catch (error) {
|
|
862
|
+
return reject(error);
|
|
863
|
+
}
|
|
864
|
+
posInFile += chunk.byteLength;
|
|
865
|
+
setTimeout(() => stream.resume());
|
|
866
|
+
},
|
|
867
|
+
onError: error => reject(error),
|
|
868
|
+
onEnd: () => resolve()
|
|
869
|
+
});
|
|
870
|
+
}));
|
|
871
|
+
}
|
|
872
|
+
async doWriteReadableBufferedQueued(provider, handle, readable) {
|
|
873
|
+
let posInFile = 0;
|
|
874
|
+
let chunk;
|
|
875
|
+
while ((chunk = readable.read()) !== null) {
|
|
876
|
+
await this.doWriteBuffer(provider, handle, chunk, chunk.byteLength, posInFile, 0);
|
|
877
|
+
posInFile += chunk.byteLength;
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
async doWriteBuffer(provider, handle, buffer, length, posInFile, posInBuffer) {
|
|
881
|
+
let totalBytesWritten = 0;
|
|
882
|
+
while (totalBytesWritten < length) {
|
|
883
|
+
const bytesWritten = await provider.write(handle, posInFile + totalBytesWritten, buffer.buffer, posInBuffer + totalBytesWritten, length - totalBytesWritten);
|
|
884
|
+
totalBytesWritten += bytesWritten;
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
async doWriteUnbuffered(provider, resource, options, bufferOrReadableOrStreamOrBufferedStream) {
|
|
888
|
+
return this.writeQueue.queueFor(resource, () => this.doWriteUnbufferedQueued(provider, resource, options, bufferOrReadableOrStreamOrBufferedStream), this.getExtUri(provider).providerExtUri);
|
|
889
|
+
}
|
|
890
|
+
async doWriteUnbufferedQueued(provider, resource, options, bufferOrReadableOrStreamOrBufferedStream) {
|
|
891
|
+
let buffer;
|
|
892
|
+
if (bufferOrReadableOrStreamOrBufferedStream instanceof VSBuffer) {
|
|
893
|
+
buffer = bufferOrReadableOrStreamOrBufferedStream;
|
|
894
|
+
}
|
|
895
|
+
else if (isReadableStream(bufferOrReadableOrStreamOrBufferedStream)) {
|
|
896
|
+
buffer = await streamToBuffer(bufferOrReadableOrStreamOrBufferedStream);
|
|
897
|
+
}
|
|
898
|
+
else if (isReadableBufferedStream(bufferOrReadableOrStreamOrBufferedStream)) {
|
|
899
|
+
buffer = await bufferedStreamToBuffer(bufferOrReadableOrStreamOrBufferedStream);
|
|
900
|
+
}
|
|
901
|
+
else {
|
|
902
|
+
buffer = readableToBuffer(bufferOrReadableOrStreamOrBufferedStream);
|
|
903
|
+
}
|
|
904
|
+
await provider.writeFile(resource, buffer.buffer, { create: true, overwrite: true, unlock: options?.unlock ?? false, atomic: options?.atomic ?? false });
|
|
905
|
+
}
|
|
906
|
+
async doPipeBuffered(sourceProvider, source, targetProvider, target) {
|
|
907
|
+
return this.writeQueue.queueFor(target, () => this.doPipeBufferedQueued(sourceProvider, source, targetProvider, target), this.getExtUri(targetProvider).providerExtUri);
|
|
908
|
+
}
|
|
909
|
+
async doPipeBufferedQueued(sourceProvider, source, targetProvider, target) {
|
|
910
|
+
let sourceHandle = undefined;
|
|
911
|
+
let targetHandle = undefined;
|
|
912
|
+
try {
|
|
913
|
+
sourceHandle = await sourceProvider.open(source, { create: false });
|
|
914
|
+
targetHandle = await targetProvider.open(target, { create: true, unlock: false });
|
|
915
|
+
const buffer = VSBuffer.alloc(this.BUFFER_SIZE);
|
|
916
|
+
let posInFile = 0;
|
|
917
|
+
let posInBuffer = 0;
|
|
918
|
+
let bytesRead = 0;
|
|
919
|
+
do {
|
|
920
|
+
bytesRead = await sourceProvider.read(sourceHandle, posInFile, buffer.buffer, posInBuffer, buffer.byteLength - posInBuffer);
|
|
921
|
+
await this.doWriteBuffer(targetProvider, targetHandle, buffer, bytesRead, posInFile, posInBuffer);
|
|
922
|
+
posInFile += bytesRead;
|
|
923
|
+
posInBuffer += bytesRead;
|
|
924
|
+
if (posInBuffer === buffer.byteLength) {
|
|
925
|
+
posInBuffer = 0;
|
|
926
|
+
}
|
|
927
|
+
} while (bytesRead > 0);
|
|
928
|
+
}
|
|
929
|
+
catch (error) {
|
|
930
|
+
throw ensureFileSystemProviderError(error);
|
|
931
|
+
}
|
|
932
|
+
finally {
|
|
933
|
+
await Promises.settled([
|
|
934
|
+
typeof sourceHandle === 'number' ? sourceProvider.close(sourceHandle) : Promise.resolve(),
|
|
935
|
+
typeof targetHandle === 'number' ? targetProvider.close(targetHandle) : Promise.resolve(),
|
|
936
|
+
]);
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
async doPipeUnbuffered(sourceProvider, source, targetProvider, target) {
|
|
940
|
+
return this.writeQueue.queueFor(target, () => this.doPipeUnbufferedQueued(sourceProvider, source, targetProvider, target), this.getExtUri(targetProvider).providerExtUri);
|
|
941
|
+
}
|
|
942
|
+
async doPipeUnbufferedQueued(sourceProvider, source, targetProvider, target) {
|
|
943
|
+
return targetProvider.writeFile(target, await sourceProvider.readFile(source), { create: true, overwrite: true, unlock: false, atomic: false });
|
|
944
|
+
}
|
|
945
|
+
async doPipeUnbufferedToBuffered(sourceProvider, source, targetProvider, target) {
|
|
946
|
+
return this.writeQueue.queueFor(target, () => this.doPipeUnbufferedToBufferedQueued(sourceProvider, source, targetProvider, target), this.getExtUri(targetProvider).providerExtUri);
|
|
947
|
+
}
|
|
948
|
+
async doPipeUnbufferedToBufferedQueued(sourceProvider, source, targetProvider, target) {
|
|
949
|
+
const targetHandle = await targetProvider.open(target, { create: true, unlock: false });
|
|
950
|
+
try {
|
|
951
|
+
const buffer = await sourceProvider.readFile(source);
|
|
952
|
+
await this.doWriteBuffer(targetProvider, targetHandle, VSBuffer.wrap(buffer), buffer.byteLength, 0, 0);
|
|
953
|
+
}
|
|
954
|
+
catch (error) {
|
|
955
|
+
throw ensureFileSystemProviderError(error);
|
|
956
|
+
}
|
|
957
|
+
finally {
|
|
958
|
+
await targetProvider.close(targetHandle);
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
async doPipeBufferedToUnbuffered(sourceProvider, source, targetProvider, target) {
|
|
962
|
+
const buffer = await streamToBuffer(this.readFileBuffered(sourceProvider, source, CancellationToken.None));
|
|
963
|
+
await this.doWriteUnbuffered(targetProvider, target, undefined, buffer);
|
|
964
|
+
}
|
|
965
|
+
throwIfFileSystemIsReadonly(provider, resource) {
|
|
966
|
+
if (provider.capabilities & 2048 ) {
|
|
967
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'err.readonly', "Unable to modify read-only file '{0}'", this.resourceForError(resource)), 6 );
|
|
968
|
+
}
|
|
969
|
+
return provider;
|
|
970
|
+
}
|
|
971
|
+
throwIfFileIsReadonly(resource, stat) {
|
|
972
|
+
if ((stat.permissions ?? 0) & FilePermission.Readonly) {
|
|
973
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'err.readonly', "Unable to modify read-only file '{0}'", this.resourceForError(resource)), 6 );
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
resourceForError(resource) {
|
|
977
|
+
if (resource.scheme === Schemas.file) {
|
|
978
|
+
return resource.fsPath;
|
|
979
|
+
}
|
|
980
|
+
return ( resource.toString(true));
|
|
981
|
+
}
|
|
982
|
+
};
|
|
983
|
+
FileService = FileService_1 = ( __decorate([
|
|
984
|
+
( __param(0, ILogService))
|
|
985
|
+
], FileService));
|
|
986
|
+
export { FileService };
|