@codingame/monaco-vscode-rollup-vsix-plugin 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.
- package/package.json +2 -2
- package/vscode-dts/vscode.proposed.aiRelatedInformation.d.ts +49 -0
- package/vscode-dts/vscode.proposed.authGetSessions.d.ts +62 -0
- package/vscode-dts/vscode.proposed.authSession.d.ts +13 -0
- package/vscode-dts/vscode.proposed.canonicalUriProvider.d.ts +47 -0
- package/vscode-dts/vscode.proposed.chat.d.ts +25 -0
- package/vscode-dts/vscode.proposed.chatAgents.d.ts +39 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +38 -0
- package/vscode-dts/vscode.proposed.chatRequestAccess.d.ts +47 -0
- package/vscode-dts/vscode.proposed.chatSlashCommands.d.ts +47 -0
- package/vscode-dts/vscode.proposed.chatVariables.d.ts +35 -0
- package/vscode-dts/vscode.proposed.codiconDecoration.d.ts +48 -0
- package/vscode-dts/vscode.proposed.commentsDraftState.d.ts +18 -0
- package/vscode-dts/vscode.proposed.contribCommentEditorActionsMenu.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribCommentPeekContext.d.ts +10 -0
- package/vscode-dts/vscode.proposed.contribCommentThreadAdditionalMenu.d.ts +8 -0
- package/vscode-dts/vscode.proposed.contribEditSessions.d.ts +8 -0
- package/vscode-dts/vscode.proposed.contribEditorContentMenu.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribLabelFormatterWorkspaceTooltip.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribMenuBarHome.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribMergeEditorMenus.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribNotebookStaticPreloads.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribRemoteHelp.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribShareMenu.d.ts +7 -0
- package/vscode-dts/vscode.proposed.contribStatusBarItems.d.ts +8 -0
- package/vscode-dts/vscode.proposed.contribViewsRemote.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribViewsWelcome.d.ts +6 -0
- package/vscode-dts/vscode.proposed.customEditorMove.d.ts +29 -0
- package/vscode-dts/vscode.proposed.debugFocus.d.ts +74 -0
- package/vscode-dts/vscode.proposed.diffCommand.d.ts +38 -0
- package/vscode-dts/vscode.proposed.diffContentOptions.d.ts +16 -0
- package/vscode-dts/vscode.proposed.documentFiltersExclusive.d.ts +13 -0
- package/vscode-dts/vscode.proposed.documentPaste.d.ts +111 -0
- package/vscode-dts/vscode.proposed.dropMetadata.d.ts +60 -0
- package/vscode-dts/vscode.proposed.editSessionIdentityProvider.d.ts +71 -0
- package/vscode-dts/vscode.proposed.editorInsets.d.ts +22 -0
- package/vscode-dts/vscode.proposed.extensionRuntime.d.ts +24 -0
- package/vscode-dts/vscode.proposed.extensionsAny.d.ts +40 -0
- package/vscode-dts/vscode.proposed.externalUriOpener.d.ts +163 -0
- package/vscode-dts/vscode.proposed.fileComments.d.ts +85 -0
- package/vscode-dts/vscode.proposed.fileSearchProvider.d.ts +67 -0
- package/vscode-dts/vscode.proposed.findTextInFiles.d.ts +104 -0
- package/vscode-dts/vscode.proposed.fsChunks.d.ts +16 -0
- package/vscode-dts/vscode.proposed.handleIssueUri.d.ts +31 -0
- package/vscode-dts/vscode.proposed.idToken.d.ts +16 -0
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +71 -0
- package/vscode-dts/vscode.proposed.interactive.d.ts +227 -0
- package/vscode-dts/vscode.proposed.interactiveUserActions.d.ts +70 -0
- package/vscode-dts/vscode.proposed.interactiveWindow.d.ts +25 -0
- package/vscode-dts/vscode.proposed.ipc.d.ts +37 -0
- package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +42 -0
- package/vscode-dts/vscode.proposed.notebookCellExecutionState.d.ts +52 -0
- package/vscode-dts/vscode.proposed.notebookControllerAffinityHidden.d.ts +17 -0
- package/vscode-dts/vscode.proposed.notebookDeprecated.d.ts +16 -0
- package/vscode-dts/vscode.proposed.notebookExecution.d.ts +39 -0
- package/vscode-dts/vscode.proposed.notebookKernelSource.d.ts +46 -0
- package/vscode-dts/vscode.proposed.notebookLiveShare.d.ts +21 -0
- package/vscode-dts/vscode.proposed.notebookMessaging.d.ts +68 -0
- package/vscode-dts/vscode.proposed.notebookMime.d.ts +33 -0
- package/vscode-dts/vscode.proposed.portsAttributes.d.ts +100 -0
- package/vscode-dts/vscode.proposed.profileContentHandlers.d.ts +19 -0
- package/vscode-dts/vscode.proposed.quickDiffProvider.d.ts +17 -0
- package/vscode-dts/vscode.proposed.quickPickItemTooltip.d.ts +16 -0
- package/vscode-dts/vscode.proposed.quickPickSortByLabel.d.ts +16 -0
- package/vscode-dts/vscode.proposed.readonlyMessage.d.ts +14 -0
- package/vscode-dts/vscode.proposed.resolvers.d.ts +371 -0
- package/vscode-dts/vscode.proposed.saveEditor.d.ts +35 -0
- package/vscode-dts/vscode.proposed.scmActionButton.d.ts +19 -0
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +77 -0
- package/vscode-dts/vscode.proposed.scmSelectedProvider.d.ts +22 -0
- package/vscode-dts/vscode.proposed.scmTextDocument.d.ts +19 -0
- package/vscode-dts/vscode.proposed.scmValidation.d.ts +60 -0
- package/vscode-dts/vscode.proposed.shareProvider.d.ts +74 -0
- package/vscode-dts/vscode.proposed.showLocal.d.ts +19 -0
- package/vscode-dts/vscode.proposed.tabInputTextMerge.d.ts +25 -0
- package/vscode-dts/vscode.proposed.taskPresentationGroup.d.ts +16 -0
- package/vscode-dts/vscode.proposed.telemetry.d.ts +36 -0
- package/vscode-dts/vscode.proposed.terminalDataWriteEvent.d.ts +32 -0
- package/vscode-dts/vscode.proposed.terminalDimensions.d.ts +39 -0
- package/vscode-dts/vscode.proposed.terminalExecuteCommandEvent.d.ts +46 -0
- package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +83 -0
- package/vscode-dts/vscode.proposed.terminalSelection.d.ts +16 -0
- package/vscode-dts/vscode.proposed.testCoverage.d.ts +198 -0
- package/vscode-dts/vscode.proposed.testMessageContextValue.d.ts +45 -0
- package/vscode-dts/vscode.proposed.testObserver.d.ts +184 -0
- package/vscode-dts/vscode.proposed.textSearchProvider.d.ts +281 -0
- package/vscode-dts/vscode.proposed.timeline.d.ts +163 -0
- package/vscode-dts/vscode.proposed.tokenInformation.d.ts +26 -0
- package/vscode-dts/vscode.proposed.treeViewActiveItem.d.ts +30 -0
- package/vscode-dts/vscode.proposed.treeViewMarkdownMessage.d.ts +28 -0
- package/vscode-dts/vscode.proposed.treeViewReveal.d.ts +13 -0
- package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +44 -0
- package/vscode-dts/vscode.proposed.tunnels.d.ts +64 -0
- package/vscode-dts/vscode.proposed.windowActivity.d.ts +17 -0
- package/vscode-dts/vscode.proposed.workspaceTrust.d.ts +30 -0
- package/vscode.proposed.d.ts +0 -4787
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,198 @@
|
|
|
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/123713
|
|
9
|
+
|
|
10
|
+
export interface TestRun {
|
|
11
|
+
/**
|
|
12
|
+
* Test coverage provider for this result. An extension can defer setting
|
|
13
|
+
* this until after a run is complete and coverage is available.
|
|
14
|
+
*/
|
|
15
|
+
coverageProvider?: TestCoverageProvider;
|
|
16
|
+
// ...
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Provides information about test coverage for a test result.
|
|
21
|
+
* Methods on the provider will not be called until the test run is complete
|
|
22
|
+
*/
|
|
23
|
+
export interface TestCoverageProvider<T extends FileCoverage = FileCoverage> {
|
|
24
|
+
/**
|
|
25
|
+
* Returns coverage information for all files involved in the test run.
|
|
26
|
+
* @param token A cancellation token.
|
|
27
|
+
* @return Coverage metadata for all files involved in the test.
|
|
28
|
+
*/
|
|
29
|
+
provideFileCoverage(token: CancellationToken): ProviderResult<T[]>;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Give a FileCoverage to fill in more data, namely {@link FileCoverage.detailedCoverage}.
|
|
33
|
+
* The editor will only resolve a FileCoverage once, and only if detailedCoverage
|
|
34
|
+
* is undefined.
|
|
35
|
+
*
|
|
36
|
+
* @param coverage A coverage object obtained from {@link provideFileCoverage}
|
|
37
|
+
* @param token A cancellation token.
|
|
38
|
+
* @return The resolved file coverage, or a thenable that resolves to one. It
|
|
39
|
+
* is OK to return the given `coverage`. When no result is returned, the
|
|
40
|
+
* given `coverage` will be used.
|
|
41
|
+
*/
|
|
42
|
+
resolveFileCoverage?(coverage: T, token: CancellationToken): ProviderResult<T>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* A class that contains information about a covered resource. A count can
|
|
47
|
+
* be give for lines, branches, and functions in a file.
|
|
48
|
+
*/
|
|
49
|
+
export class CoveredCount {
|
|
50
|
+
/**
|
|
51
|
+
* Number of items covered in the file.
|
|
52
|
+
*/
|
|
53
|
+
covered: number;
|
|
54
|
+
/**
|
|
55
|
+
* Total number of covered items in the file.
|
|
56
|
+
*/
|
|
57
|
+
total: number;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @param covered Value for {@link CovereredCount.covered}
|
|
61
|
+
* @param total Value for {@link CovereredCount.total}
|
|
62
|
+
*/
|
|
63
|
+
constructor(covered: number, total: number);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Contains coverage metadata for a file.
|
|
68
|
+
*/
|
|
69
|
+
export class FileCoverage {
|
|
70
|
+
/**
|
|
71
|
+
* File URI.
|
|
72
|
+
*/
|
|
73
|
+
readonly uri: Uri;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Statement coverage information. If the reporter does not provide statement
|
|
77
|
+
* coverage information, this can instead be used to represent line coverage.
|
|
78
|
+
*/
|
|
79
|
+
statementCoverage: CoveredCount;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Branch coverage information.
|
|
83
|
+
*/
|
|
84
|
+
branchCoverage?: CoveredCount;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Function coverage information.
|
|
88
|
+
*/
|
|
89
|
+
functionCoverage?: CoveredCount;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Detailed, per-statement coverage. If this is undefined, the editor will
|
|
93
|
+
* call {@link TestCoverageProvider.resolveFileCoverage} when necessary.
|
|
94
|
+
*/
|
|
95
|
+
detailedCoverage?: DetailedCoverage[];
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Creates a {@link FileCoverage} instance with counts filled in from
|
|
99
|
+
* the coverage details.
|
|
100
|
+
* @param uri Covered file URI
|
|
101
|
+
* @param detailed Detailed coverage information
|
|
102
|
+
*/
|
|
103
|
+
static fromDetails(uri: Uri, details: readonly DetailedCoverage[]): FileCoverage;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @param uri Covered file URI
|
|
107
|
+
* @param statementCoverage Statement coverage information. If the reporter
|
|
108
|
+
* does not provide statement coverage information, this can instead be
|
|
109
|
+
* used to represent line coverage.
|
|
110
|
+
* @param branchCoverage Branch coverage information
|
|
111
|
+
* @param functionCoverage Function coverage information
|
|
112
|
+
*/
|
|
113
|
+
constructor(
|
|
114
|
+
uri: Uri,
|
|
115
|
+
statementCoverage: CoveredCount,
|
|
116
|
+
branchCoverage?: CoveredCount,
|
|
117
|
+
functionCoverage?: CoveredCount,
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Contains coverage information for a single statement or line.
|
|
123
|
+
*/
|
|
124
|
+
export class StatementCoverage {
|
|
125
|
+
/**
|
|
126
|
+
* The number of times this statement was executed. If zero, the
|
|
127
|
+
* statement will be marked as un-covered.
|
|
128
|
+
*/
|
|
129
|
+
executionCount: number;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Statement location.
|
|
133
|
+
*/
|
|
134
|
+
location: Position | Range;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Coverage from branches of this line or statement. If it's not a
|
|
138
|
+
* conditional, this will be empty.
|
|
139
|
+
*/
|
|
140
|
+
branches: BranchCoverage[];
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @param location The statement position.
|
|
144
|
+
* @param executionCount The number of times this statement was
|
|
145
|
+
* executed. If zero, the statement will be marked as un-covered.
|
|
146
|
+
* @param branches Coverage from branches of this line. If it's not a
|
|
147
|
+
* conditional, this should be omitted.
|
|
148
|
+
*/
|
|
149
|
+
constructor(executionCount: number, location: Position | Range, branches?: BranchCoverage[]);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Contains coverage information for a branch of a {@link StatementCoverage}.
|
|
154
|
+
*/
|
|
155
|
+
export class BranchCoverage {
|
|
156
|
+
/**
|
|
157
|
+
* The number of times this branch was executed. If zero, the
|
|
158
|
+
* branch will be marked as un-covered.
|
|
159
|
+
*/
|
|
160
|
+
executionCount: number;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Branch location.
|
|
164
|
+
*/
|
|
165
|
+
location?: Position | Range;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @param executionCount The number of times this branch was executed.
|
|
169
|
+
* @param location The branch position.
|
|
170
|
+
*/
|
|
171
|
+
constructor(executionCount: number, location?: Position | Range);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Contains coverage information for a function or method.
|
|
176
|
+
*/
|
|
177
|
+
export class FunctionCoverage {
|
|
178
|
+
/**
|
|
179
|
+
* The number of times this function was executed. If zero, the
|
|
180
|
+
* function will be marked as un-covered.
|
|
181
|
+
*/
|
|
182
|
+
executionCount: number;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Function location.
|
|
186
|
+
*/
|
|
187
|
+
location: Position | Range;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @param executionCount The number of times this function was executed.
|
|
191
|
+
* @param location The function position.
|
|
192
|
+
*/
|
|
193
|
+
constructor(executionCount: number, location: Position | Range);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export type DetailedCoverage = StatementCoverage | FunctionCoverage;
|
|
197
|
+
|
|
198
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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/190277
|
|
9
|
+
|
|
10
|
+
export class TestMessage2 extends TestMessage {
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Context value of the test item. This can be used to contribute message-
|
|
14
|
+
* specific actions to the test peek view. The value set here can be found
|
|
15
|
+
* in the `testMessage` property of the following `menus` contribution points:
|
|
16
|
+
*
|
|
17
|
+
* - `testing/message/context` - context menu for the message in the results tree
|
|
18
|
+
* - `testing/message/content` - a prominent button overlaying editor content where
|
|
19
|
+
* the message is displayed.
|
|
20
|
+
*
|
|
21
|
+
* For example:
|
|
22
|
+
*
|
|
23
|
+
* ```json
|
|
24
|
+
* "contributes": {
|
|
25
|
+
* "menus": {
|
|
26
|
+
* "testing/message/content": [
|
|
27
|
+
* {
|
|
28
|
+
* "command": "extension.deleteCommentThread",
|
|
29
|
+
* "when": "testMessage == canApplyRichDiff"
|
|
30
|
+
* }
|
|
31
|
+
* ]
|
|
32
|
+
* }
|
|
33
|
+
* }
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* The command will be called with an object containing:
|
|
37
|
+
* - `test`: the {@link TestItem} the message is associated with, *if* it
|
|
38
|
+
* is still present in the {@link TestController.items} collection.
|
|
39
|
+
* - `message`: the {@link TestMessage} instance.
|
|
40
|
+
*/
|
|
41
|
+
contextValue?: string;
|
|
42
|
+
|
|
43
|
+
// ...
|
|
44
|
+
}
|
|
45
|
+
}
|