@codingame/monaco-vscode-api 1.83.14 → 1.83.15

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.
Files changed (130) hide show
  1. package/api.js +1 -1
  2. package/contributions.js +36 -0
  3. package/extensions.d.ts +83 -4
  4. package/extensions.js +9 -14
  5. package/lifecycle.js +4 -1
  6. package/localExtensionHost.js +207 -0
  7. package/missing-services.js +15 -3
  8. package/monaco-editor-treemending.patch +966 -955
  9. package/monaco.js +4 -36
  10. package/package.json +10 -6
  11. package/service-override/tools/editor.d.ts +6 -6
  12. package/services.d.ts +18 -18
  13. package/services.js +1 -0
  14. package/vscode/src/vs/base/common/errors.d.ts +1 -8
  15. package/vscode/src/vs/base/common/uri.d.ts +1 -7
  16. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +2 -27
  17. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +39 -1
  18. package/vscode/src/vs/platform/workspace/common/workspace.d.ts +1 -44
  19. package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +160 -2
  20. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +564 -11
  21. package/vscode/src/vs/workbench/contrib/scm/common/scm.js +9 -1
  22. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +1 -0
  23. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +594 -2
  24. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +307 -1
  25. package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.d.ts +10 -0
  26. package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +2 -37
  27. package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.d.ts +2 -73
  28. package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +1 -5
  29. package/vscode/src/vs/workbench/services/textfile/common/textfiles.js +6 -2
  30. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +174 -0
  31. package/vscode-dts/vscode.proposed.aiRelatedInformation.d.ts +49 -0
  32. package/vscode-dts/vscode.proposed.authGetSessions.d.ts +62 -0
  33. package/vscode-dts/vscode.proposed.authSession.d.ts +13 -0
  34. package/vscode-dts/vscode.proposed.canonicalUriProvider.d.ts +47 -0
  35. package/vscode-dts/vscode.proposed.chat.d.ts +25 -0
  36. package/vscode-dts/vscode.proposed.chatAgents.d.ts +39 -0
  37. package/vscode-dts/vscode.proposed.chatProvider.d.ts +38 -0
  38. package/vscode-dts/vscode.proposed.chatRequestAccess.d.ts +47 -0
  39. package/vscode-dts/vscode.proposed.chatSlashCommands.d.ts +47 -0
  40. package/vscode-dts/vscode.proposed.chatVariables.d.ts +35 -0
  41. package/vscode-dts/vscode.proposed.codiconDecoration.d.ts +48 -0
  42. package/vscode-dts/vscode.proposed.commentsDraftState.d.ts +18 -0
  43. package/vscode-dts/vscode.proposed.contribCommentEditorActionsMenu.d.ts +6 -0
  44. package/vscode-dts/vscode.proposed.contribCommentPeekContext.d.ts +10 -0
  45. package/vscode-dts/vscode.proposed.contribCommentThreadAdditionalMenu.d.ts +8 -0
  46. package/vscode-dts/vscode.proposed.contribEditSessions.d.ts +8 -0
  47. package/vscode-dts/vscode.proposed.contribEditorContentMenu.d.ts +6 -0
  48. package/vscode-dts/vscode.proposed.contribLabelFormatterWorkspaceTooltip.d.ts +6 -0
  49. package/vscode-dts/vscode.proposed.contribMenuBarHome.d.ts +6 -0
  50. package/vscode-dts/vscode.proposed.contribMergeEditorMenus.d.ts +6 -0
  51. package/vscode-dts/vscode.proposed.contribNotebookStaticPreloads.d.ts +6 -0
  52. package/vscode-dts/vscode.proposed.contribRemoteHelp.d.ts +6 -0
  53. package/vscode-dts/vscode.proposed.contribShareMenu.d.ts +7 -0
  54. package/vscode-dts/vscode.proposed.contribStatusBarItems.d.ts +8 -0
  55. package/vscode-dts/vscode.proposed.contribViewsRemote.d.ts +6 -0
  56. package/vscode-dts/vscode.proposed.contribViewsWelcome.d.ts +6 -0
  57. package/vscode-dts/vscode.proposed.customEditorMove.d.ts +29 -0
  58. package/vscode-dts/vscode.proposed.debugFocus.d.ts +74 -0
  59. package/vscode-dts/vscode.proposed.diffCommand.d.ts +38 -0
  60. package/vscode-dts/vscode.proposed.diffContentOptions.d.ts +16 -0
  61. package/vscode-dts/vscode.proposed.documentFiltersExclusive.d.ts +13 -0
  62. package/vscode-dts/vscode.proposed.documentPaste.d.ts +111 -0
  63. package/vscode-dts/vscode.proposed.dropMetadata.d.ts +60 -0
  64. package/vscode-dts/vscode.proposed.editSessionIdentityProvider.d.ts +71 -0
  65. package/vscode-dts/vscode.proposed.editorInsets.d.ts +22 -0
  66. package/vscode-dts/vscode.proposed.extensionRuntime.d.ts +24 -0
  67. package/vscode-dts/vscode.proposed.extensionsAny.d.ts +40 -0
  68. package/vscode-dts/vscode.proposed.externalUriOpener.d.ts +163 -0
  69. package/vscode-dts/vscode.proposed.fileComments.d.ts +85 -0
  70. package/vscode-dts/vscode.proposed.fileSearchProvider.d.ts +67 -0
  71. package/vscode-dts/vscode.proposed.findTextInFiles.d.ts +104 -0
  72. package/vscode-dts/vscode.proposed.fsChunks.d.ts +16 -0
  73. package/vscode-dts/vscode.proposed.handleIssueUri.d.ts +31 -0
  74. package/vscode-dts/vscode.proposed.idToken.d.ts +16 -0
  75. package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +71 -0
  76. package/vscode-dts/vscode.proposed.interactive.d.ts +227 -0
  77. package/vscode-dts/vscode.proposed.interactiveUserActions.d.ts +70 -0
  78. package/vscode-dts/vscode.proposed.interactiveWindow.d.ts +25 -0
  79. package/vscode-dts/vscode.proposed.ipc.d.ts +37 -0
  80. package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +42 -0
  81. package/vscode-dts/vscode.proposed.notebookCellExecutionState.d.ts +52 -0
  82. package/vscode-dts/vscode.proposed.notebookControllerAffinityHidden.d.ts +17 -0
  83. package/vscode-dts/vscode.proposed.notebookDeprecated.d.ts +16 -0
  84. package/vscode-dts/vscode.proposed.notebookExecution.d.ts +39 -0
  85. package/vscode-dts/vscode.proposed.notebookKernelSource.d.ts +46 -0
  86. package/vscode-dts/vscode.proposed.notebookLiveShare.d.ts +21 -0
  87. package/vscode-dts/vscode.proposed.notebookMessaging.d.ts +68 -0
  88. package/vscode-dts/vscode.proposed.notebookMime.d.ts +33 -0
  89. package/vscode-dts/vscode.proposed.portsAttributes.d.ts +100 -0
  90. package/vscode-dts/vscode.proposed.profileContentHandlers.d.ts +19 -0
  91. package/vscode-dts/vscode.proposed.quickDiffProvider.d.ts +17 -0
  92. package/vscode-dts/vscode.proposed.quickPickItemTooltip.d.ts +16 -0
  93. package/vscode-dts/vscode.proposed.quickPickSortByLabel.d.ts +16 -0
  94. package/vscode-dts/vscode.proposed.readonlyMessage.d.ts +14 -0
  95. package/vscode-dts/vscode.proposed.resolvers.d.ts +371 -0
  96. package/vscode-dts/vscode.proposed.saveEditor.d.ts +35 -0
  97. package/vscode-dts/vscode.proposed.scmActionButton.d.ts +19 -0
  98. package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +77 -0
  99. package/vscode-dts/vscode.proposed.scmSelectedProvider.d.ts +22 -0
  100. package/vscode-dts/vscode.proposed.scmTextDocument.d.ts +19 -0
  101. package/vscode-dts/vscode.proposed.scmValidation.d.ts +60 -0
  102. package/vscode-dts/vscode.proposed.shareProvider.d.ts +74 -0
  103. package/vscode-dts/vscode.proposed.showLocal.d.ts +19 -0
  104. package/vscode-dts/vscode.proposed.tabInputTextMerge.d.ts +25 -0
  105. package/vscode-dts/vscode.proposed.taskPresentationGroup.d.ts +16 -0
  106. package/vscode-dts/vscode.proposed.telemetry.d.ts +36 -0
  107. package/vscode-dts/vscode.proposed.terminalDataWriteEvent.d.ts +32 -0
  108. package/vscode-dts/vscode.proposed.terminalDimensions.d.ts +39 -0
  109. package/vscode-dts/vscode.proposed.terminalExecuteCommandEvent.d.ts +46 -0
  110. package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +83 -0
  111. package/vscode-dts/vscode.proposed.terminalSelection.d.ts +16 -0
  112. package/vscode-dts/vscode.proposed.testCoverage.d.ts +198 -0
  113. package/vscode-dts/vscode.proposed.testMessageContextValue.d.ts +45 -0
  114. package/vscode-dts/vscode.proposed.testObserver.d.ts +184 -0
  115. package/vscode-dts/vscode.proposed.textSearchProvider.d.ts +281 -0
  116. package/vscode-dts/vscode.proposed.timeline.d.ts +163 -0
  117. package/vscode-dts/vscode.proposed.tokenInformation.d.ts +26 -0
  118. package/vscode-dts/vscode.proposed.treeViewActiveItem.d.ts +30 -0
  119. package/vscode-dts/vscode.proposed.treeViewMarkdownMessage.d.ts +28 -0
  120. package/vscode-dts/vscode.proposed.treeViewReveal.d.ts +13 -0
  121. package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +44 -0
  122. package/vscode-dts/vscode.proposed.tunnels.d.ts +64 -0
  123. package/vscode-dts/vscode.proposed.windowActivity.d.ts +17 -0
  124. package/vscode-dts/vscode.proposed.workspaceTrust.d.ts +30 -0
  125. package/vscode/src/vs/base/common/ternarySearchTree.d.ts +0 -46
  126. package/vscode/src/vs/base/common/uriIpc.d.ts +0 -10
  127. package/vscode/src/vs/platform/workspace/common/editSessions.d.ts +0 -7
  128. package/vscode/src/vs/workbench/services/extensions/common/proxyIdentifier.d.ts +0 -44
  129. package/vscode/src/vs/workbench/services/search/common/search.d.ts +0 -52
  130. package/vscode.proposed.d.ts +0 -4787
@@ -0,0 +1,77 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ declare module 'vscode' {
7
+ // https://github.com/microsoft/vscode/issues/185269
8
+
9
+ export interface SourceControl {
10
+ historyProvider?: SourceControlHistoryProvider;
11
+ }
12
+
13
+ export interface SourceControlHistoryProvider {
14
+ actionButton?: SourceControlActionButton;
15
+ currentHistoryItemGroup?: SourceControlHistoryItemGroup;
16
+
17
+ /**
18
+ * Fires when the action button changes
19
+ */
20
+ onDidChangeActionButton: Event<void>;
21
+
22
+ /**
23
+ * Fires when the current history item group changes (ex: checkout)
24
+ */
25
+ onDidChangeCurrentHistoryItemGroup: Event<void>;
26
+
27
+ /**
28
+ * Fires when the history item groups change (ex: commit, push, fetch)
29
+ */
30
+ // onDidChangeHistoryItemGroups: Event<SourceControlHistoryChangeEvent>;
31
+
32
+ provideHistoryItems(historyItemGroupId: string, options: SourceControlHistoryOptions, token: CancellationToken): ProviderResult<SourceControlHistoryItem[]>;
33
+ provideHistoryItemChanges(historyItemId: string, token: CancellationToken): ProviderResult<SourceControlHistoryItemChange[]>;
34
+
35
+ resolveHistoryItemGroupBase(historyItemGroupId: string, token: CancellationToken): ProviderResult<SourceControlHistoryItemGroup | undefined>;
36
+ resolveHistoryItemGroupCommonAncestor(historyItemGroupId1: string, historyItemGroupId: string, token: CancellationToken): ProviderResult<{ id: string; ahead: number; behind: number }>;
37
+ }
38
+
39
+ export interface SourceControlHistoryOptions {
40
+ readonly cursor?: string;
41
+ readonly limit?: number | { id?: string };
42
+ }
43
+
44
+ export interface SourceControlHistoryItemGroup {
45
+ readonly id: string;
46
+ readonly label: string;
47
+ readonly upstream?: SourceControlRemoteHistoryItemGroup;
48
+ }
49
+
50
+ export interface SourceControlRemoteHistoryItemGroup {
51
+ readonly id: string;
52
+ readonly label: string;
53
+ }
54
+
55
+ export interface SourceControlHistoryItem {
56
+ readonly id: string;
57
+ readonly parentIds: string[];
58
+ readonly label: string;
59
+ readonly description?: string;
60
+ readonly icon?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
61
+ readonly timestamp?: number;
62
+ }
63
+
64
+ export interface SourceControlHistoryItemChange {
65
+ readonly uri: Uri;
66
+ readonly originalUri: Uri | undefined;
67
+ readonly modifiedUri: Uri | undefined;
68
+ readonly renameUri: Uri | undefined;
69
+ }
70
+
71
+ // export interface SourceControlHistoryChangeEvent {
72
+ // readonly added: Iterable<SourceControlHistoryItemGroup>;
73
+ // readonly removed: Iterable<SourceControlHistoryItemGroup>;
74
+ // readonly modified: Iterable<SourceControlHistoryItemGroup>;
75
+ // }
76
+
77
+ }
@@ -0,0 +1,22 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ declare module 'vscode' {
7
+
8
+ // todo@joaomoreno add issue reference
9
+
10
+ export interface SourceControl {
11
+
12
+ /**
13
+ * Whether the source control is selected.
14
+ */
15
+ readonly selected: boolean;
16
+
17
+ /**
18
+ * An event signaling when the selection state changes.
19
+ */
20
+ readonly onDidChangeSelection: Event<boolean>;
21
+ }
22
+ }
@@ -0,0 +1,19 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ declare module 'vscode' {
7
+ // https://github.com/microsoft/vscode/issues/166615
8
+
9
+ /**
10
+ * Represents the input box in the Source Control viewlet.
11
+ */
12
+ export interface SourceControlInputBox {
13
+
14
+ /**
15
+ * The {@link TextDocument text} of the input box.
16
+ */
17
+ readonly document: TextDocument;
18
+ }
19
+ }
@@ -0,0 +1,60 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ declare module 'vscode' {
7
+
8
+ // todo@joaomoreno add issue reference
9
+
10
+ /**
11
+ * Represents the validation type of the Source Control input.
12
+ */
13
+ export enum SourceControlInputBoxValidationType {
14
+
15
+ /**
16
+ * Something not allowed by the rules of a language or other means.
17
+ */
18
+ Error = 0,
19
+
20
+ /**
21
+ * Something suspicious but allowed.
22
+ */
23
+ Warning = 1,
24
+
25
+ /**
26
+ * Something to inform about but not a problem.
27
+ */
28
+ Information = 2
29
+ }
30
+
31
+ export interface SourceControlInputBoxValidation {
32
+
33
+ /**
34
+ * The validation message to display.
35
+ */
36
+ readonly message: string | MarkdownString;
37
+
38
+ /**
39
+ * The validation type.
40
+ */
41
+ readonly type: SourceControlInputBoxValidationType;
42
+ }
43
+
44
+ /**
45
+ * Represents the input box in the Source Control viewlet.
46
+ */
47
+ export interface SourceControlInputBox {
48
+
49
+ /**
50
+ * Shows a transient contextual message on the input.
51
+ */
52
+ showValidationMessage(message: string | MarkdownString, type: SourceControlInputBoxValidationType): void;
53
+
54
+ /**
55
+ * A validation function for the input box. It's possible to change
56
+ * the validation provider simply by setting this property to a different function.
57
+ */
58
+ validateInput?(value: string, cursorPosition: number): ProviderResult<SourceControlInputBoxValidation>;
59
+ }
60
+ }
@@ -0,0 +1,74 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ // https://github.com/microsoft/vscode/issues/176316 @joyceerhl
7
+
8
+ declare module 'vscode' {
9
+
10
+ /**
11
+ * Data about an item which can be shared.
12
+ */
13
+ export interface ShareableItem {
14
+ /**
15
+ * A resource in the workspace that can be shared.
16
+ */
17
+ resourceUri: Uri;
18
+
19
+ /**
20
+ * If present, a selection within the `resourceUri`.
21
+ */
22
+ selection?: Range;
23
+ }
24
+
25
+ /**
26
+ * A provider which generates share links for resources in the editor.
27
+ */
28
+ export interface ShareProvider {
29
+
30
+ /**
31
+ * A unique ID for the provider.
32
+ * This will be used to activate specific extensions contributing share providers if necessary.
33
+ */
34
+ readonly id: string;
35
+
36
+ /**
37
+ * A label which will be used to present this provider's options in the UI.
38
+ */
39
+ readonly label: string;
40
+
41
+ /**
42
+ * The order in which the provider should be listed in the UI when there are multiple providers.
43
+ */
44
+ readonly priority: number;
45
+
46
+ /**
47
+ *
48
+ * @param item Data about an item which can be shared.
49
+ * @param token A cancellation token.
50
+ * @returns A {@link Uri} representing an external link or sharing text. The provider result
51
+ * will be copied to the user's clipboard and presented in a confirmation dialog.
52
+ */
53
+ provideShare(item: ShareableItem, token: CancellationToken): ProviderResult<Uri | string>;
54
+ }
55
+
56
+ export namespace window {
57
+
58
+ /**
59
+ * Register a share provider. An extension may register multiple share providers.
60
+ * There may be multiple share providers for the same {@link ShareableItem}.
61
+ * @param selector A document selector to filter whether the provider should be shown for a {@link ShareableItem}.
62
+ * @param provider A share provider.
63
+ */
64
+ export function registerShareProvider(selector: DocumentSelector, provider: ShareProvider): Disposable;
65
+ }
66
+
67
+ export interface TreeItem {
68
+
69
+ /**
70
+ * An optional property which, when set, inlines a `Share` option in the context menu for this tree item.
71
+ */
72
+ shareableItem?: ShareableItem;
73
+ }
74
+ }
@@ -0,0 +1,19 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ // https://github.com/microsoft/vscode/issues/131138
7
+
8
+ declare module 'vscode' {
9
+
10
+ export interface OpenDialogOptions {
11
+ /**
12
+ * Controls whether the dialog allows users to select local files via the "Show Local" button.
13
+ * Extensions that set this to `true` should check the scheme of the selected file.
14
+ * Resources with the `file` scheme come from the same extension host as the extension.
15
+ * Resources with the `vscode-local` scheme come from an extension host running in the same place as the UI.
16
+ */
17
+ allowUIResources?: boolean;
18
+ }
19
+ }
@@ -0,0 +1,25 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ // https://github.com/microsoft/vscode/issues/153213
7
+
8
+ declare module 'vscode' {
9
+
10
+ export class TabInputTextMerge {
11
+
12
+ readonly base: Uri;
13
+ readonly input1: Uri;
14
+ readonly input2: Uri;
15
+ readonly result: Uri;
16
+
17
+ constructor(base: Uri, input1: Uri, input2: Uri, result: Uri);
18
+ }
19
+
20
+ export interface Tab {
21
+
22
+ readonly input: TabInputText | TabInputTextDiff | TabInputTextMerge | TabInputCustom | TabInputWebview | TabInputNotebook | TabInputNotebookDiff | TabInputTerminal | unknown;
23
+
24
+ }
25
+ }
@@ -0,0 +1,16 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ declare module 'vscode' {
7
+
8
+ // https://github.com/microsoft/vscode/issues/47265
9
+
10
+ export interface TaskPresentationOptions {
11
+ /**
12
+ * Controls whether the task is executed in a specific terminal group using split panes.
13
+ */
14
+ group?: string;
15
+ }
16
+ }
@@ -0,0 +1,36 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ declare module 'vscode' {
7
+
8
+ export interface TelemetryConfiguration {
9
+ /**
10
+ * Whether or not usage telemetry collection is allowed
11
+ */
12
+ readonly isUsageEnabled: boolean;
13
+ /**
14
+ * Whether or not crash error telemetry collection is allowed
15
+ */
16
+ readonly isErrorsEnabled: boolean;
17
+ /**
18
+ * Whether or not crash report collection is allowed
19
+ */
20
+ readonly isCrashEnabled: boolean;
21
+ }
22
+
23
+ export namespace env {
24
+ /**
25
+ * Indicates what telemetry is enabled / disabled
26
+ * Can be observed to determine what telemetry the extension is allowed to send
27
+ */
28
+ export const telemetryConfiguration: TelemetryConfiguration;
29
+
30
+ /**
31
+ * An {@link Event} which fires when the collectable state of telemetry changes
32
+ * Returns a {@link TelemetryConfiguration} object
33
+ */
34
+ export const onDidChangeTelemetryConfiguration: Event<TelemetryConfiguration | undefined>;
35
+ }
36
+ }
@@ -0,0 +1,32 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ declare module 'vscode' {
7
+
8
+ // https://github.com/microsoft/vscode/issues/78502
9
+ //
10
+ // This API is still proposed but we don't intent on promoting it to stable due to problems
11
+ // around performance. See #145234 for a more likely API to get stabilized.
12
+
13
+ export interface TerminalDataWriteEvent {
14
+ /**
15
+ * The {@link Terminal} for which the data was written.
16
+ */
17
+ readonly terminal: Terminal;
18
+ /**
19
+ * The data being written.
20
+ */
21
+ readonly data: string;
22
+ }
23
+
24
+ namespace window {
25
+ /**
26
+ * An event which fires when the terminal's child pseudo-device is written to (the shell).
27
+ * In other words, this provides access to the raw data stream from the process running
28
+ * within the terminal, including VT sequences.
29
+ */
30
+ export const onDidWriteTerminalData: Event<TerminalDataWriteEvent>;
31
+ }
32
+ }
@@ -0,0 +1,39 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ declare module 'vscode' {
7
+
8
+ // https://github.com/microsoft/vscode/issues/55718
9
+
10
+ /**
11
+ * An {@link Event} which fires when a {@link Terminal}'s dimensions change.
12
+ */
13
+ export interface TerminalDimensionsChangeEvent {
14
+ /**
15
+ * The {@link Terminal} for which the dimensions have changed.
16
+ */
17
+ readonly terminal: Terminal;
18
+ /**
19
+ * The new value for the {@link Terminal.dimensions terminal's dimensions}.
20
+ */
21
+ readonly dimensions: TerminalDimensions;
22
+ }
23
+
24
+ export namespace window {
25
+ /**
26
+ * An event which fires when the {@link Terminal.dimensions dimensions} of the terminal change.
27
+ */
28
+ export const onDidChangeTerminalDimensions: Event<TerminalDimensionsChangeEvent>;
29
+ }
30
+
31
+ export interface Terminal {
32
+ /**
33
+ * The current dimensions of the terminal. This will be `undefined` immediately after the
34
+ * terminal is created as the dimensions are not known until shortly after the terminal is
35
+ * created.
36
+ */
37
+ readonly dimensions: TerminalDimensions | undefined;
38
+ }
39
+ }
@@ -0,0 +1,46 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ declare module 'vscode' {
7
+
8
+ // https://github.com/microsoft/vscode/issues/145234
9
+
10
+ export interface TerminalExecutedCommand {
11
+ /**
12
+ * The {@link Terminal} the command was executed in.
13
+ */
14
+ terminal: Terminal;
15
+ /**
16
+ * The full command line that was executed, including both the command and the arguments.
17
+ */
18
+ commandLine: string | undefined;
19
+ /**
20
+ * The current working directory that was reported by the shell. This will be a {@link Uri}
21
+ * if the string reported by the shell can reliably be mapped to the connected machine.
22
+ */
23
+ cwd: Uri | string | undefined;
24
+ /**
25
+ * The exit code reported by the shell.
26
+ */
27
+ exitCode: number | undefined;
28
+ /**
29
+ * The output of the command when it has finished executing. This is the plain text shown in
30
+ * the terminal buffer and does not include raw escape sequences. Depending on the shell
31
+ * setup, this may include the command line as part of the output.
32
+ */
33
+ output: string | undefined;
34
+ }
35
+
36
+ export namespace window {
37
+ /**
38
+ * An event that is emitted when a terminal with shell integration activated has completed
39
+ * executing a command.
40
+ *
41
+ * Note that this event will not fire if the executed command exits the shell, listen to
42
+ * {@link onDidCloseTerminal} to handle that case.
43
+ */
44
+ export const onDidExecuteTerminalCommand: Event<TerminalExecutedCommand>;
45
+ }
46
+ }
@@ -0,0 +1,83 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ declare module 'vscode' {
7
+
8
+ // https://github.com/microsoft/vscode/issues/162950
9
+
10
+ export type SingleOrMany<T> = T[] | T;
11
+
12
+ export interface TerminalQuickFixProvider {
13
+ /**
14
+ * Provides terminal quick fixes
15
+ * @param commandMatchResult The command match result for which to provide quick fixes
16
+ * @param token A cancellation token indicating the result is no longer needed
17
+ * @return Terminal quick fix(es) if any
18
+ */
19
+ provideTerminalQuickFixes(commandMatchResult: TerminalCommandMatchResult, token: CancellationToken): ProviderResult<SingleOrMany<TerminalQuickFixExecuteTerminalCommand | TerminalQuickFixOpener | Command>>;
20
+ }
21
+
22
+
23
+ export interface TerminalCommandMatchResult {
24
+ commandLine: string;
25
+ commandLineMatch: RegExpMatchArray;
26
+ outputMatch?: {
27
+ regexMatch: RegExpMatchArray;
28
+ outputLines: string[];
29
+ };
30
+ }
31
+
32
+ export namespace window {
33
+ /**
34
+ * @param provider A terminal quick fix provider
35
+ * @return A {@link Disposable} that unregisters the provider when being disposed
36
+ */
37
+ export function registerTerminalQuickFixProvider(id: string, provider: TerminalQuickFixProvider): Disposable;
38
+ }
39
+
40
+ export class TerminalQuickFixExecuteTerminalCommand {
41
+ /**
42
+ * The terminal command to run
43
+ */
44
+ terminalCommand: string;
45
+ constructor(terminalCommand: string);
46
+ }
47
+ export class TerminalQuickFixOpener {
48
+ /**
49
+ * The uri to open
50
+ */
51
+ uri: Uri;
52
+ constructor(uri: Uri);
53
+ }
54
+
55
+ /**
56
+ * A matcher that runs on a sub-section of a terminal command's output
57
+ */
58
+ interface TerminalOutputMatcher {
59
+ /**
60
+ * A string or regex to match against the unwrapped line. If this is a regex with the multiline
61
+ * flag, it will scan an amount of lines equal to `\n` instances in the regex + 1.
62
+ */
63
+ lineMatcher: string | RegExp;
64
+ /**
65
+ * Which side of the output to anchor the {@link offset} and {@link length} against.
66
+ */
67
+ anchor: TerminalOutputAnchor;
68
+ /**
69
+ * The number of rows above or below the {@link anchor} to start matching against.
70
+ */
71
+ offset: number;
72
+ /**
73
+ * The number of wrapped lines to match against, this should be as small as possible for performance
74
+ * reasons. This is capped at 40.
75
+ */
76
+ length: number;
77
+ }
78
+
79
+ enum TerminalOutputAnchor {
80
+ Top = 0,
81
+ Bottom = 1
82
+ }
83
+ }
@@ -0,0 +1,16 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ declare module 'vscode' {
7
+
8
+ // https://github.com/microsoft/vscode/issues/188173
9
+
10
+ export interface Terminal {
11
+ /**
12
+ * The selected text of the terminal or undefined if there is no selection.
13
+ */
14
+ readonly selection: string | undefined;
15
+ }
16
+ }