@codingame/monaco-vscode-api 1.83.7 → 1.83.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extensions.js +5 -5
- package/lifecycle.js +23 -4
- package/missing-services.js +187 -24
- package/monaco-editor-treemending.patch +955 -955
- package/monaco.d.ts +7 -2
- package/monaco.js +12 -1
- package/package.json +15 -2
- package/service-override/tools/editor.d.ts +1 -1
- package/services.d.ts +4 -5
- package/services.js +31 -28
- package/vscode/src/vs/base/common/uriIpc.js +22 -1
- package/vscode/src/vs/base/parts/request/common/request.js +7 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +116 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +117 -2
- package/vscode/src/vs/platform/extensionRecommendations/common/extensionRecommendations.js +10 -0
- package/vscode/src/vs/platform/extensionResourceLoader/browser/extensionResourceLoaderService.js +42 -0
- package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +12 -1
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +306 -1
- package/vscode/src/vs/platform/log/common/log.d.ts +27 -2
- package/vscode/src/vs/platform/remote/common/remoteAgentConnection.d.ts +9 -1
- package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.js +2 -1
- package/vscode/src/vs/platform/request/common/request.js +38 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +2 -1
- package/vscode/src/vs/platform/tunnel/common/tunnel.d.ts +50 -1
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfileIpc.js +63 -0
- package/vscode/src/vs/platform/userDataSync/common/ignoredExtensions.js +65 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +2 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncAccount.js +3 -0
- package/vscode/src/vs/platform/workspace/common/workspace.d.ts +16 -1
- package/vscode/src/vs/platform/workspaces/common/workspaces.d.ts +6 -2
- package/vscode/src/vs/workbench/api/worker/extensionHostWorker.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +6 -3
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +7 -2
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +56 -2
- package/vscode/src/vs/workbench/common/editor.d.ts +17 -1
- package/vscode/src/vs/workbench/common/theme.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +248 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +3291 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +16 -16
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +45 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +67 -0
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +396 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +23 -3
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +4 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.js +4 -0
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +255 -0
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +44 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +2 -1
- package/vscode/src/vs/workbench/services/localization/common/locale.js +4 -0
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +2 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +68 -0
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.d.ts +172 -1
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +53 -2
- package/vscode/src/vs/workbench/services/userDataProfile/common/remoteUserDataProfiles.js +150 -0
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +3 -1
- package/vscode/src/vs/workbench/services/workspaces/browser/workspaces.js +7 -1
- package/vscode.proposed.d.ts +4787 -0
- package/workbench.js +37 -0
- package/service-override/bulkEdit.js +0 -9
- package/service-override/environment.js +0 -21
- package/service-override/extensions.js +0 -465
- package/service-override/files.js +0 -447
- package/service-override/keybindings.js +0 -93
- package/service-override/layout.js +0 -230
- package/service-override/output.js +0 -21
- package/service-override/quickaccess.js +0 -98
- package/vscode/src/vs/base/common/console.js +0 -58
- package/vscode/src/vs/base/common/keybindingParser.js +0 -87
- package/vscode/src/vs/base/common/prefixTree.js +0 -130
- package/vscode/src/vs/base/common/tfIdf.js +0 -137
- package/vscode/src/vs/editor/contrib/quickAccess/browser/commandsQuickAccess.js +0 -23
- package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js +0 -404
- package/vscode/src/vs/platform/files/common/fileService.js +0 -957
- package/vscode/src/vs/platform/files/common/files.js +0 -81
- package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.js +0 -220
- package/vscode/src/vs/platform/files/common/io.js +0 -75
- package/vscode/src/vs/platform/files/common/watcher.js +0 -69
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +0 -48
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardMapper.js +0 -23
- package/vscode/src/vs/platform/lifecycle/common/lifecycle.js +0 -25
- package/vscode/src/vs/platform/log/common/fileLog.js +0 -105
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +0 -331
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +0 -65
- package/vscode/src/vs/platform/remote/common/managedSocket.js +0 -96
- package/vscode/src/vs/workbench/api/browser/mainThreadAiEmbeddingVector.js +0 -29
- package/vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.js +0 -33
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +0 -328
- package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.js +0 -66
- package/vscode/src/vs/workbench/api/browser/mainThreadChat.js +0 -172
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents.js +0 -50
- package/vscode/src/vs/workbench/api/browser/mainThreadChatProvider.js +0 -59
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSlashCommands.js +0 -47
- package/vscode/src/vs/workbench/api/browser/mainThreadChatVariables.js +0 -29
- package/vscode/src/vs/workbench/api/browser/mainThreadClipboard.js +0 -22
- package/vscode/src/vs/workbench/api/browser/mainThreadCodeInsets.js +0 -105
- package/vscode/src/vs/workbench/api/browser/mainThreadCommands.js +0 -92
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +0 -539
- package/vscode/src/vs/workbench/api/browser/mainThreadConfiguration.js +0 -78
- package/vscode/src/vs/workbench/api/browser/mainThreadConsole.js +0 -33
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +0 -576
- package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.js +0 -385
- package/vscode/src/vs/workbench/api/browser/mainThreadDecorations.js +0 -100
- package/vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.js +0 -67
- package/vscode/src/vs/workbench/api/browser/mainThreadDialogs.js +0 -66
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentContentProviders.js +0 -73
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +0 -247
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +0 -368
- package/vscode/src/vs/workbench/api/browser/mainThreadDownloadService.js +0 -20
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +0 -39
- package/vscode/src/vs/workbench/api/browser/mainThreadEditor.js +0 -409
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +0 -473
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +0 -225
- package/vscode/src/vs/workbench/api/browser/mainThreadErrors.js +0 -22
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +0 -315
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.js +0 -278
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +0 -281
- package/vscode/src/vs/workbench/api/browser/mainThreadInlineChat.js +0 -66
- package/vscode/src/vs/workbench/api/browser/mainThreadInteractive.js +0 -26
- package/vscode/src/vs/workbench/api/browser/mainThreadIssueReporter.js +0 -31
- package/vscode/src/vs/workbench/api/browser/mainThreadLabelService.js +0 -25
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +0 -945
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguages.js +0 -76
- package/vscode/src/vs/workbench/api/browser/mainThreadLocalization.js +0 -33
- package/vscode/src/vs/workbench/api/browser/mainThreadLogService.js +0 -76
- package/vscode/src/vs/workbench/api/browser/mainThreadManagedSockets.js +0 -91
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +0 -116
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +0 -156
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.js +0 -121
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +0 -186
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDto.js +0 -127
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +0 -129
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +0 -339
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.js +0 -23
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +0 -46
- package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.js +0 -74
- package/vscode/src/vs/workbench/api/browser/mainThreadProfilContentHandlers.js +0 -36
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +0 -66
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickDiff.js +0 -47
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickOpen.js +0 -183
- package/vscode/src/vs/workbench/api/browser/mainThreadRemoteConnectionData.js +0 -28
- package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +0 -461
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +0 -47
- package/vscode/src/vs/workbench/api/browser/mainThreadSearch.js +0 -146
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.js +0 -68
- package/vscode/src/vs/workbench/api/browser/mainThreadShare.js +0 -48
- package/vscode/src/vs/workbench/api/browser/mainThreadStatusBar.js +0 -51
- package/vscode/src/vs/workbench/api/browser/mainThreadStorage.js +0 -70
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +0 -729
- package/vscode/src/vs/workbench/api/browser/mainThreadTelemetry.js +0 -51
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +0 -410
- package/vscode/src/vs/workbench/api/browser/mainThreadTesting.js +0 -180
- package/vscode/src/vs/workbench/api/browser/mainThreadTheming.js +0 -22
- package/vscode/src/vs/workbench/api/browser/mainThreadTimeline.js +0 -53
- package/vscode/src/vs/workbench/api/browser/mainThreadTreeViews.js +0 -311
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +0 -221
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +0 -108
- package/vscode/src/vs/workbench/api/browser/mainThreadUrls.js +0 -59
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewManager.js +0 -27
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.js +0 -281
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewViews.js +0 -98
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +0 -133
- package/vscode/src/vs/workbench/api/browser/mainThreadWindow.js +0 -55
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +0 -271
- package/vscode/src/vs/workbench/api/common/shared/dataTransferCache.js +0 -33
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +0 -230
- package/vscode/src/vs/workbench/browser/contextkeys.js +0 -249
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +0 -358
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.js +0 -362
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.js +0 -265
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +0 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +0 -215
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +0 -86
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +0 -55
- package/vscode/src/vs/workbench/contrib/comments/browser/commentFormActions.js +0 -49
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +0 -90
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +0 -646
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +0 -295
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.js +0 -60
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +0 -247
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +0 -107
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadRangeDecorator.js +0 -107
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +0 -329
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +0 -378
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.js +0 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +0 -1194
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsFilterOptions.js +0 -17
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +0 -332
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +0 -541
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +0 -176
- package/vscode/src/vs/workbench/contrib/comments/browser/media/panel.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +0 -99
- package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +0 -55
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +0 -143
- package/vscode/src/vs/workbench/contrib/comments/common/commentsConfiguration.js +0 -2
- package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +0 -71
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/contributedOpeners.js +0 -81
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +0 -177
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.js +0 -3
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +0 -28
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +0 -142
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +0 -480
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +0 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +0 -83
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/editing.js +0 -54
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +0 -108
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +0 -258
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +0 -614
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +0 -307
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +0 -36
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +0 -165
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/telemetry.js +0 -78
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +0 -68
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +0 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +0 -106
- package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +0 -487
- package/vscode/src/vs/workbench/contrib/output/browser/outputLinkProvider.js +0 -76
- package/vscode/src/vs/workbench/contrib/output/browser/outputServices.js +0 -166
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +0 -234
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +0 -287
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +0 -167
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +0 -263
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +0 -504
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy.js +0 -130
- package/vscode/src/vs/workbench/contrib/testing/common/getComputedState.js +0 -101
- package/vscode/src/vs/workbench/contrib/testing/common/observableValue.js +0 -26
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +0 -23
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +0 -334
- package/vscode/src/vs/workbench/contrib/testing/common/testingStates.js +0 -45
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +0 -1286
- package/vscode/src/vs/workbench/services/commands/common/commandService.js +0 -77
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +0 -141
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +0 -271
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerFileSystemProvider.js +0 -50
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +0 -1091
- package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.js +0 -40
- package/vscode/src/vs/workbench/services/extensions/common/extensionDevOptions.js +0 -23
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +0 -641
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js +0 -272
- package/vscode/src/vs/workbench/services/extensions/common/extensionStorageMigration.js +0 -56
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +0 -78
- package/vscode/src/vs/workbench/services/extensions/common/remoteConsoleUtil.js +0 -47
- package/vscode/src/vs/workbench/services/extensions/common/remoteExtensionHost.js +0 -218
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +0 -917
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +0 -498
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/_.contribution.js +0 -13
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/cz.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de-swiss.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de.linux.js +0 -180
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/de.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/dk.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/dvorak.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-belgian.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-ext.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-in.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-intl.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-intl.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-uk.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en-uk.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en.darwin.js +0 -133
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en.linux.js +0 -182
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/en.win.js +0 -167
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es-latin.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es.linux.js +0 -180
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/es.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.linux.js +0 -180
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/hu.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/it.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/it.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/jp-roman.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/jp.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ko.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.darwin.js +0 -17
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.linux.js +0 -6
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.win.js +0 -23
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/no.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pl.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pl.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pt-br.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pt.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/pt.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.linux.js +0 -180
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/sv.win.js +0 -164
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/thai.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/tr.win.js +0 -162
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/zh-hans.darwin.js +0 -125
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingIO.js +0 -72
- package/vscode/src/vs/workbench/services/keybinding/common/keymapInfo.js +0 -108
- package/vscode/src/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.js +0 -886
- package/vscode/src/vs/workbench/services/keybinding/common/windowsKeyboardMapper.js +0 -350
- package/vscode/src/vs/workbench/services/quickinput/browser/quickInputService.js +0 -67
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +0 -4
- package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.js +0 -77
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
|
|
3
|
-
import { ExtHostContext, MainContext } from '../common/extHost.protocol.js';
|
|
4
|
-
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
5
|
-
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
6
|
-
function reviveIconPathUris(iconPath) {
|
|
7
|
-
iconPath.dark = URI.revive(iconPath.dark);
|
|
8
|
-
if (iconPath.light) {
|
|
9
|
-
iconPath.light = URI.revive(iconPath.light);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
let MainThreadQuickOpen = class MainThreadQuickOpen {
|
|
13
|
-
constructor(extHostContext, quickInputService) {
|
|
14
|
-
this._items = {};
|
|
15
|
-
this.sessions = ( new Map());
|
|
16
|
-
this._proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostQuickOpen));
|
|
17
|
-
this._quickInputService = quickInputService;
|
|
18
|
-
}
|
|
19
|
-
dispose() {
|
|
20
|
-
}
|
|
21
|
-
$show(instance, options, token) {
|
|
22
|
-
const contents = ( new Promise((resolve, reject) => {
|
|
23
|
-
this._items[instance] = { resolve, reject };
|
|
24
|
-
}));
|
|
25
|
-
options = {
|
|
26
|
-
...options,
|
|
27
|
-
onDidFocus: el => {
|
|
28
|
-
if (el) {
|
|
29
|
-
this._proxy.$onItemSelected(el.handle);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
if (options.canPickMany) {
|
|
34
|
-
return this._quickInputService.pick(contents, options, token).then(items => {
|
|
35
|
-
if (items) {
|
|
36
|
-
return ( items.map(item => item.handle));
|
|
37
|
-
}
|
|
38
|
-
return undefined;
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
return this._quickInputService.pick(contents, options, token).then(item => {
|
|
43
|
-
if (item) {
|
|
44
|
-
return item.handle;
|
|
45
|
-
}
|
|
46
|
-
return undefined;
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
$setItems(instance, items) {
|
|
51
|
-
if (this._items[instance]) {
|
|
52
|
-
this._items[instance].resolve(items);
|
|
53
|
-
delete this._items[instance];
|
|
54
|
-
}
|
|
55
|
-
return Promise.resolve();
|
|
56
|
-
}
|
|
57
|
-
$setError(instance, error) {
|
|
58
|
-
if (this._items[instance]) {
|
|
59
|
-
this._items[instance].reject(error);
|
|
60
|
-
delete this._items[instance];
|
|
61
|
-
}
|
|
62
|
-
return Promise.resolve();
|
|
63
|
-
}
|
|
64
|
-
$input(options, validateInput, token) {
|
|
65
|
-
const inputOptions = Object.create(null);
|
|
66
|
-
if (options) {
|
|
67
|
-
inputOptions.title = options.title;
|
|
68
|
-
inputOptions.password = options.password;
|
|
69
|
-
inputOptions.placeHolder = options.placeHolder;
|
|
70
|
-
inputOptions.valueSelection = options.valueSelection;
|
|
71
|
-
inputOptions.prompt = options.prompt;
|
|
72
|
-
inputOptions.value = options.value;
|
|
73
|
-
inputOptions.ignoreFocusLost = options.ignoreFocusOut;
|
|
74
|
-
}
|
|
75
|
-
if (validateInput) {
|
|
76
|
-
inputOptions.validateInput = (value) => {
|
|
77
|
-
return this._proxy.$validateInput(value);
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
return this._quickInputService.input(inputOptions, token);
|
|
81
|
-
}
|
|
82
|
-
$createOrUpdate(params) {
|
|
83
|
-
const sessionId = params.id;
|
|
84
|
-
let session = this.sessions.get(sessionId);
|
|
85
|
-
if (!session) {
|
|
86
|
-
const input = params.type === 'quickPick' ? this._quickInputService.createQuickPick() : this._quickInputService.createInputBox();
|
|
87
|
-
input.onDidAccept(() => {
|
|
88
|
-
this._proxy.$onDidAccept(sessionId);
|
|
89
|
-
});
|
|
90
|
-
input.onDidTriggerButton(button => {
|
|
91
|
-
this._proxy.$onDidTriggerButton(sessionId, button.handle);
|
|
92
|
-
});
|
|
93
|
-
input.onDidChangeValue(value => {
|
|
94
|
-
this._proxy.$onDidChangeValue(sessionId, value);
|
|
95
|
-
});
|
|
96
|
-
input.onDidHide(() => {
|
|
97
|
-
this._proxy.$onDidHide(sessionId);
|
|
98
|
-
});
|
|
99
|
-
if (params.type === 'quickPick') {
|
|
100
|
-
const quickpick = input;
|
|
101
|
-
quickpick.onDidChangeActive(items => {
|
|
102
|
-
this._proxy.$onDidChangeActive(sessionId, ( items.map(item => item.handle)));
|
|
103
|
-
});
|
|
104
|
-
quickpick.onDidChangeSelection(items => {
|
|
105
|
-
this._proxy.$onDidChangeSelection(sessionId, ( items.map(item => item.handle)));
|
|
106
|
-
});
|
|
107
|
-
quickpick.onDidTriggerItemButton((e) => {
|
|
108
|
-
this._proxy.$onDidTriggerItemButton(sessionId, e.item.handle, e.button.handle);
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
session = {
|
|
112
|
-
input,
|
|
113
|
-
handlesToItems: ( new Map())
|
|
114
|
-
};
|
|
115
|
-
this.sessions.set(sessionId, session);
|
|
116
|
-
}
|
|
117
|
-
const { input, handlesToItems } = session;
|
|
118
|
-
for (const param in params) {
|
|
119
|
-
if (param === 'id' || param === 'type') {
|
|
120
|
-
continue;
|
|
121
|
-
}
|
|
122
|
-
if (param === 'visible') {
|
|
123
|
-
if (params.visible) {
|
|
124
|
-
input.show();
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
input.hide();
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
else if (param === 'items') {
|
|
131
|
-
handlesToItems.clear();
|
|
132
|
-
params[param].forEach((item) => {
|
|
133
|
-
if (item.type === 'separator') {
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
if (item.buttons) {
|
|
137
|
-
item.buttons = ( item.buttons.map((button) => {
|
|
138
|
-
if (button.iconPath) {
|
|
139
|
-
reviveIconPathUris(button.iconPath);
|
|
140
|
-
}
|
|
141
|
-
return button;
|
|
142
|
-
}));
|
|
143
|
-
}
|
|
144
|
-
handlesToItems.set(item.handle, item);
|
|
145
|
-
});
|
|
146
|
-
input[param] = params[param];
|
|
147
|
-
}
|
|
148
|
-
else if (param === 'activeItems' || param === 'selectedItems') {
|
|
149
|
-
input[param] = ( params[param]
|
|
150
|
-
.filter((handle) => ( handlesToItems.has(handle)))
|
|
151
|
-
.map((handle) => handlesToItems.get(handle)));
|
|
152
|
-
}
|
|
153
|
-
else if (param === 'buttons') {
|
|
154
|
-
input[param] = ( params.buttons.map(button => {
|
|
155
|
-
if (button.handle === -1) {
|
|
156
|
-
return this._quickInputService.backButton;
|
|
157
|
-
}
|
|
158
|
-
if (button.iconPath) {
|
|
159
|
-
reviveIconPathUris(button.iconPath);
|
|
160
|
-
}
|
|
161
|
-
return button;
|
|
162
|
-
}));
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
165
|
-
input[param] = params[param];
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
return Promise.resolve(undefined);
|
|
169
|
-
}
|
|
170
|
-
$dispose(sessionId) {
|
|
171
|
-
const session = this.sessions.get(sessionId);
|
|
172
|
-
if (session) {
|
|
173
|
-
session.input.dispose();
|
|
174
|
-
this.sessions.delete(sessionId);
|
|
175
|
-
}
|
|
176
|
-
return Promise.resolve(undefined);
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
MainThreadQuickOpen = __decorate([
|
|
180
|
-
extHostNamedCustomer(MainContext.MainThreadQuickOpen),
|
|
181
|
-
( __param(1, IQuickInputService))
|
|
182
|
-
], MainThreadQuickOpen);
|
|
183
|
-
export { MainThreadQuickOpen };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { extHostCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
3
|
-
import { ExtHostContext } from '../common/extHost.protocol.js';
|
|
4
|
-
import { IRemoteAuthorityResolverService } from '../../../platform/remote/common/remoteAuthorityResolver.js';
|
|
5
|
-
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
6
|
-
import { IWorkbenchEnvironmentService } from '../../services/environment/common/environmentService.js';
|
|
7
|
-
let MainThreadRemoteConnectionData = class MainThreadRemoteConnectionData extends Disposable {
|
|
8
|
-
constructor(extHostContext, _environmentService, remoteAuthorityResolverService) {
|
|
9
|
-
super();
|
|
10
|
-
this._environmentService = _environmentService;
|
|
11
|
-
this._proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostExtensionService));
|
|
12
|
-
const remoteAuthority = this._environmentService.remoteAuthority;
|
|
13
|
-
if (remoteAuthority) {
|
|
14
|
-
this._register(remoteAuthorityResolverService.onDidChangeConnectionData(() => {
|
|
15
|
-
const connectionData = remoteAuthorityResolverService.getConnectionData(remoteAuthority);
|
|
16
|
-
if (connectionData) {
|
|
17
|
-
this._proxy.$updateRemoteConnectionData(connectionData);
|
|
18
|
-
}
|
|
19
|
-
}));
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
MainThreadRemoteConnectionData = __decorate([
|
|
24
|
-
extHostCustomer,
|
|
25
|
-
( __param(1, IWorkbenchEnvironmentService)),
|
|
26
|
-
( __param(2, IRemoteAuthorityResolverService))
|
|
27
|
-
], MainThreadRemoteConnectionData);
|
|
28
|
-
export { MainThreadRemoteConnectionData };
|
|
@@ -1,461 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
3
|
-
import { Emitter, Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
4
|
-
import { DisposableStore, dispose, combinedDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
5
|
-
import { ISCMService, ISCMViewService } from '../../contrib/scm/common/scm.js';
|
|
6
|
-
import { ExtHostContext, MainContext } from '../common/extHost.protocol.js';
|
|
7
|
-
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
8
|
-
import { Sequence } from 'monaco-editor/esm/vs/base/common/sequence.js';
|
|
9
|
-
import { CancellationToken } from 'monaco-editor/esm/vs/base/common/cancellation.js';
|
|
10
|
-
import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
11
|
-
import { IQuickDiffService } from '../../contrib/scm/common/quickDiff.js';
|
|
12
|
-
function getSCMHistoryItemIcon(historyItem) {
|
|
13
|
-
if (!historyItem.icon) {
|
|
14
|
-
return undefined;
|
|
15
|
-
}
|
|
16
|
-
else if (URI.isUri(historyItem.icon)) {
|
|
17
|
-
return URI.revive(historyItem.icon);
|
|
18
|
-
}
|
|
19
|
-
else if (ThemeIcon.isThemeIcon(historyItem.icon)) {
|
|
20
|
-
return historyItem.icon;
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
const icon = historyItem.icon;
|
|
24
|
-
return { light: URI.revive(icon.light), dark: URI.revive(icon.dark) };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
class MainThreadSCMResourceGroup {
|
|
28
|
-
get hideWhenEmpty() { return !!this.features.hideWhenEmpty; }
|
|
29
|
-
constructor(sourceControlHandle, handle, provider, features, label, id) {
|
|
30
|
-
this.sourceControlHandle = sourceControlHandle;
|
|
31
|
-
this.handle = handle;
|
|
32
|
-
this.provider = provider;
|
|
33
|
-
this.features = features;
|
|
34
|
-
this.label = label;
|
|
35
|
-
this.id = id;
|
|
36
|
-
this.elements = [];
|
|
37
|
-
this._onDidSplice = ( new Emitter());
|
|
38
|
-
this.onDidSplice = this._onDidSplice.event;
|
|
39
|
-
this._onDidChange = ( new Emitter());
|
|
40
|
-
this.onDidChange = this._onDidChange.event;
|
|
41
|
-
}
|
|
42
|
-
toJSON() {
|
|
43
|
-
return {
|
|
44
|
-
$mid: 4 ,
|
|
45
|
-
sourceControlHandle: this.sourceControlHandle,
|
|
46
|
-
groupHandle: this.handle
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
splice(start, deleteCount, toInsert) {
|
|
50
|
-
this.elements.splice(start, deleteCount, ...toInsert);
|
|
51
|
-
this._onDidSplice.fire({ start, deleteCount, toInsert });
|
|
52
|
-
}
|
|
53
|
-
$updateGroup(features) {
|
|
54
|
-
this.features = { ...this.features, ...features };
|
|
55
|
-
this._onDidChange.fire();
|
|
56
|
-
}
|
|
57
|
-
$updateGroupLabel(label) {
|
|
58
|
-
this.label = label;
|
|
59
|
-
this._onDidChange.fire();
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
class MainThreadSCMResource {
|
|
63
|
-
constructor(proxy, sourceControlHandle, groupHandle, handle, sourceUri, resourceGroup, decorations, contextValue, command) {
|
|
64
|
-
this.proxy = proxy;
|
|
65
|
-
this.sourceControlHandle = sourceControlHandle;
|
|
66
|
-
this.groupHandle = groupHandle;
|
|
67
|
-
this.handle = handle;
|
|
68
|
-
this.sourceUri = sourceUri;
|
|
69
|
-
this.resourceGroup = resourceGroup;
|
|
70
|
-
this.decorations = decorations;
|
|
71
|
-
this.contextValue = contextValue;
|
|
72
|
-
this.command = command;
|
|
73
|
-
}
|
|
74
|
-
open(preserveFocus) {
|
|
75
|
-
return this.proxy.$executeResourceCommand(this.sourceControlHandle, this.groupHandle, this.handle, preserveFocus);
|
|
76
|
-
}
|
|
77
|
-
toJSON() {
|
|
78
|
-
return {
|
|
79
|
-
$mid: 3 ,
|
|
80
|
-
sourceControlHandle: this.sourceControlHandle,
|
|
81
|
-
groupHandle: this.groupHandle,
|
|
82
|
-
handle: this.handle
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
class MainThreadSCMHistoryProvider {
|
|
87
|
-
get actionButton() { return this._actionButton; }
|
|
88
|
-
set actionButton(actionButton) {
|
|
89
|
-
this._actionButton = actionButton;
|
|
90
|
-
this._onDidChangeActionButton.fire();
|
|
91
|
-
}
|
|
92
|
-
get currentHistoryItemGroup() { return this._currentHistoryItemGroup; }
|
|
93
|
-
set currentHistoryItemGroup(historyItemGroup) {
|
|
94
|
-
this._currentHistoryItemGroup = historyItemGroup;
|
|
95
|
-
this._onDidChangeCurrentHistoryItemGroup.fire();
|
|
96
|
-
}
|
|
97
|
-
constructor(proxy, handle) {
|
|
98
|
-
this.proxy = proxy;
|
|
99
|
-
this.handle = handle;
|
|
100
|
-
this._onDidChangeActionButton = ( new Emitter());
|
|
101
|
-
this.onDidChangeActionButton = this._onDidChangeActionButton.event;
|
|
102
|
-
this._onDidChangeCurrentHistoryItemGroup = ( new Emitter());
|
|
103
|
-
this.onDidChangeCurrentHistoryItemGroup = this._onDidChangeCurrentHistoryItemGroup.event;
|
|
104
|
-
}
|
|
105
|
-
async resolveHistoryItemGroupBase(historyItemGroupId) {
|
|
106
|
-
return this.proxy.$resolveHistoryItemGroupBase(this.handle, historyItemGroupId, CancellationToken.None);
|
|
107
|
-
}
|
|
108
|
-
async resolveHistoryItemGroupCommonAncestor(historyItemGroupId1, historyItemGroupId2) {
|
|
109
|
-
return this.proxy.$resolveHistoryItemGroupCommonAncestor(this.handle, historyItemGroupId1, historyItemGroupId2, CancellationToken.None);
|
|
110
|
-
}
|
|
111
|
-
async provideHistoryItems(historyItemGroupId, options) {
|
|
112
|
-
const historyItems = await this.proxy.$provideHistoryItems(this.handle, historyItemGroupId, options, CancellationToken.None);
|
|
113
|
-
return historyItems?.map(historyItem => ({ ...historyItem, icon: getSCMHistoryItemIcon(historyItem), }));
|
|
114
|
-
}
|
|
115
|
-
async provideHistoryItemChanges(historyItemId) {
|
|
116
|
-
const changes = await this.proxy.$provideHistoryItemChanges(this.handle, historyItemId, CancellationToken.None);
|
|
117
|
-
return changes?.map(change => ({
|
|
118
|
-
uri: URI.revive(change.uri),
|
|
119
|
-
originalUri: change.originalUri && URI.revive(change.originalUri),
|
|
120
|
-
modifiedUri: change.modifiedUri && URI.revive(change.modifiedUri),
|
|
121
|
-
renameUri: change.renameUri && URI.revive(change.renameUri)
|
|
122
|
-
}));
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
class MainThreadSCMProvider {
|
|
126
|
-
static { this.ID_HANDLE = 0; }
|
|
127
|
-
get id() { return this._id; }
|
|
128
|
-
get handle() { return this._handle; }
|
|
129
|
-
get label() { return this._label; }
|
|
130
|
-
get rootUri() { return this._rootUri; }
|
|
131
|
-
get inputBoxDocumentUri() { return this._inputBoxDocumentUri; }
|
|
132
|
-
get contextValue() { return this._contextValue; }
|
|
133
|
-
get commitTemplate() { return this.features.commitTemplate || ''; }
|
|
134
|
-
get historyProvider() { return this._historyProvider; }
|
|
135
|
-
get acceptInputCommand() { return this.features.acceptInputCommand; }
|
|
136
|
-
get actionButton() { return this.features.actionButton ?? undefined; }
|
|
137
|
-
get statusBarCommands() { return this.features.statusBarCommands; }
|
|
138
|
-
get count() { return this.features.count; }
|
|
139
|
-
get onDidChangeStatusBarCommands() { return this._onDidChangeStatusBarCommands.event; }
|
|
140
|
-
constructor(proxy, _handle, _contextValue, _label, _rootUri, _inputBoxDocumentUri, _quickDiffService) {
|
|
141
|
-
this.proxy = proxy;
|
|
142
|
-
this._handle = _handle;
|
|
143
|
-
this._contextValue = _contextValue;
|
|
144
|
-
this._label = _label;
|
|
145
|
-
this._rootUri = _rootUri;
|
|
146
|
-
this._inputBoxDocumentUri = _inputBoxDocumentUri;
|
|
147
|
-
this._quickDiffService = _quickDiffService;
|
|
148
|
-
this._id = `scm${MainThreadSCMProvider.ID_HANDLE++}`;
|
|
149
|
-
this.groups = ( new Sequence());
|
|
150
|
-
this._groupsByHandle = Object.create(null);
|
|
151
|
-
this._onDidChangeResources = ( new Emitter());
|
|
152
|
-
this.onDidChangeResources = this._onDidChangeResources.event;
|
|
153
|
-
this.features = {};
|
|
154
|
-
this._onDidChangeCommitTemplate = ( new Emitter());
|
|
155
|
-
this.onDidChangeCommitTemplate = this._onDidChangeCommitTemplate.event;
|
|
156
|
-
this._onDidChangeStatusBarCommands = ( new Emitter());
|
|
157
|
-
this._onDidChangeHistoryProvider = ( new Emitter());
|
|
158
|
-
this.onDidChangeHistoryProvider = this._onDidChangeHistoryProvider.event;
|
|
159
|
-
this._onDidChange = ( new Emitter());
|
|
160
|
-
this.onDidChange = this._onDidChange.event;
|
|
161
|
-
this.isSCM = true;
|
|
162
|
-
}
|
|
163
|
-
$updateSourceControl(features) {
|
|
164
|
-
this.features = { ...this.features, ...features };
|
|
165
|
-
this._onDidChange.fire();
|
|
166
|
-
if (typeof features.commitTemplate !== 'undefined') {
|
|
167
|
-
this._onDidChangeCommitTemplate.fire(this.commitTemplate);
|
|
168
|
-
}
|
|
169
|
-
if (typeof features.statusBarCommands !== 'undefined') {
|
|
170
|
-
this._onDidChangeStatusBarCommands.fire(this.statusBarCommands);
|
|
171
|
-
}
|
|
172
|
-
if (features.hasQuickDiffProvider && !this._quickDiff) {
|
|
173
|
-
this._quickDiff = this._quickDiffService.addQuickDiffProvider({
|
|
174
|
-
label: features.quickDiffLabel ?? this.label,
|
|
175
|
-
rootUri: this.rootUri,
|
|
176
|
-
isSCM: this.isSCM,
|
|
177
|
-
getOriginalResource: (uri) => this.getOriginalResource(uri)
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
else if (features.hasQuickDiffProvider === false && this._quickDiff) {
|
|
181
|
-
this._quickDiff.dispose();
|
|
182
|
-
this._quickDiff = undefined;
|
|
183
|
-
}
|
|
184
|
-
if (features.hasHistoryProvider && !this._historyProvider) {
|
|
185
|
-
this._historyProvider = ( new MainThreadSCMHistoryProvider(this.proxy, this.handle));
|
|
186
|
-
this._onDidChangeHistoryProvider.fire();
|
|
187
|
-
}
|
|
188
|
-
else if (features.hasHistoryProvider === false && this._historyProvider) {
|
|
189
|
-
this._historyProvider = undefined;
|
|
190
|
-
this._onDidChangeHistoryProvider.fire();
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
$registerGroups(_groups) {
|
|
194
|
-
const groups = ( _groups.map(([handle, id, label, features]) => {
|
|
195
|
-
const group = ( new MainThreadSCMResourceGroup(this.handle, handle, this, features, label, id));
|
|
196
|
-
this._groupsByHandle[handle] = group;
|
|
197
|
-
return group;
|
|
198
|
-
}));
|
|
199
|
-
this.groups.splice(this.groups.elements.length, 0, groups);
|
|
200
|
-
}
|
|
201
|
-
$updateGroup(handle, features) {
|
|
202
|
-
const group = this._groupsByHandle[handle];
|
|
203
|
-
if (!group) {
|
|
204
|
-
return;
|
|
205
|
-
}
|
|
206
|
-
group.$updateGroup(features);
|
|
207
|
-
}
|
|
208
|
-
$updateGroupLabel(handle, label) {
|
|
209
|
-
const group = this._groupsByHandle[handle];
|
|
210
|
-
if (!group) {
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
group.$updateGroupLabel(label);
|
|
214
|
-
}
|
|
215
|
-
$spliceGroupResourceStates(splices) {
|
|
216
|
-
for (const [groupHandle, groupSlices] of splices) {
|
|
217
|
-
const group = this._groupsByHandle[groupHandle];
|
|
218
|
-
if (!group) {
|
|
219
|
-
console.warn(`SCM group ${groupHandle} not found in provider ${this.label}`);
|
|
220
|
-
continue;
|
|
221
|
-
}
|
|
222
|
-
groupSlices.reverse();
|
|
223
|
-
for (const [start, deleteCount, rawResources] of groupSlices) {
|
|
224
|
-
const resources = ( rawResources.map(rawResource => {
|
|
225
|
-
const [handle, sourceUri, icons, tooltip, strikeThrough, faded, contextValue, command] = rawResource;
|
|
226
|
-
const [light, dark] = icons;
|
|
227
|
-
const icon = ThemeIcon.isThemeIcon(light) ? light : URI.revive(light);
|
|
228
|
-
const iconDark = (ThemeIcon.isThemeIcon(dark) ? dark : URI.revive(dark)) || icon;
|
|
229
|
-
const decorations = {
|
|
230
|
-
icon: icon,
|
|
231
|
-
iconDark: iconDark,
|
|
232
|
-
tooltip,
|
|
233
|
-
strikeThrough,
|
|
234
|
-
faded
|
|
235
|
-
};
|
|
236
|
-
return ( new MainThreadSCMResource(
|
|
237
|
-
this.proxy,
|
|
238
|
-
this.handle,
|
|
239
|
-
groupHandle,
|
|
240
|
-
handle,
|
|
241
|
-
URI.revive(sourceUri),
|
|
242
|
-
group,
|
|
243
|
-
decorations,
|
|
244
|
-
contextValue || undefined,
|
|
245
|
-
command
|
|
246
|
-
));
|
|
247
|
-
}));
|
|
248
|
-
group.splice(start, deleteCount, resources);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
this._onDidChangeResources.fire();
|
|
252
|
-
}
|
|
253
|
-
$unregisterGroup(handle) {
|
|
254
|
-
const group = this._groupsByHandle[handle];
|
|
255
|
-
if (!group) {
|
|
256
|
-
return;
|
|
257
|
-
}
|
|
258
|
-
delete this._groupsByHandle[handle];
|
|
259
|
-
this.groups.splice(this.groups.elements.indexOf(group), 1);
|
|
260
|
-
this._onDidChangeResources.fire();
|
|
261
|
-
}
|
|
262
|
-
async getOriginalResource(uri) {
|
|
263
|
-
if (!this.features.hasQuickDiffProvider) {
|
|
264
|
-
return null;
|
|
265
|
-
}
|
|
266
|
-
const result = await this.proxy.$provideOriginalResource(this.handle, uri, CancellationToken.None);
|
|
267
|
-
return result && URI.revive(result);
|
|
268
|
-
}
|
|
269
|
-
$onDidChangeHistoryProviderActionButton(actionButton) {
|
|
270
|
-
if (!this._historyProvider) {
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
273
|
-
this._historyProvider.actionButton = actionButton ?? undefined;
|
|
274
|
-
}
|
|
275
|
-
$onDidChangeHistoryProviderCurrentHistoryItemGroup(currentHistoryItemGroup) {
|
|
276
|
-
if (!this._historyProvider) {
|
|
277
|
-
return;
|
|
278
|
-
}
|
|
279
|
-
this._historyProvider.currentHistoryItemGroup = currentHistoryItemGroup ?? undefined;
|
|
280
|
-
}
|
|
281
|
-
toJSON() {
|
|
282
|
-
return {
|
|
283
|
-
$mid: 5 ,
|
|
284
|
-
handle: this.handle
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
dispose() {
|
|
288
|
-
this._quickDiff?.dispose();
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
let MainThreadSCM = class MainThreadSCM {
|
|
292
|
-
constructor(extHostContext, scmService, scmViewService, quickDiffService) {
|
|
293
|
-
this.scmService = scmService;
|
|
294
|
-
this.scmViewService = scmViewService;
|
|
295
|
-
this.quickDiffService = quickDiffService;
|
|
296
|
-
this._repositories = ( new Map());
|
|
297
|
-
this._repositoryDisposables = ( new Map());
|
|
298
|
-
this._disposables = ( new DisposableStore());
|
|
299
|
-
this._proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostSCM));
|
|
300
|
-
}
|
|
301
|
-
dispose() {
|
|
302
|
-
dispose(( this._repositories.values()));
|
|
303
|
-
this._repositories.clear();
|
|
304
|
-
dispose(( this._repositoryDisposables.values()));
|
|
305
|
-
this._repositoryDisposables.clear();
|
|
306
|
-
this._disposables.dispose();
|
|
307
|
-
}
|
|
308
|
-
$registerSourceControl(handle, id, label, rootUri, inputBoxDocumentUri) {
|
|
309
|
-
const provider = ( new MainThreadSCMProvider(
|
|
310
|
-
this._proxy,
|
|
311
|
-
handle,
|
|
312
|
-
id,
|
|
313
|
-
label,
|
|
314
|
-
rootUri ? URI.revive(rootUri) : undefined,
|
|
315
|
-
URI.revive(inputBoxDocumentUri),
|
|
316
|
-
this.quickDiffService
|
|
317
|
-
));
|
|
318
|
-
const repository = this.scmService.registerSCMProvider(provider);
|
|
319
|
-
this._repositories.set(handle, repository);
|
|
320
|
-
const disposable = combinedDisposable(Event.filter(this.scmViewService.onDidFocusRepository, r => r === repository)(_ => this._proxy.$setSelectedSourceControl(handle)), repository.input.onDidChange(({ value }) => this._proxy.$onInputBoxValueChange(handle, value)));
|
|
321
|
-
if (this.scmViewService.focusedRepository === repository) {
|
|
322
|
-
setTimeout(() => this._proxy.$setSelectedSourceControl(handle), 0);
|
|
323
|
-
}
|
|
324
|
-
if (repository.input.value) {
|
|
325
|
-
setTimeout(() => this._proxy.$onInputBoxValueChange(handle, repository.input.value), 0);
|
|
326
|
-
}
|
|
327
|
-
this._repositoryDisposables.set(handle, disposable);
|
|
328
|
-
}
|
|
329
|
-
$updateSourceControl(handle, features) {
|
|
330
|
-
const repository = this._repositories.get(handle);
|
|
331
|
-
if (!repository) {
|
|
332
|
-
return;
|
|
333
|
-
}
|
|
334
|
-
const provider = repository.provider;
|
|
335
|
-
provider.$updateSourceControl(features);
|
|
336
|
-
}
|
|
337
|
-
$unregisterSourceControl(handle) {
|
|
338
|
-
const repository = this._repositories.get(handle);
|
|
339
|
-
if (!repository) {
|
|
340
|
-
return;
|
|
341
|
-
}
|
|
342
|
-
this._repositoryDisposables.get(handle).dispose();
|
|
343
|
-
this._repositoryDisposables.delete(handle);
|
|
344
|
-
repository.dispose();
|
|
345
|
-
this._repositories.delete(handle);
|
|
346
|
-
}
|
|
347
|
-
$registerGroups(sourceControlHandle, groups, splices) {
|
|
348
|
-
const repository = this._repositories.get(sourceControlHandle);
|
|
349
|
-
if (!repository) {
|
|
350
|
-
return;
|
|
351
|
-
}
|
|
352
|
-
const provider = repository.provider;
|
|
353
|
-
provider.$registerGroups(groups);
|
|
354
|
-
provider.$spliceGroupResourceStates(splices);
|
|
355
|
-
}
|
|
356
|
-
$updateGroup(sourceControlHandle, groupHandle, features) {
|
|
357
|
-
const repository = this._repositories.get(sourceControlHandle);
|
|
358
|
-
if (!repository) {
|
|
359
|
-
return;
|
|
360
|
-
}
|
|
361
|
-
const provider = repository.provider;
|
|
362
|
-
provider.$updateGroup(groupHandle, features);
|
|
363
|
-
}
|
|
364
|
-
$updateGroupLabel(sourceControlHandle, groupHandle, label) {
|
|
365
|
-
const repository = this._repositories.get(sourceControlHandle);
|
|
366
|
-
if (!repository) {
|
|
367
|
-
return;
|
|
368
|
-
}
|
|
369
|
-
const provider = repository.provider;
|
|
370
|
-
provider.$updateGroupLabel(groupHandle, label);
|
|
371
|
-
}
|
|
372
|
-
$spliceResourceStates(sourceControlHandle, splices) {
|
|
373
|
-
const repository = this._repositories.get(sourceControlHandle);
|
|
374
|
-
if (!repository) {
|
|
375
|
-
return;
|
|
376
|
-
}
|
|
377
|
-
const provider = repository.provider;
|
|
378
|
-
provider.$spliceGroupResourceStates(splices);
|
|
379
|
-
}
|
|
380
|
-
$unregisterGroup(sourceControlHandle, handle) {
|
|
381
|
-
const repository = this._repositories.get(sourceControlHandle);
|
|
382
|
-
if (!repository) {
|
|
383
|
-
return;
|
|
384
|
-
}
|
|
385
|
-
const provider = repository.provider;
|
|
386
|
-
provider.$unregisterGroup(handle);
|
|
387
|
-
}
|
|
388
|
-
$setInputBoxValue(sourceControlHandle, value) {
|
|
389
|
-
const repository = this._repositories.get(sourceControlHandle);
|
|
390
|
-
if (!repository) {
|
|
391
|
-
return;
|
|
392
|
-
}
|
|
393
|
-
repository.input.setValue(value, false);
|
|
394
|
-
}
|
|
395
|
-
$setInputBoxPlaceholder(sourceControlHandle, placeholder) {
|
|
396
|
-
const repository = this._repositories.get(sourceControlHandle);
|
|
397
|
-
if (!repository) {
|
|
398
|
-
return;
|
|
399
|
-
}
|
|
400
|
-
repository.input.placeholder = placeholder;
|
|
401
|
-
}
|
|
402
|
-
$setInputBoxEnablement(sourceControlHandle, enabled) {
|
|
403
|
-
const repository = this._repositories.get(sourceControlHandle);
|
|
404
|
-
if (!repository) {
|
|
405
|
-
return;
|
|
406
|
-
}
|
|
407
|
-
repository.input.enabled = enabled;
|
|
408
|
-
}
|
|
409
|
-
$setInputBoxVisibility(sourceControlHandle, visible) {
|
|
410
|
-
const repository = this._repositories.get(sourceControlHandle);
|
|
411
|
-
if (!repository) {
|
|
412
|
-
return;
|
|
413
|
-
}
|
|
414
|
-
repository.input.visible = visible;
|
|
415
|
-
}
|
|
416
|
-
$showValidationMessage(sourceControlHandle, message, type) {
|
|
417
|
-
const repository = this._repositories.get(sourceControlHandle);
|
|
418
|
-
if (!repository) {
|
|
419
|
-
return;
|
|
420
|
-
}
|
|
421
|
-
repository.input.showValidationMessage(message, type);
|
|
422
|
-
}
|
|
423
|
-
$setValidationProviderIsEnabled(sourceControlHandle, enabled) {
|
|
424
|
-
const repository = this._repositories.get(sourceControlHandle);
|
|
425
|
-
if (!repository) {
|
|
426
|
-
return;
|
|
427
|
-
}
|
|
428
|
-
if (enabled) {
|
|
429
|
-
repository.input.validateInput = async (value, pos) => {
|
|
430
|
-
const result = await this._proxy.$validateInput(sourceControlHandle, value, pos);
|
|
431
|
-
return result && { message: result[0], type: result[1] };
|
|
432
|
-
};
|
|
433
|
-
}
|
|
434
|
-
else {
|
|
435
|
-
repository.input.validateInput = async () => undefined;
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
$onDidChangeHistoryProviderActionButton(sourceControlHandle, actionButton) {
|
|
439
|
-
const repository = this._repositories.get(sourceControlHandle);
|
|
440
|
-
if (!repository) {
|
|
441
|
-
return;
|
|
442
|
-
}
|
|
443
|
-
const provider = repository.provider;
|
|
444
|
-
provider.$onDidChangeHistoryProviderActionButton(actionButton);
|
|
445
|
-
}
|
|
446
|
-
$onDidChangeHistoryProviderCurrentHistoryItemGroup(sourceControlHandle, historyItemGroup) {
|
|
447
|
-
const repository = this._repositories.get(sourceControlHandle);
|
|
448
|
-
if (!repository) {
|
|
449
|
-
return;
|
|
450
|
-
}
|
|
451
|
-
const provider = repository.provider;
|
|
452
|
-
provider.$onDidChangeHistoryProviderCurrentHistoryItemGroup(historyItemGroup);
|
|
453
|
-
}
|
|
454
|
-
};
|
|
455
|
-
MainThreadSCM = __decorate([
|
|
456
|
-
extHostNamedCustomer(MainContext.MainThreadSCM),
|
|
457
|
-
( __param(1, ISCMService)),
|
|
458
|
-
( __param(2, ISCMViewService)),
|
|
459
|
-
( __param(3, IQuickDiffService))
|
|
460
|
-
], MainThreadSCM);
|
|
461
|
-
export { MainThreadSCM };
|