@theia/plugin-ext 1.42.0 → 1.43.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/lib/common/arrays.d.ts +4 -0
- package/lib/common/arrays.d.ts.map +1 -1
- package/lib/common/arrays.js +15 -1
- package/lib/common/arrays.js.map +1 -1
- package/lib/common/commands.d.ts +4 -0
- package/lib/common/commands.d.ts.map +1 -0
- package/lib/common/commands.js +17 -0
- package/lib/common/commands.js.map +1 -0
- package/lib/common/plugin-api-rpc-model.d.ts +1 -0
- package/lib/common/plugin-api-rpc-model.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc-model.js.map +1 -1
- package/lib/common/plugin-api-rpc.d.ts +48 -6
- package/lib/common/plugin-api-rpc.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc.js +3 -2
- package/lib/common/plugin-api-rpc.js.map +1 -1
- package/lib/common/plugin-protocol.d.ts +27 -3
- package/lib/common/plugin-protocol.d.ts.map +1 -1
- package/lib/common/plugin-protocol.js +8 -1
- package/lib/common/plugin-protocol.js.map +1 -1
- package/lib/common/test-types.d.ts +83 -0
- package/lib/common/test-types.d.ts.map +1 -0
- package/lib/common/test-types.js +40 -0
- package/lib/common/test-types.js.map +1 -0
- package/lib/hosted/browser/hosted-plugin.d.ts +4 -1
- package/lib/hosted/browser/hosted-plugin.d.ts.map +1 -1
- package/lib/hosted/browser/hosted-plugin.js +11 -0
- package/lib/hosted/browser/hosted-plugin.js.map +1 -1
- package/lib/hosted/node/hosted-plugin-localization-service.d.ts.map +1 -1
- package/lib/hosted/node/hosted-plugin-localization-service.js +71 -33
- package/lib/hosted/node/hosted-plugin-localization-service.js.map +1 -1
- package/lib/hosted/node/plugin-reader.d.ts.map +1 -1
- package/lib/hosted/node/plugin-reader.js +4 -2
- package/lib/hosted/node/plugin-reader.js.map +1 -1
- package/lib/hosted/node/scanners/scanner-theia.d.ts +5 -4
- package/lib/hosted/node/scanners/scanner-theia.d.ts.map +1 -1
- package/lib/hosted/node/scanners/scanner-theia.js +79 -19
- package/lib/hosted/node/scanners/scanner-theia.js.map +1 -1
- package/lib/main/browser/command-registry-main.d.ts +3 -0
- package/lib/main/browser/command-registry-main.d.ts.map +1 -1
- package/lib/main/browser/command-registry-main.js +11 -1
- package/lib/main/browser/command-registry-main.js.map +1 -1
- package/lib/main/browser/languages-main.d.ts.map +1 -1
- package/lib/main/browser/languages-main.js +7 -5
- package/lib/main/browser/languages-main.js.map +1 -1
- package/lib/main/browser/main-context.d.ts.map +1 -1
- package/lib/main/browser/main-context.js +3 -0
- package/lib/main/browser/main-context.js.map +1 -1
- package/lib/main/browser/menus/vscode-theia-menu-mappings.d.ts +2 -2
- package/lib/main/browser/menus/vscode-theia-menu-mappings.d.ts.map +1 -1
- package/lib/main/browser/menus/vscode-theia-menu-mappings.js +3 -0
- package/lib/main/browser/menus/vscode-theia-menu-mappings.js.map +1 -1
- package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js +2 -2
- package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js.map +1 -1
- package/lib/main/browser/notebooks/notebook-documents-main.js +1 -1
- package/lib/main/browser/notebooks/notebook-documents-main.js.map +1 -1
- package/lib/main/browser/notebooks/notebook-dto.js +2 -2
- package/lib/main/browser/notebooks/notebook-dto.js.map +1 -1
- package/lib/main/browser/notebooks/notebook-kernels-main.d.ts.map +1 -1
- package/lib/main/browser/notebooks/notebook-kernels-main.js +4 -10
- package/lib/main/browser/notebooks/notebook-kernels-main.js.map +1 -1
- package/lib/main/browser/notebooks/notebook-renderers-main.js +1 -1
- package/lib/main/browser/notebooks/notebook-renderers-main.js.map +1 -1
- package/lib/main/browser/notebooks/notebooks-main.d.ts +2 -2
- package/lib/main/browser/notebooks/notebooks-main.d.ts.map +1 -1
- package/lib/main/browser/notebooks/notebooks-main.js +5 -5
- package/lib/main/browser/notebooks/notebooks-main.js.map +1 -1
- package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts.map +1 -1
- package/lib/main/browser/notebooks/renderers/cell-output-webview.js +3 -0
- package/lib/main/browser/notebooks/renderers/cell-output-webview.js.map +1 -1
- package/lib/main/browser/notebooks/renderers/output-webview-internal.d.ts.map +1 -1
- package/lib/main/browser/notebooks/renderers/output-webview-internal.js +4 -2
- package/lib/main/browser/notebooks/renderers/output-webview-internal.js.map +1 -1
- package/lib/main/browser/plugin-contribution-handler.d.ts +2 -0
- package/lib/main/browser/plugin-contribution-handler.d.ts.map +1 -1
- package/lib/main/browser/plugin-contribution-handler.js +19 -1
- package/lib/main/browser/plugin-contribution-handler.js.map +1 -1
- package/lib/main/browser/plugin-ext-frontend-module.d.ts.map +1 -1
- package/lib/main/browser/plugin-ext-frontend-module.js +3 -0
- package/lib/main/browser/plugin-ext-frontend-module.js.map +1 -1
- package/lib/main/browser/plugin-icon-service.d.ts +20 -0
- package/lib/main/browser/plugin-icon-service.d.ts.map +1 -0
- package/lib/main/browser/plugin-icon-service.js +156 -0
- package/lib/main/browser/plugin-icon-service.js.map +1 -0
- package/lib/main/browser/terminal-main.d.ts +2 -2
- package/lib/main/browser/terminal-main.d.ts.map +1 -1
- package/lib/main/browser/terminal-main.js +5 -9
- package/lib/main/browser/terminal-main.js.map +1 -1
- package/lib/main/browser/test-main.d.ts +141 -0
- package/lib/main/browser/test-main.d.ts.map +1 -0
- package/lib/main/browser/test-main.js +560 -0
- package/lib/main/browser/test-main.js.map +1 -0
- package/lib/main/browser/view/plugin-view-registry.d.ts +14 -3
- package/lib/main/browser/view/plugin-view-registry.d.ts.map +1 -1
- package/lib/main/browser/view/plugin-view-registry.js +108 -56
- package/lib/main/browser/view/plugin-view-registry.js.map +1 -1
- package/lib/main/browser/webview-views/webview-views-main.d.ts.map +1 -1
- package/lib/main/browser/webview-views/webview-views-main.js +5 -2
- package/lib/main/browser/webview-views/webview-views-main.js.map +1 -1
- package/lib/main/browser/webview-views/webview-views.d.ts +1 -0
- package/lib/main/browser/webview-views/webview-views.d.ts.map +1 -1
- package/lib/main/node/plugin-service.d.ts +2 -0
- package/lib/main/node/plugin-service.d.ts.map +1 -1
- package/lib/main/node/plugin-service.js +14 -1
- package/lib/main/node/plugin-service.js.map +1 -1
- package/lib/plugin/command-registry.d.ts +1 -3
- package/lib/plugin/command-registry.d.ts.map +1 -1
- package/lib/plugin/command-registry.js.map +1 -1
- package/lib/plugin/notebook/notebook-kernels.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-kernels.js +1 -0
- package/lib/plugin/notebook/notebook-kernels.js.map +1 -1
- package/lib/plugin/notebook/notebooks.d.ts.map +1 -1
- package/lib/plugin/notebook/notebooks.js +2 -2
- package/lib/plugin/notebook/notebooks.js.map +1 -1
- package/lib/plugin/plugin-context.d.ts.map +1 -1
- package/lib/plugin/plugin-context.js +9 -18
- package/lib/plugin/plugin-context.js.map +1 -1
- package/lib/plugin/telemetry-ext.js +1 -1
- package/lib/plugin/telemetry-ext.js.map +1 -1
- package/lib/plugin/terminal-ext.d.ts +11 -9
- package/lib/plugin/terminal-ext.d.ts.map +1 -1
- package/lib/plugin/terminal-ext.js +37 -25
- package/lib/plugin/terminal-ext.js.map +1 -1
- package/lib/plugin/test-item.d.ts +47 -0
- package/lib/plugin/test-item.d.ts.map +1 -0
- package/lib/plugin/test-item.js +196 -0
- package/lib/plugin/test-item.js.map +1 -0
- package/lib/plugin/tests.d.ts +117 -0
- package/lib/plugin/tests.d.ts.map +1 -0
- package/lib/plugin/tests.js +402 -0
- package/lib/plugin/tests.js.map +1 -0
- package/lib/plugin/tree/tree-views.d.ts.map +1 -1
- package/lib/plugin/tree/tree-views.js +2 -1
- package/lib/plugin/tree/tree-views.js.map +1 -1
- package/lib/plugin/type-converters.d.ts +10 -1
- package/lib/plugin/type-converters.d.ts.map +1 -1
- package/lib/plugin/type-converters.js +74 -2
- package/lib/plugin/type-converters.js.map +1 -1
- package/lib/plugin/types-impl.d.ts +29 -4
- package/lib/plugin/types-impl.d.ts.map +1 -1
- package/lib/plugin/types-impl.js +30 -8
- package/lib/plugin/types-impl.js.map +1 -1
- package/package.json +30 -29
- package/src/common/arrays.ts +16 -0
- package/src/common/commands.ts +19 -0
- package/src/common/plugin-api-rpc-model.ts +1 -0
- package/src/common/plugin-api-rpc.ts +69 -7
- package/src/common/plugin-protocol.ts +31 -3
- package/src/common/test-types.ts +133 -0
- package/src/hosted/browser/hosted-plugin.ts +13 -1
- package/src/hosted/node/hosted-plugin-localization-service.ts +72 -37
- package/src/hosted/node/plugin-reader.ts +4 -2
- package/src/hosted/node/scanners/scanner-theia.ts +85 -20
- package/src/main/browser/command-registry-main.ts +14 -1
- package/src/main/browser/languages-main.ts +7 -5
- package/src/main/browser/main-context.ts +4 -0
- package/src/main/browser/menus/vscode-theia-menu-mappings.ts +3 -0
- package/src/main/browser/notebooks/notebook-documents-and-editors-main.ts +2 -2
- package/src/main/browser/notebooks/notebook-documents-main.ts +1 -1
- package/src/main/browser/notebooks/notebook-dto.ts +2 -2
- package/src/main/browser/notebooks/notebook-kernels-main.ts +6 -11
- package/src/main/browser/notebooks/notebook-renderers-main.ts +1 -1
- package/src/main/browser/notebooks/notebooks-main.ts +6 -6
- package/src/main/browser/notebooks/renderers/cell-output-webview.tsx +3 -0
- package/src/main/browser/notebooks/renderers/output-webview-internal.ts +3 -2
- package/src/main/browser/plugin-contribution-handler.ts +19 -2
- package/src/main/browser/plugin-ext-frontend-module.ts +4 -0
- package/src/main/browser/plugin-icon-service.ts +156 -0
- package/src/main/browser/terminal-main.ts +7 -11
- package/src/main/browser/test-main.ts +618 -0
- package/src/main/browser/view/plugin-view-registry.ts +114 -56
- package/src/main/browser/webview-views/webview-views-main.ts +5 -2
- package/src/main/browser/webview-views/webview-views.ts +1 -0
- package/src/main/node/plugin-service.ts +12 -1
- package/src/plugin/command-registry.ts +1 -5
- package/src/plugin/notebook/notebook-kernels.ts +3 -1
- package/src/plugin/notebook/notebooks.ts +1 -3
- package/src/plugin/plugin-context.ts +13 -32
- package/src/plugin/telemetry-ext.ts +1 -1
- package/src/plugin/terminal-ext.ts +40 -26
- package/src/plugin/test-item.ts +174 -0
- package/src/plugin/tests.ts +482 -0
- package/src/plugin/tree/tree-views.ts +2 -1
- package/src/plugin/type-converters.ts +87 -3
- package/src/plugin/types-impl.ts +36 -5
- package/lib/plugin/stubs/tests-api.d.ts +0 -25
- package/lib/plugin/stubs/tests-api.d.ts.map +0 -1
- package/lib/plugin/stubs/tests-api.js +0 -70
- package/lib/plugin/stubs/tests-api.js.map +0 -1
- package/src/plugin/stubs/tests-api.ts +0 -102
|
@@ -27,13 +27,15 @@ import { MarkdownString as PluginMarkdownStringImpl } from './markdown-string';
|
|
|
27
27
|
import * as types from './types-impl';
|
|
28
28
|
import { UriComponents } from '../common/uri-components';
|
|
29
29
|
import { isReadonlyArray } from '../common/arrays';
|
|
30
|
-
import {
|
|
31
|
-
import { DisposableCollection, isEmptyObject, isObject } from '@theia/core/lib/common';
|
|
30
|
+
import { DisposableCollection, Mutable, isEmptyObject, isObject } from '@theia/core/lib/common';
|
|
32
31
|
import * as notebooks from '@theia/notebook/lib/common';
|
|
33
32
|
import { CommandsConverter } from './command-registry';
|
|
34
33
|
import { BinaryBuffer } from '@theia/core/lib/common/buffer';
|
|
35
34
|
import { CellData, CellExecutionUpdateType, CellOutput, CellOutputItem, CellRange, isTextStreamMime } from '@theia/notebook/lib/common';
|
|
36
35
|
import { CellExecuteUpdate, CellExecutionComplete } from '@theia/notebook/lib/browser';
|
|
36
|
+
import { MarkdownString as MarkdownStringDTO } from '@theia/core/lib/common/markdown-rendering';
|
|
37
|
+
|
|
38
|
+
import { TestItemDTO, TestMessageDTO } from '../common/test-types';
|
|
37
39
|
|
|
38
40
|
const SIDE_GROUP = -2;
|
|
39
41
|
const ACTIVE_GROUP = -1;
|
|
@@ -459,7 +461,13 @@ export function toInlineValueContext(inlineValueContext: model.InlineValueContex
|
|
|
459
461
|
};
|
|
460
462
|
}
|
|
461
463
|
|
|
462
|
-
|
|
464
|
+
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
465
|
+
export function fromLocation(location: theia.Location): model.Location;
|
|
466
|
+
export function fromLocation(location: theia.Location | undefined): model.Location | undefined;
|
|
467
|
+
export function fromLocation(location: theia.Location | undefined): model.Location | undefined {
|
|
468
|
+
if (!location) {
|
|
469
|
+
return undefined;
|
|
470
|
+
}
|
|
463
471
|
return <model.Location>{
|
|
464
472
|
uri: location.uri,
|
|
465
473
|
range: fromRange(location.range)
|
|
@@ -1722,6 +1730,7 @@ export namespace NotebookDto {
|
|
|
1722
1730
|
return {
|
|
1723
1731
|
editType: data.editType,
|
|
1724
1732
|
append: data.append,
|
|
1733
|
+
outputId: data.outputId,
|
|
1725
1734
|
items: data.items.map(fromNotebookOutputItemDto)
|
|
1726
1735
|
};
|
|
1727
1736
|
} else {
|
|
@@ -1746,3 +1755,78 @@ export namespace NotebookDto {
|
|
|
1746
1755
|
// }
|
|
1747
1756
|
// }
|
|
1748
1757
|
}
|
|
1758
|
+
|
|
1759
|
+
export namespace TestMessage {
|
|
1760
|
+
export function from(message: theia.TestMessage | readonly theia.TestMessage[]): TestMessageDTO[] {
|
|
1761
|
+
if (isReadonlyArray(message)) {
|
|
1762
|
+
return message.map(msg => TestMessage.from(msg)[0]);
|
|
1763
|
+
}
|
|
1764
|
+
return [{
|
|
1765
|
+
location: fromLocation(message.location),
|
|
1766
|
+
message: fromMarkdown(message.message)!,
|
|
1767
|
+
expected: message.expectedOutput,
|
|
1768
|
+
actual: message.actualOutput
|
|
1769
|
+
}];
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
export namespace TestItem {
|
|
1774
|
+
export function from(test: theia.TestItem): TestItemDTO {
|
|
1775
|
+
return <TestItemDTO>TestItem.fromPartial(test);
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
export function fromPartial(test: Partial<theia.TestItem>): Partial<TestItemDTO> {
|
|
1779
|
+
const result: Partial<Mutable<TestItemDTO>> = {};
|
|
1780
|
+
|
|
1781
|
+
if ('id' in test) {
|
|
1782
|
+
result.id = test.id;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
if ('uri' in test) {
|
|
1786
|
+
result.uri = test.uri;
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
if ('label' in test) {
|
|
1790
|
+
result.label = test.label;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
if ('range' in test) {
|
|
1794
|
+
result.range = fromRange(test.range);
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
if ('sortKey' in test) {
|
|
1798
|
+
result.sortKey = test.sortText;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
if ('tags' in test) {
|
|
1802
|
+
result.tags = test.tags ? test.tags.map(tag => tag.id) : [];
|
|
1803
|
+
}
|
|
1804
|
+
if ('busy' in test) {
|
|
1805
|
+
result.busy = test.busy!;
|
|
1806
|
+
}
|
|
1807
|
+
if ('sortKey' in test) {
|
|
1808
|
+
result.sortKey = test.sortText;
|
|
1809
|
+
}
|
|
1810
|
+
if ('canResolveChildren' in test) {
|
|
1811
|
+
result.canResolveChildren = test.canResolveChildren!;
|
|
1812
|
+
}
|
|
1813
|
+
if ('description' in test) {
|
|
1814
|
+
result.description = test.description;
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
if ('description' in test) {
|
|
1818
|
+
result.error = test.error;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
if (test.children) {
|
|
1822
|
+
const children: TestItemDTO[] = [];
|
|
1823
|
+
test.children.forEach(item => {
|
|
1824
|
+
children.push(TestItem.from(item));
|
|
1825
|
+
});
|
|
1826
|
+
result.children = children;
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
return result;
|
|
1830
|
+
|
|
1831
|
+
}
|
|
1832
|
+
}
|
package/src/plugin/types-impl.ts
CHANGED
|
@@ -2183,11 +2183,6 @@ export enum TerminalExitReason {
|
|
|
2183
2183
|
Extension = 4,
|
|
2184
2184
|
}
|
|
2185
2185
|
|
|
2186
|
-
export enum TerminalQuickFixType {
|
|
2187
|
-
command = 'command',
|
|
2188
|
-
opener = 'opener'
|
|
2189
|
-
}
|
|
2190
|
-
|
|
2191
2186
|
@es5ClassCompat
|
|
2192
2187
|
export class FileDecoration {
|
|
2193
2188
|
|
|
@@ -3227,6 +3222,16 @@ export class LinkedEditingRanges {
|
|
|
3227
3222
|
}
|
|
3228
3223
|
}
|
|
3229
3224
|
|
|
3225
|
+
// Copied from https://github.com/microsoft/vscode/blob/1.72.2/src/vs/workbench/api/common/extHostTypes.ts
|
|
3226
|
+
export enum TestResultState {
|
|
3227
|
+
Queued = 1,
|
|
3228
|
+
Running = 2,
|
|
3229
|
+
Passed = 3,
|
|
3230
|
+
Failed = 4,
|
|
3231
|
+
Skipped = 5,
|
|
3232
|
+
Errored = 6
|
|
3233
|
+
}
|
|
3234
|
+
|
|
3230
3235
|
export enum TestRunProfileKind {
|
|
3231
3236
|
Run = 1,
|
|
3232
3237
|
Debug = 2,
|
|
@@ -3238,8 +3243,11 @@ export class TestTag implements theia.TestTag {
|
|
|
3238
3243
|
constructor(public readonly id: string) { }
|
|
3239
3244
|
}
|
|
3240
3245
|
|
|
3246
|
+
let nextTestRunId = 0;
|
|
3241
3247
|
@es5ClassCompat
|
|
3242
3248
|
export class TestRunRequest implements theia.TestRunRequest {
|
|
3249
|
+
testRunId: number = nextTestRunId++;
|
|
3250
|
+
|
|
3243
3251
|
constructor(
|
|
3244
3252
|
public readonly include: theia.TestItem[] | undefined = undefined,
|
|
3245
3253
|
public readonly exclude: theia.TestItem[] | undefined = undefined,
|
|
@@ -3630,3 +3638,26 @@ export enum EditSessionIdentityMatch {
|
|
|
3630
3638
|
None = 0
|
|
3631
3639
|
}
|
|
3632
3640
|
// #endregion
|
|
3641
|
+
|
|
3642
|
+
// #region terminalQuickFixProvider
|
|
3643
|
+
export class TerminalQuickFixExecuteTerminalCommand {
|
|
3644
|
+
/**
|
|
3645
|
+
* The terminal command to run
|
|
3646
|
+
*/
|
|
3647
|
+
terminalCommand: string;
|
|
3648
|
+
/**
|
|
3649
|
+
* @stubbed
|
|
3650
|
+
*/
|
|
3651
|
+
constructor(terminalCommand: string) { }
|
|
3652
|
+
}
|
|
3653
|
+
export class TerminalQuickFixOpener {
|
|
3654
|
+
/**
|
|
3655
|
+
* The uri to open
|
|
3656
|
+
*/
|
|
3657
|
+
uri: theia.Uri;
|
|
3658
|
+
/**
|
|
3659
|
+
* @stubbed
|
|
3660
|
+
*/
|
|
3661
|
+
constructor(uri: theia.Uri) { }
|
|
3662
|
+
}
|
|
3663
|
+
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { CancellationToken } from '@theia/core/lib/common/cancellation';
|
|
2
|
-
import type * as theia from '@theia/plugin';
|
|
3
|
-
export declare const createRunProfile: (label: string, kind: theia.TestRunProfileKind, runHandler: (request: theia.TestRunRequest, token: CancellationToken) => Thenable<void> | void, isDefault?: boolean | undefined, tag?: theia.TestTag | undefined, supportsContinuousRun?: boolean | undefined) => {
|
|
4
|
-
label: string;
|
|
5
|
-
kind: theia.TestRunProfileKind;
|
|
6
|
-
isDefault: boolean;
|
|
7
|
-
tag: theia.TestTag | undefined;
|
|
8
|
-
supportsContinuousRun: boolean;
|
|
9
|
-
runHandler: (request: theia.TestRunRequest, token: CancellationToken) => Thenable<void> | void;
|
|
10
|
-
configureHandler: undefined;
|
|
11
|
-
dispose: () => undefined;
|
|
12
|
-
};
|
|
13
|
-
export declare const createTestRun: (request: theia.TestRunRequest, name?: string | undefined, persist?: boolean | undefined) => theia.TestRun;
|
|
14
|
-
export declare const testItemCollection: {
|
|
15
|
-
add: () => void;
|
|
16
|
-
delete: () => void;
|
|
17
|
-
forEach: () => void;
|
|
18
|
-
[Symbol.iterator](): Generator<never, void, unknown>;
|
|
19
|
-
get: () => undefined;
|
|
20
|
-
replace: () => void;
|
|
21
|
-
size: number;
|
|
22
|
-
};
|
|
23
|
-
export declare const createTestItem: (id: string, label: string, uri?: theia.Uri | undefined) => theia.TestItem;
|
|
24
|
-
export declare const invalidateTestResults: (items?: theia.TestItem | readonly theia.TestItem[] | undefined) => void;
|
|
25
|
-
//# sourceMappingURL=tests-api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tests-api.d.ts","sourceRoot":"","sources":["../../../src/plugin/stubs/tests-api.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,KAAK,KAAK,KAAK,MAAM,eAAe,CAAC;AAE5C,eAAO,MAAM,gBAAgB,UAClB,MAAM,QACP,MAAM,kBAAkB,wBAEjB,MAAM,cAAc,SACtB,iBAAiB,KACvB,SAAS,IAAI,CAAC,GAAG,IAAI;;;;;;0BAFb,MAAM,cAAc,SACtB,iBAAiB,KACvB,SAAS,IAAI,CAAC,GAAG,IAAI;;;CAa5B,CAAC;AAEH,eAAO,MAAM,aAAa,YACb,MAAM,cAAc,+DAG9B,MAAM,OAwBP,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;CAQ9B,CAAC;AAEF,eAAO,MAAM,cAAc,OACnB,MAAM,SACH,MAAM,kCAEd,MAAM,QAWP,CAAC;AAEH,eAAO,MAAM,qBAAqB,sEAE/B,IAAiB,CAAC"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2022 Ericsson and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.invalidateTestResults = exports.createTestItem = exports.testItemCollection = exports.createTestRun = exports.createRunProfile = void 0;
|
|
19
|
-
/* tslint:disable:typedef */
|
|
20
|
-
const cancellation_1 = require("@theia/core/lib/common/cancellation");
|
|
21
|
-
const createRunProfile = (label, kind, runHandler, isDefault, tag, supportsContinuousRun) => ({
|
|
22
|
-
label,
|
|
23
|
-
kind,
|
|
24
|
-
isDefault: isDefault !== null && isDefault !== void 0 ? isDefault : false,
|
|
25
|
-
tag,
|
|
26
|
-
supportsContinuousRun: supportsContinuousRun !== null && supportsContinuousRun !== void 0 ? supportsContinuousRun : false,
|
|
27
|
-
runHandler,
|
|
28
|
-
configureHandler: undefined,
|
|
29
|
-
dispose: () => undefined,
|
|
30
|
-
});
|
|
31
|
-
exports.createRunProfile = createRunProfile;
|
|
32
|
-
const createTestRun = (request, name, persist) => ({
|
|
33
|
-
name,
|
|
34
|
-
token: cancellation_1.CancellationToken.None,
|
|
35
|
-
isPersisted: false,
|
|
36
|
-
enqueued: (test) => undefined,
|
|
37
|
-
started: (test) => undefined,
|
|
38
|
-
skipped: (test) => undefined,
|
|
39
|
-
failed: (test, message, duration) => undefined,
|
|
40
|
-
errored: (test, message, duration) => undefined,
|
|
41
|
-
passed: (test, duration) => undefined,
|
|
42
|
-
appendOutput: (output, location, test) => undefined,
|
|
43
|
-
end: () => undefined,
|
|
44
|
-
});
|
|
45
|
-
exports.createTestRun = createTestRun;
|
|
46
|
-
exports.testItemCollection = {
|
|
47
|
-
add: () => { },
|
|
48
|
-
delete: () => { },
|
|
49
|
-
forEach: () => { },
|
|
50
|
-
*[Symbol.iterator]() { },
|
|
51
|
-
get: () => undefined,
|
|
52
|
-
replace: () => { },
|
|
53
|
-
size: 0,
|
|
54
|
-
};
|
|
55
|
-
const createTestItem = (id, label, uri) => ({
|
|
56
|
-
id,
|
|
57
|
-
label,
|
|
58
|
-
uri,
|
|
59
|
-
children: exports.testItemCollection,
|
|
60
|
-
parent: undefined,
|
|
61
|
-
tags: [],
|
|
62
|
-
canResolveChildren: false,
|
|
63
|
-
busy: false,
|
|
64
|
-
range: undefined,
|
|
65
|
-
error: undefined,
|
|
66
|
-
});
|
|
67
|
-
exports.createTestItem = createTestItem;
|
|
68
|
-
const invalidateTestResults = (items) => undefined;
|
|
69
|
-
exports.invalidateTestResults = invalidateTestResults;
|
|
70
|
-
//# sourceMappingURL=tests-api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tests-api.js","sourceRoot":"","sources":["../../../src/plugin/stubs/tests-api.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAEhF,4BAA4B;AAE5B,sEAAwE;AAGjE,MAAM,gBAAgB,GAAG,CAC5B,KAAa,EACb,IAA8B,EAC9B,UAG0B,EAC1B,SAAmB,EACnB,GAAmB,EACnB,qBAA+B,EACjC,EAAE,CAAC,CAAC;IACF,KAAK;IACL,IAAI;IACJ,SAAS,EAAE,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,KAAK;IAC7B,GAAG;IACH,qBAAqB,EAAE,qBAAqB,aAArB,qBAAqB,cAArB,qBAAqB,GAAI,KAAK;IACrD,UAAU;IACV,gBAAgB,EAAE,SAAS;IAC3B,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS;CAC3B,CAAC,CAAC;AAnBU,QAAA,gBAAgB,oBAmB1B;AAEI,MAAM,aAAa,GAAG,CACzB,OAA6B,EAC7B,IAAa,EACb,OAAiB,EACJ,EAAE,CAAC,CAAC;IACjB,IAAI;IACJ,KAAK,EAAE,gCAAiB,CAAC,IAAI;IAC7B,WAAW,EAAE,KAAK;IAClB,QAAQ,EAAE,CAAC,IAAoB,EAAE,EAAE,CAAC,SAAS;IAC7C,OAAO,EAAE,CAAC,IAAoB,EAAE,EAAE,CAAC,SAAS;IAC5C,OAAO,EAAE,CAAC,IAAoB,EAAE,EAAE,CAAC,SAAS;IAC5C,MAAM,EAAE,CACJ,IAAoB,EACpB,OAAyD,EACzD,QAAiB,EACnB,EAAE,CAAC,SAAS;IACd,OAAO,EAAE,CACL,IAAoB,EACpB,OAAyD,EACzD,QAAiB,EACnB,EAAE,CAAC,SAAS;IACd,MAAM,EAAE,CAAC,IAAoB,EAAE,QAAiB,EAAE,EAAE,CAAC,SAAS;IAC9D,YAAY,EAAE,CACV,MAAc,EACd,QAAyB,EACzB,IAAqB,EACvB,EAAE,CAAC,SAAS;IACd,GAAG,EAAE,GAAG,EAAE,CAAC,SAAS;CACvB,CAAC,CAAC;AA5BU,QAAA,aAAa,iBA4BvB;AAEU,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACd,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC;IACjB,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC;IAClB,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;IACxB,GAAG,EAAE,GAAG,EAAE,CAAC,SAAS;IACpB,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC;IAClB,IAAI,EAAE,CAAC;CACV,CAAC;AAEK,MAAM,cAAc,GAAG,CAC1B,EAAU,EACV,KAAa,EACb,GAAe,EACD,EAAE,CAAC,CAAC;IAClB,EAAE;IACF,KAAK;IACL,GAAG;IACH,QAAQ,EAAE,0BAAkB;IAC5B,MAAM,EAAE,SAAS;IACjB,IAAI,EAAE,EAAE;IACR,kBAAkB,EAAE,KAAK;IACzB,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;CACnB,CAAC,CAAC;AAfU,QAAA,cAAc,kBAexB;AAEI,MAAM,qBAAqB,GAAG,CACjC,KAAkD,EAC9C,EAAE,CAAC,SAAS,CAAC;AAFR,QAAA,qBAAqB,yBAEb"}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2022 Ericsson and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
|
|
17
|
-
/* tslint:disable:typedef */
|
|
18
|
-
|
|
19
|
-
import { CancellationToken } from '@theia/core/lib/common/cancellation';
|
|
20
|
-
import type * as theia from '@theia/plugin';
|
|
21
|
-
|
|
22
|
-
export const createRunProfile = (
|
|
23
|
-
label: string,
|
|
24
|
-
kind: theia.TestRunProfileKind,
|
|
25
|
-
runHandler: (
|
|
26
|
-
request: theia.TestRunRequest,
|
|
27
|
-
token: CancellationToken
|
|
28
|
-
) => Thenable<void> | void,
|
|
29
|
-
isDefault?: boolean,
|
|
30
|
-
tag?: theia.TestTag,
|
|
31
|
-
supportsContinuousRun?: boolean
|
|
32
|
-
) => ({
|
|
33
|
-
label,
|
|
34
|
-
kind,
|
|
35
|
-
isDefault: isDefault ?? false,
|
|
36
|
-
tag,
|
|
37
|
-
supportsContinuousRun: supportsContinuousRun ?? false,
|
|
38
|
-
runHandler,
|
|
39
|
-
configureHandler: undefined,
|
|
40
|
-
dispose: () => undefined,
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
export const createTestRun = (
|
|
44
|
-
request: theia.TestRunRequest,
|
|
45
|
-
name?: string,
|
|
46
|
-
persist?: boolean
|
|
47
|
-
): theia.TestRun => ({
|
|
48
|
-
name,
|
|
49
|
-
token: CancellationToken.None,
|
|
50
|
-
isPersisted: false,
|
|
51
|
-
enqueued: (test: theia.TestItem) => undefined,
|
|
52
|
-
started: (test: theia.TestItem) => undefined,
|
|
53
|
-
skipped: (test: theia.TestItem) => undefined,
|
|
54
|
-
failed: (
|
|
55
|
-
test: theia.TestItem,
|
|
56
|
-
message: theia.TestMessage | readonly theia.TestMessage[],
|
|
57
|
-
duration?: number
|
|
58
|
-
) => undefined,
|
|
59
|
-
errored: (
|
|
60
|
-
test: theia.TestItem,
|
|
61
|
-
message: theia.TestMessage | readonly theia.TestMessage[],
|
|
62
|
-
duration?: number
|
|
63
|
-
) => undefined,
|
|
64
|
-
passed: (test: theia.TestItem, duration?: number) => undefined,
|
|
65
|
-
appendOutput: (
|
|
66
|
-
output: string,
|
|
67
|
-
location?: theia.Location,
|
|
68
|
-
test?: theia.TestItem
|
|
69
|
-
) => undefined,
|
|
70
|
-
end: () => undefined,
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
export const testItemCollection = {
|
|
74
|
-
add: () => { },
|
|
75
|
-
delete: () => { },
|
|
76
|
-
forEach: () => { },
|
|
77
|
-
*[Symbol.iterator]() { },
|
|
78
|
-
get: () => undefined,
|
|
79
|
-
replace: () => { },
|
|
80
|
-
size: 0,
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
export const createTestItem = (
|
|
84
|
-
id: string,
|
|
85
|
-
label: string,
|
|
86
|
-
uri?: theia.Uri
|
|
87
|
-
): theia.TestItem => ({
|
|
88
|
-
id,
|
|
89
|
-
label,
|
|
90
|
-
uri,
|
|
91
|
-
children: testItemCollection,
|
|
92
|
-
parent: undefined,
|
|
93
|
-
tags: [],
|
|
94
|
-
canResolveChildren: false,
|
|
95
|
-
busy: false,
|
|
96
|
-
range: undefined,
|
|
97
|
-
error: undefined,
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
export const invalidateTestResults = (
|
|
101
|
-
items?: theia.TestItem | readonly theia.TestItem[]
|
|
102
|
-
): void => undefined;
|