@codingame/monaco-vscode-api 1.83.8 → 1.83.10-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/defaultIcon.png +0 -0
- package/extensions.d.ts +1 -0
- package/extensions.js +5 -5
- package/lifecycle.js +21 -1
- package/missing-services.js +187 -24
- package/monaco-editor-treemending.patch +3366 -3366
- package/monaco.js +79 -15
- package/package.json +12 -6
- package/services.d.ts +2 -4
- package/services.js +28 -27
- 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/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/userDataProfile/common/remoteUserDataProfiles.js +150 -0
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +3 -1
- package/vscode.proposed.d.ts +4787 -0
- package/workbench.js +0 -1
- 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 -471
- package/service-override/keybindings.js +0 -99
- package/service-override/layout.js +0 -229
- package/service-override/output.js +0 -23
- 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,504 +0,0 @@
|
|
|
1
|
-
import * as nls from 'monaco-editor/esm/vs/nls.js';
|
|
2
|
-
import * as types from 'monaco-editor/esm/vs/base/common/types.js';
|
|
3
|
-
import * as resources from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
4
|
-
import * as objects from 'monaco-editor/esm/vs/base/common/objects.js';
|
|
5
|
-
import { TaskDefinitionRegistry } from './taskDefinitionRegistry.js';
|
|
6
|
-
const USER_TASKS_GROUP_KEY = 'settings';
|
|
7
|
-
const CUSTOMIZED_TASK_TYPE = '$customized';
|
|
8
|
-
var CommandOptions;
|
|
9
|
-
( (function(CommandOptions) {
|
|
10
|
-
CommandOptions.defaults = { cwd: '${workspaceFolder}' };
|
|
11
|
-
})(CommandOptions || (CommandOptions = {})));
|
|
12
|
-
var RevealKind;
|
|
13
|
-
( (function(RevealKind) {
|
|
14
|
-
RevealKind[RevealKind["Always"] = 1] = "Always";
|
|
15
|
-
RevealKind[RevealKind["Silent"] = 2] = "Silent";
|
|
16
|
-
RevealKind[RevealKind["Never"] = 3] = "Never";
|
|
17
|
-
})(RevealKind || (RevealKind = {})));
|
|
18
|
-
( (function(RevealKind) {
|
|
19
|
-
function fromString(value) {
|
|
20
|
-
switch (value.toLowerCase()) {
|
|
21
|
-
case 'always':
|
|
22
|
-
return RevealKind.Always;
|
|
23
|
-
case 'silent':
|
|
24
|
-
return RevealKind.Silent;
|
|
25
|
-
case 'never':
|
|
26
|
-
return RevealKind.Never;
|
|
27
|
-
default:
|
|
28
|
-
return RevealKind.Always;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
RevealKind.fromString = fromString;
|
|
32
|
-
})(RevealKind || (RevealKind = {})));
|
|
33
|
-
var RevealProblemKind;
|
|
34
|
-
( (function(RevealProblemKind) {
|
|
35
|
-
RevealProblemKind[RevealProblemKind["Never"] = 1] = "Never";
|
|
36
|
-
RevealProblemKind[RevealProblemKind["OnProblem"] = 2] = "OnProblem";
|
|
37
|
-
RevealProblemKind[RevealProblemKind["Always"] = 3] = "Always";
|
|
38
|
-
})(RevealProblemKind || (RevealProblemKind = {})));
|
|
39
|
-
( (function(RevealProblemKind) {
|
|
40
|
-
function fromString(value) {
|
|
41
|
-
switch (value.toLowerCase()) {
|
|
42
|
-
case 'always':
|
|
43
|
-
return RevealProblemKind.Always;
|
|
44
|
-
case 'never':
|
|
45
|
-
return RevealProblemKind.Never;
|
|
46
|
-
case 'onproblem':
|
|
47
|
-
return RevealProblemKind.OnProblem;
|
|
48
|
-
default:
|
|
49
|
-
return RevealProblemKind.OnProblem;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
RevealProblemKind.fromString = fromString;
|
|
53
|
-
})(RevealProblemKind || (RevealProblemKind = {})));
|
|
54
|
-
var PanelKind;
|
|
55
|
-
( (function(PanelKind) {
|
|
56
|
-
PanelKind[PanelKind["Shared"] = 1] = "Shared";
|
|
57
|
-
PanelKind[PanelKind["Dedicated"] = 2] = "Dedicated";
|
|
58
|
-
PanelKind[PanelKind["New"] = 3] = "New";
|
|
59
|
-
})(PanelKind || (PanelKind = {})));
|
|
60
|
-
( (function(PanelKind) {
|
|
61
|
-
function fromString(value) {
|
|
62
|
-
switch (value.toLowerCase()) {
|
|
63
|
-
case 'shared':
|
|
64
|
-
return PanelKind.Shared;
|
|
65
|
-
case 'dedicated':
|
|
66
|
-
return PanelKind.Dedicated;
|
|
67
|
-
case 'new':
|
|
68
|
-
return PanelKind.New;
|
|
69
|
-
default:
|
|
70
|
-
return PanelKind.Shared;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
PanelKind.fromString = fromString;
|
|
74
|
-
})(PanelKind || (PanelKind = {})));
|
|
75
|
-
var PresentationOptions;
|
|
76
|
-
( (function(PresentationOptions) {
|
|
77
|
-
PresentationOptions.defaults = {
|
|
78
|
-
echo: true, reveal: RevealKind.Always, revealProblems: RevealProblemKind.Never, focus: false, panel: PanelKind.Shared, showReuseMessage: true, clear: false
|
|
79
|
-
};
|
|
80
|
-
})(PresentationOptions || (PresentationOptions = {})));
|
|
81
|
-
var RuntimeType;
|
|
82
|
-
( (function(RuntimeType) {
|
|
83
|
-
RuntimeType[RuntimeType["Shell"] = 1] = "Shell";
|
|
84
|
-
RuntimeType[RuntimeType["Process"] = 2] = "Process";
|
|
85
|
-
RuntimeType[RuntimeType["CustomExecution"] = 3] = "CustomExecution";
|
|
86
|
-
})(RuntimeType || (RuntimeType = {})));
|
|
87
|
-
( (function(RuntimeType) {
|
|
88
|
-
function fromString(value) {
|
|
89
|
-
switch (value.toLowerCase()) {
|
|
90
|
-
case 'shell':
|
|
91
|
-
return RuntimeType.Shell;
|
|
92
|
-
case 'process':
|
|
93
|
-
return RuntimeType.Process;
|
|
94
|
-
case 'customExecution':
|
|
95
|
-
return RuntimeType.CustomExecution;
|
|
96
|
-
default:
|
|
97
|
-
return RuntimeType.Process;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
RuntimeType.fromString = fromString;
|
|
101
|
-
function toString(value) {
|
|
102
|
-
switch (value) {
|
|
103
|
-
case RuntimeType.Shell: return 'shell';
|
|
104
|
-
case RuntimeType.Process: return 'process';
|
|
105
|
-
case RuntimeType.CustomExecution: return 'customExecution';
|
|
106
|
-
default: return 'process';
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
RuntimeType.toString = toString;
|
|
110
|
-
})(RuntimeType || (RuntimeType = {})));
|
|
111
|
-
var TaskSourceKind;
|
|
112
|
-
( (function(TaskSourceKind) {
|
|
113
|
-
TaskSourceKind.Workspace = 'workspace';
|
|
114
|
-
TaskSourceKind.Extension = 'extension';
|
|
115
|
-
TaskSourceKind.InMemory = 'inMemory';
|
|
116
|
-
TaskSourceKind.WorkspaceFile = 'workspaceFile';
|
|
117
|
-
TaskSourceKind.User = 'user';
|
|
118
|
-
function toConfigurationTarget(kind) {
|
|
119
|
-
switch (kind) {
|
|
120
|
-
case TaskSourceKind.User: return 2 ;
|
|
121
|
-
case TaskSourceKind.WorkspaceFile: return 5 ;
|
|
122
|
-
default: return 6 ;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
TaskSourceKind.toConfigurationTarget = toConfigurationTarget;
|
|
126
|
-
})(TaskSourceKind || (TaskSourceKind = {})));
|
|
127
|
-
var RunOnOptions;
|
|
128
|
-
( (function(RunOnOptions) {
|
|
129
|
-
RunOnOptions[RunOnOptions["default"] = 1] = "default";
|
|
130
|
-
RunOnOptions[RunOnOptions["folderOpen"] = 2] = "folderOpen";
|
|
131
|
-
})(RunOnOptions || (RunOnOptions = {})));
|
|
132
|
-
var RunOptions;
|
|
133
|
-
( (function(RunOptions) {
|
|
134
|
-
RunOptions.defaults = { reevaluateOnRerun: true, runOn: RunOnOptions.default, instanceLimit: 1 };
|
|
135
|
-
})(RunOptions || (RunOptions = {})));
|
|
136
|
-
class CommonTask {
|
|
137
|
-
constructor(id, label, type, runOptions, configurationProperties, source) {
|
|
138
|
-
this._label = '';
|
|
139
|
-
this._id = id;
|
|
140
|
-
if (label) {
|
|
141
|
-
this._label = label;
|
|
142
|
-
}
|
|
143
|
-
if (type) {
|
|
144
|
-
this.type = type;
|
|
145
|
-
}
|
|
146
|
-
this.runOptions = runOptions;
|
|
147
|
-
this.configurationProperties = configurationProperties;
|
|
148
|
-
this._source = source;
|
|
149
|
-
}
|
|
150
|
-
getDefinition(useSource) {
|
|
151
|
-
return undefined;
|
|
152
|
-
}
|
|
153
|
-
getMapKey() {
|
|
154
|
-
return this._id;
|
|
155
|
-
}
|
|
156
|
-
getRecentlyUsedKey() {
|
|
157
|
-
return undefined;
|
|
158
|
-
}
|
|
159
|
-
getCommonTaskId() {
|
|
160
|
-
const key = { folder: this.getFolderId(), id: this._id };
|
|
161
|
-
return JSON.stringify(key);
|
|
162
|
-
}
|
|
163
|
-
clone() {
|
|
164
|
-
return this.fromObject(Object.assign({}, this));
|
|
165
|
-
}
|
|
166
|
-
getWorkspaceFolder() {
|
|
167
|
-
return undefined;
|
|
168
|
-
}
|
|
169
|
-
getWorkspaceFileName() {
|
|
170
|
-
return undefined;
|
|
171
|
-
}
|
|
172
|
-
getTelemetryKind() {
|
|
173
|
-
return 'unknown';
|
|
174
|
-
}
|
|
175
|
-
matches(key, compareId = false) {
|
|
176
|
-
if (key === undefined) {
|
|
177
|
-
return false;
|
|
178
|
-
}
|
|
179
|
-
if (types.isString(key)) {
|
|
180
|
-
return key === this._label || key === this.configurationProperties.identifier || (compareId && key === this._id);
|
|
181
|
-
}
|
|
182
|
-
const identifier = this.getDefinition(true);
|
|
183
|
-
return identifier !== undefined && identifier._key === key._key;
|
|
184
|
-
}
|
|
185
|
-
getQualifiedLabel() {
|
|
186
|
-
const workspaceFolder = this.getWorkspaceFolder();
|
|
187
|
-
if (workspaceFolder) {
|
|
188
|
-
return `${this._label} (${workspaceFolder.name})`;
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
return this._label;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
getTaskExecution() {
|
|
195
|
-
const result = {
|
|
196
|
-
id: this._id,
|
|
197
|
-
task: this
|
|
198
|
-
};
|
|
199
|
-
return result;
|
|
200
|
-
}
|
|
201
|
-
addTaskLoadMessages(messages) {
|
|
202
|
-
if (this._taskLoadMessages === undefined) {
|
|
203
|
-
this._taskLoadMessages = [];
|
|
204
|
-
}
|
|
205
|
-
if (messages) {
|
|
206
|
-
this._taskLoadMessages = this._taskLoadMessages.concat(messages);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
get taskLoadMessages() {
|
|
210
|
-
return this._taskLoadMessages;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
class CustomTask extends CommonTask {
|
|
214
|
-
constructor(id, source, label, type, command, hasDefinedMatchers, runOptions, configurationProperties) {
|
|
215
|
-
super(id, label, undefined, runOptions, configurationProperties, source);
|
|
216
|
-
this.command = {};
|
|
217
|
-
this._source = source;
|
|
218
|
-
this.hasDefinedMatchers = hasDefinedMatchers;
|
|
219
|
-
if (command) {
|
|
220
|
-
this.command = command;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
clone() {
|
|
224
|
-
return ( new CustomTask(
|
|
225
|
-
this._id,
|
|
226
|
-
this._source,
|
|
227
|
-
this._label,
|
|
228
|
-
this.type,
|
|
229
|
-
this.command,
|
|
230
|
-
this.hasDefinedMatchers,
|
|
231
|
-
this.runOptions,
|
|
232
|
-
this.configurationProperties
|
|
233
|
-
));
|
|
234
|
-
}
|
|
235
|
-
customizes() {
|
|
236
|
-
if (this._source && this._source.customizes) {
|
|
237
|
-
return this._source.customizes;
|
|
238
|
-
}
|
|
239
|
-
return undefined;
|
|
240
|
-
}
|
|
241
|
-
getDefinition(useSource = false) {
|
|
242
|
-
if (useSource && this._source.customizes !== undefined) {
|
|
243
|
-
return this._source.customizes;
|
|
244
|
-
}
|
|
245
|
-
else {
|
|
246
|
-
let type;
|
|
247
|
-
const commandRuntime = this.command ? this.command.runtime : undefined;
|
|
248
|
-
switch (commandRuntime) {
|
|
249
|
-
case RuntimeType.Shell:
|
|
250
|
-
type = 'shell';
|
|
251
|
-
break;
|
|
252
|
-
case RuntimeType.Process:
|
|
253
|
-
type = 'process';
|
|
254
|
-
break;
|
|
255
|
-
case RuntimeType.CustomExecution:
|
|
256
|
-
type = 'customExecution';
|
|
257
|
-
break;
|
|
258
|
-
case undefined:
|
|
259
|
-
type = '$composite';
|
|
260
|
-
break;
|
|
261
|
-
default:
|
|
262
|
-
throw new Error('Unexpected task runtime');
|
|
263
|
-
}
|
|
264
|
-
const result = {
|
|
265
|
-
type,
|
|
266
|
-
_key: this._id,
|
|
267
|
-
id: this._id
|
|
268
|
-
};
|
|
269
|
-
return result;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
static is(value) {
|
|
273
|
-
return value instanceof CustomTask;
|
|
274
|
-
}
|
|
275
|
-
getMapKey() {
|
|
276
|
-
const workspaceFolder = this._source.config.workspaceFolder;
|
|
277
|
-
return workspaceFolder ? `${( workspaceFolder.uri.toString())}|${this._id}|${this.instance}` : `${this._id}|${this.instance}`;
|
|
278
|
-
}
|
|
279
|
-
getFolderId() {
|
|
280
|
-
return this._source.kind === TaskSourceKind.User ? USER_TASKS_GROUP_KEY : this._source.config.workspaceFolder?.uri.toString();
|
|
281
|
-
}
|
|
282
|
-
getCommonTaskId() {
|
|
283
|
-
return this._source.customizes ? super.getCommonTaskId() : (this.getRecentlyUsedKey() ?? super.getCommonTaskId());
|
|
284
|
-
}
|
|
285
|
-
getRecentlyUsedKey() {
|
|
286
|
-
const workspaceFolder = this.getFolderId();
|
|
287
|
-
if (!workspaceFolder) {
|
|
288
|
-
return undefined;
|
|
289
|
-
}
|
|
290
|
-
let id = this.configurationProperties.identifier;
|
|
291
|
-
if (this._source.kind !== TaskSourceKind.Workspace) {
|
|
292
|
-
id += this._source.kind;
|
|
293
|
-
}
|
|
294
|
-
const key = { type: CUSTOMIZED_TASK_TYPE, folder: workspaceFolder, id };
|
|
295
|
-
return JSON.stringify(key);
|
|
296
|
-
}
|
|
297
|
-
getWorkspaceFolder() {
|
|
298
|
-
return this._source.config.workspaceFolder;
|
|
299
|
-
}
|
|
300
|
-
getWorkspaceFileName() {
|
|
301
|
-
return (this._source.config.workspace && this._source.config.workspace.configuration) ? resources.basename(this._source.config.workspace.configuration) : undefined;
|
|
302
|
-
}
|
|
303
|
-
getTelemetryKind() {
|
|
304
|
-
if (this._source.customizes) {
|
|
305
|
-
return 'workspace>extension';
|
|
306
|
-
}
|
|
307
|
-
else {
|
|
308
|
-
return 'workspace';
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
fromObject(object) {
|
|
312
|
-
return ( new CustomTask(
|
|
313
|
-
object._id,
|
|
314
|
-
object._source,
|
|
315
|
-
object._label,
|
|
316
|
-
object.type,
|
|
317
|
-
object.command,
|
|
318
|
-
object.hasDefinedMatchers,
|
|
319
|
-
object.runOptions,
|
|
320
|
-
object.configurationProperties
|
|
321
|
-
));
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
class ConfiguringTask extends CommonTask {
|
|
325
|
-
constructor(id, source, label, type, configures, runOptions, configurationProperties) {
|
|
326
|
-
super(id, label, type, runOptions, configurationProperties, source);
|
|
327
|
-
this._source = source;
|
|
328
|
-
this.configures = configures;
|
|
329
|
-
}
|
|
330
|
-
static is(value) {
|
|
331
|
-
return value instanceof ConfiguringTask;
|
|
332
|
-
}
|
|
333
|
-
fromObject(object) {
|
|
334
|
-
return object;
|
|
335
|
-
}
|
|
336
|
-
getDefinition() {
|
|
337
|
-
return this.configures;
|
|
338
|
-
}
|
|
339
|
-
getWorkspaceFileName() {
|
|
340
|
-
return (this._source.config.workspace && this._source.config.workspace.configuration) ? resources.basename(this._source.config.workspace.configuration) : undefined;
|
|
341
|
-
}
|
|
342
|
-
getWorkspaceFolder() {
|
|
343
|
-
return this._source.config.workspaceFolder;
|
|
344
|
-
}
|
|
345
|
-
getFolderId() {
|
|
346
|
-
return this._source.kind === TaskSourceKind.User ? USER_TASKS_GROUP_KEY : this._source.config.workspaceFolder?.uri.toString();
|
|
347
|
-
}
|
|
348
|
-
getRecentlyUsedKey() {
|
|
349
|
-
const workspaceFolder = this.getFolderId();
|
|
350
|
-
if (!workspaceFolder) {
|
|
351
|
-
return undefined;
|
|
352
|
-
}
|
|
353
|
-
let id = this.configurationProperties.identifier;
|
|
354
|
-
if (this._source.kind !== TaskSourceKind.Workspace) {
|
|
355
|
-
id += this._source.kind;
|
|
356
|
-
}
|
|
357
|
-
const key = { type: CUSTOMIZED_TASK_TYPE, folder: workspaceFolder, id };
|
|
358
|
-
return JSON.stringify(key);
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
class ContributedTask extends CommonTask {
|
|
362
|
-
constructor(id, source, label, type, defines, command, hasDefinedMatchers, runOptions, configurationProperties) {
|
|
363
|
-
super(id, label, type, runOptions, configurationProperties, source);
|
|
364
|
-
this.defines = defines;
|
|
365
|
-
this.hasDefinedMatchers = hasDefinedMatchers;
|
|
366
|
-
this.command = command;
|
|
367
|
-
this.icon = configurationProperties.icon;
|
|
368
|
-
this.hide = configurationProperties.hide;
|
|
369
|
-
}
|
|
370
|
-
clone() {
|
|
371
|
-
return ( new ContributedTask(
|
|
372
|
-
this._id,
|
|
373
|
-
this._source,
|
|
374
|
-
this._label,
|
|
375
|
-
this.type,
|
|
376
|
-
this.defines,
|
|
377
|
-
this.command,
|
|
378
|
-
this.hasDefinedMatchers,
|
|
379
|
-
this.runOptions,
|
|
380
|
-
this.configurationProperties
|
|
381
|
-
));
|
|
382
|
-
}
|
|
383
|
-
getDefinition() {
|
|
384
|
-
return this.defines;
|
|
385
|
-
}
|
|
386
|
-
static is(value) {
|
|
387
|
-
return value instanceof ContributedTask;
|
|
388
|
-
}
|
|
389
|
-
getMapKey() {
|
|
390
|
-
const workspaceFolder = this._source.workspaceFolder;
|
|
391
|
-
return workspaceFolder
|
|
392
|
-
? `${( this._source.scope.toString())}|${( workspaceFolder.uri.toString())}|${this._id}|${this.instance}`
|
|
393
|
-
: `${( this._source.scope.toString())}|${this._id}|${this.instance}`;
|
|
394
|
-
}
|
|
395
|
-
getFolderId() {
|
|
396
|
-
if (this._source.scope === 3 && this._source.workspaceFolder) {
|
|
397
|
-
return ( this._source.workspaceFolder.uri.toString());
|
|
398
|
-
}
|
|
399
|
-
return undefined;
|
|
400
|
-
}
|
|
401
|
-
getRecentlyUsedKey() {
|
|
402
|
-
const key = { type: 'contributed', scope: this._source.scope, id: this._id };
|
|
403
|
-
key.folder = this.getFolderId();
|
|
404
|
-
return JSON.stringify(key);
|
|
405
|
-
}
|
|
406
|
-
getWorkspaceFolder() {
|
|
407
|
-
return this._source.workspaceFolder;
|
|
408
|
-
}
|
|
409
|
-
getTelemetryKind() {
|
|
410
|
-
return 'extension';
|
|
411
|
-
}
|
|
412
|
-
fromObject(object) {
|
|
413
|
-
return ( new ContributedTask(
|
|
414
|
-
object._id,
|
|
415
|
-
object._source,
|
|
416
|
-
object._label,
|
|
417
|
-
object.type,
|
|
418
|
-
object.defines,
|
|
419
|
-
object.command,
|
|
420
|
-
object.hasDefinedMatchers,
|
|
421
|
-
object.runOptions,
|
|
422
|
-
object.configurationProperties
|
|
423
|
-
));
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
var KeyedTaskIdentifier;
|
|
427
|
-
( (function(KeyedTaskIdentifier) {
|
|
428
|
-
function sortedStringify(literal) {
|
|
429
|
-
const keys = ( Object.keys(literal)).sort();
|
|
430
|
-
let result = '';
|
|
431
|
-
for (const key of keys) {
|
|
432
|
-
let stringified = literal[key];
|
|
433
|
-
if (stringified instanceof Object) {
|
|
434
|
-
stringified = sortedStringify(stringified);
|
|
435
|
-
}
|
|
436
|
-
else if (typeof stringified === 'string') {
|
|
437
|
-
stringified = stringified.replace(/,/g, ',,');
|
|
438
|
-
}
|
|
439
|
-
result += key + ',' + stringified + ',';
|
|
440
|
-
}
|
|
441
|
-
return result;
|
|
442
|
-
}
|
|
443
|
-
function create(value) {
|
|
444
|
-
const resultKey = sortedStringify(value);
|
|
445
|
-
const result = { _key: resultKey, type: value.taskType };
|
|
446
|
-
Object.assign(result, value);
|
|
447
|
-
return result;
|
|
448
|
-
}
|
|
449
|
-
KeyedTaskIdentifier.create = create;
|
|
450
|
-
})(KeyedTaskIdentifier || (KeyedTaskIdentifier = {})));
|
|
451
|
-
var TaskDefinition;
|
|
452
|
-
( (function(TaskDefinition) {
|
|
453
|
-
function createTaskIdentifier(external, reporter) {
|
|
454
|
-
const definition = TaskDefinitionRegistry.get(external.type);
|
|
455
|
-
if (definition === undefined) {
|
|
456
|
-
const copy = objects.deepClone(external);
|
|
457
|
-
delete copy._key;
|
|
458
|
-
return KeyedTaskIdentifier.create(copy);
|
|
459
|
-
}
|
|
460
|
-
const literal = Object.create(null);
|
|
461
|
-
literal.type = definition.taskType;
|
|
462
|
-
const required = ( new Set());
|
|
463
|
-
definition.required.forEach(element => required.add(element));
|
|
464
|
-
const properties = definition.properties;
|
|
465
|
-
for (const property of ( Object.keys(properties))) {
|
|
466
|
-
const value = external[property];
|
|
467
|
-
if (value !== undefined && value !== null) {
|
|
468
|
-
literal[property] = value;
|
|
469
|
-
}
|
|
470
|
-
else if (( required.has(property))) {
|
|
471
|
-
const schema = properties[property];
|
|
472
|
-
if (schema.default !== undefined) {
|
|
473
|
-
literal[property] = objects.deepClone(schema.default);
|
|
474
|
-
}
|
|
475
|
-
else {
|
|
476
|
-
switch (schema.type) {
|
|
477
|
-
case 'boolean':
|
|
478
|
-
literal[property] = false;
|
|
479
|
-
break;
|
|
480
|
-
case 'number':
|
|
481
|
-
case 'integer':
|
|
482
|
-
literal[property] = 0;
|
|
483
|
-
break;
|
|
484
|
-
case 'string':
|
|
485
|
-
literal[property] = '';
|
|
486
|
-
break;
|
|
487
|
-
default:
|
|
488
|
-
reporter.error(( nls.localizeWithPath(
|
|
489
|
-
'vs/workbench/contrib/tasks/common/tasks',
|
|
490
|
-
'TaskDefinition.missingRequiredProperty',
|
|
491
|
-
'Error: the task identifier \'{0}\' is missing the required property \'{1}\'. The task identifier will be ignored.',
|
|
492
|
-
JSON.stringify(external, undefined, 0),
|
|
493
|
-
property
|
|
494
|
-
)));
|
|
495
|
-
return undefined;
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
return KeyedTaskIdentifier.create(literal);
|
|
501
|
-
}
|
|
502
|
-
TaskDefinition.createTaskIdentifier = createTaskIdentifier;
|
|
503
|
-
})(TaskDefinition || (TaskDefinition = {})));
|
|
504
|
-
export { CUSTOMIZED_TASK_TYPE, CommandOptions, CommonTask, ConfiguringTask, ContributedTask, CustomTask, KeyedTaskIdentifier, PanelKind, PresentationOptions, RevealKind, RevealProblemKind, RunOnOptions, RunOptions, RuntimeType, TaskDefinition, TaskSourceKind, USER_TASKS_GROUP_KEY };
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
3
|
-
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
4
|
-
import { ITerminalService } from './terminal.js';
|
|
5
|
-
let TerminalProcessExtHostProxy = class TerminalProcessExtHostProxy extends Disposable {
|
|
6
|
-
get onProcessReady() { return this._onProcessReady.event; }
|
|
7
|
-
constructor(instanceId, _cols, _rows, _terminalService) {
|
|
8
|
-
super();
|
|
9
|
-
this.instanceId = instanceId;
|
|
10
|
-
this._cols = _cols;
|
|
11
|
-
this._rows = _rows;
|
|
12
|
-
this._terminalService = _terminalService;
|
|
13
|
-
this.id = 0;
|
|
14
|
-
this.shouldPersist = false;
|
|
15
|
-
this._onProcessData = this._register(( new Emitter()));
|
|
16
|
-
this.onProcessData = this._onProcessData.event;
|
|
17
|
-
this._onProcessReady = this._register(( new Emitter()));
|
|
18
|
-
this._onStart = this._register(( new Emitter()));
|
|
19
|
-
this.onStart = this._onStart.event;
|
|
20
|
-
this._onInput = this._register(( new Emitter()));
|
|
21
|
-
this.onInput = this._onInput.event;
|
|
22
|
-
this._onBinary = this._register(( new Emitter()));
|
|
23
|
-
this.onBinary = this._onBinary.event;
|
|
24
|
-
this._onResize = this._register(( new Emitter()));
|
|
25
|
-
this.onResize = this._onResize.event;
|
|
26
|
-
this._onAcknowledgeDataEvent = this._register(( new Emitter()));
|
|
27
|
-
this.onAcknowledgeDataEvent = this._onAcknowledgeDataEvent.event;
|
|
28
|
-
this._onShutdown = this._register(( new Emitter()));
|
|
29
|
-
this.onShutdown = this._onShutdown.event;
|
|
30
|
-
this._onRequestInitialCwd = this._register(( new Emitter()));
|
|
31
|
-
this.onRequestInitialCwd = this._onRequestInitialCwd.event;
|
|
32
|
-
this._onRequestCwd = this._register(( new Emitter()));
|
|
33
|
-
this.onRequestCwd = this._onRequestCwd.event;
|
|
34
|
-
this._onDidChangeProperty = this._register(( new Emitter()));
|
|
35
|
-
this.onDidChangeProperty = this._onDidChangeProperty.event;
|
|
36
|
-
this._onProcessExit = this._register(( new Emitter()));
|
|
37
|
-
this.onProcessExit = this._onProcessExit.event;
|
|
38
|
-
this._pendingInitialCwdRequests = [];
|
|
39
|
-
this._pendingCwdRequests = [];
|
|
40
|
-
}
|
|
41
|
-
emitData(data) {
|
|
42
|
-
this._onProcessData.fire(data);
|
|
43
|
-
}
|
|
44
|
-
emitTitle(title) {
|
|
45
|
-
this._onDidChangeProperty.fire({ type: "title" , value: title });
|
|
46
|
-
}
|
|
47
|
-
emitReady(pid, cwd) {
|
|
48
|
-
this._onProcessReady.fire({ pid, cwd, windowsPty: undefined });
|
|
49
|
-
}
|
|
50
|
-
emitProcessProperty({ type, value }) {
|
|
51
|
-
switch (type) {
|
|
52
|
-
case "cwd" :
|
|
53
|
-
this.emitCwd(value);
|
|
54
|
-
break;
|
|
55
|
-
case "initialCwd" :
|
|
56
|
-
this.emitInitialCwd(value);
|
|
57
|
-
break;
|
|
58
|
-
case "title" :
|
|
59
|
-
this.emitTitle(value);
|
|
60
|
-
break;
|
|
61
|
-
case "overrideDimensions" :
|
|
62
|
-
this.emitOverrideDimensions(value);
|
|
63
|
-
break;
|
|
64
|
-
case "resolvedShellLaunchConfig" :
|
|
65
|
-
this.emitResolvedShellLaunchConfig(value);
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
emitExit(exitCode) {
|
|
70
|
-
this._onProcessExit.fire(exitCode);
|
|
71
|
-
this.dispose();
|
|
72
|
-
}
|
|
73
|
-
emitOverrideDimensions(dimensions) {
|
|
74
|
-
this._onDidChangeProperty.fire({ type: "overrideDimensions" , value: dimensions });
|
|
75
|
-
}
|
|
76
|
-
emitResolvedShellLaunchConfig(shellLaunchConfig) {
|
|
77
|
-
this._onDidChangeProperty.fire({ type: "resolvedShellLaunchConfig" , value: shellLaunchConfig });
|
|
78
|
-
}
|
|
79
|
-
emitInitialCwd(initialCwd) {
|
|
80
|
-
while (this._pendingInitialCwdRequests.length > 0) {
|
|
81
|
-
this._pendingInitialCwdRequests.pop()(initialCwd);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
emitCwd(cwd) {
|
|
85
|
-
while (this._pendingCwdRequests.length > 0) {
|
|
86
|
-
this._pendingCwdRequests.pop()(cwd);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
async start() {
|
|
90
|
-
return this._terminalService.requestStartExtensionTerminal(this, this._cols, this._rows);
|
|
91
|
-
}
|
|
92
|
-
shutdown(immediate) {
|
|
93
|
-
this._onShutdown.fire(immediate);
|
|
94
|
-
}
|
|
95
|
-
input(data) {
|
|
96
|
-
this._onInput.fire(data);
|
|
97
|
-
}
|
|
98
|
-
resize(cols, rows) {
|
|
99
|
-
this._onResize.fire({ cols, rows });
|
|
100
|
-
}
|
|
101
|
-
clearBuffer() {
|
|
102
|
-
}
|
|
103
|
-
acknowledgeDataEvent() {
|
|
104
|
-
}
|
|
105
|
-
async setUnicodeVersion(version) {
|
|
106
|
-
}
|
|
107
|
-
async processBinary(data) {
|
|
108
|
-
this._onBinary.fire(data);
|
|
109
|
-
}
|
|
110
|
-
getInitialCwd() {
|
|
111
|
-
return ( new Promise(resolve => {
|
|
112
|
-
this._onRequestInitialCwd.fire();
|
|
113
|
-
this._pendingInitialCwdRequests.push(resolve);
|
|
114
|
-
}));
|
|
115
|
-
}
|
|
116
|
-
getCwd() {
|
|
117
|
-
return ( new Promise(resolve => {
|
|
118
|
-
this._onRequestCwd.fire();
|
|
119
|
-
this._pendingCwdRequests.push(resolve);
|
|
120
|
-
}));
|
|
121
|
-
}
|
|
122
|
-
async refreshProperty(type) {
|
|
123
|
-
}
|
|
124
|
-
async updateProperty(type, value) {
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
TerminalProcessExtHostProxy = ( __decorate([
|
|
128
|
-
( __param(3, ITerminalService))
|
|
129
|
-
], TerminalProcessExtHostProxy));
|
|
130
|
-
export { TerminalProcessExtHostProxy };
|