@adminide-stack/extension-api 3.1.2-alpha.94 → 3.1.4-alpha.17
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/connections/jsonrpc2/connection.d.ts +5 -5
- package/lib/connections/jsonrpc2/events.d.ts +1 -1
- package/lib/connections/jsonrpc2/linkedMap.d.ts +1 -1
- package/lib/connections/jsonrpc2/messages.d.ts +1 -1
- package/lib/connections/jsonrpc2/transport.d.ts +1 -1
- package/lib/connections/remote-rpc/rxjs-websockets.d.ts +3 -3
- package/lib/core/expr/lexer.d.ts +2 -2
- package/lib/core/expr/parser.d.ts +1 -1
- package/lib/core/types/ext-host-types.js +3 -3
- package/lib/core/types/ext-host-types.js.map +1 -1
- package/lib/interfaces/configuration.d.ts +1 -1
- package/lib/interfaces/contributions/contribution-service.d.ts +1 -1
- package/lib/interfaces/contributions/contribution.d.ts +6 -6
- package/lib/interfaces/ext-services/model-service.d.ts +1 -1
- package/lib/interfaces/ext-services/panel-view-registry.d.ts +1 -1
- package/lib/interfaces/ext-services/view-service.d.ts +2 -2
- package/lib/interfaces/ext-services/viewer-service.d.ts +4 -4
- package/lib/interfaces/generated-models.d.ts +392 -392
- package/lib/interfaces/graphql.d.ts +1 -1
- package/lib/interfaces/languages-types.d.ts +13 -13
- package/lib/interfaces/plainTypes.d.ts +1 -1
- package/lib/interfaces/settings.d.ts +1 -1
- package/lib/protocol/common.protocol.d.ts +4 -4
- package/lib/protocol/rpc-protocol.d.ts +1 -1
- package/lib/protocol/rpc-protocol.js +4 -4
- package/lib/protocol/rpc-protocol.js.map +1 -1
- package/lib/protocol/shared/editor.d.ts +1 -1
- package/lib/protocol/temporary-types.d.ts +2 -2
- package/package.json +3 -3
@@ -27,11 +27,11 @@ export declare class ConnectionError extends Error {
|
|
27
27
|
readonly code: ConnectionErrors;
|
28
28
|
constructor(code: ConnectionErrors, message: string);
|
29
29
|
}
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
30
|
+
type HandlerResult<R, E> = R | ResponseError<E> | Promise<R> | Promise<ResponseError<E>> | Promise<R | ResponseError<E>> | Observable<R>;
|
31
|
+
type StarRequestHandler = (method: string, params?: any, signal?: AbortSignal) => HandlerResult<any, any>;
|
32
|
+
type GenericRequestHandler<R, E> = (params?: any, signal?: AbortSignal, methodName?: string) => HandlerResult<R, E>;
|
33
|
+
type StarNotificationHandler = (method: string, params?: any) => void;
|
34
|
+
type GenericNotificationHandler = (params: any) => void;
|
35
35
|
export interface Connection extends Unsubscribable {
|
36
36
|
sendRequest<R>(method: string, params?: any[], signal?: AbortSignal, toSecondary?: boolean): Promise<R>;
|
37
37
|
observeRequest<R>(method: string, params?: any[]): Observable<R>;
|
@@ -2,7 +2,7 @@ import { Unsubscribable } from 'rxjs';
|
|
2
2
|
/**
|
3
3
|
* Represents a typed event.
|
4
4
|
*/
|
5
|
-
export
|
5
|
+
export type Event<T> = (listener: (e: T) => any, thisArgs?: any) => Unsubscribable;
|
6
6
|
export declare namespace Event {
|
7
7
|
const None: Event<any>;
|
8
8
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Event } from './events';
|
2
2
|
import { Message } from './messages';
|
3
|
-
export
|
3
|
+
export type DataCallback = (data: Message) => void;
|
4
4
|
export interface MessageReader {
|
5
5
|
readonly onError: Event<Error>;
|
6
6
|
readonly onClose: Event<void>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Observable } from 'rxjs/Observable';
|
2
|
-
export
|
2
|
+
export type WebSocketPayload = string | ArrayBuffer | Blob;
|
3
3
|
export interface WebSocketLike {
|
4
4
|
close(): any;
|
5
5
|
send(data: WebSocketPayload): any;
|
@@ -8,8 +8,8 @@ export interface WebSocketLike {
|
|
8
8
|
onmessage: ((event: any) => any) | null;
|
9
9
|
onerror: ((event: any) => any) | null;
|
10
10
|
}
|
11
|
-
export
|
12
|
-
export
|
11
|
+
export type WebSocketFactory = (url: string, protocols: string | string[]) => WebSocketLike;
|
12
|
+
export type GetWebSocketResponses<T = WebSocketPayload> = (input: Observable<WebSocketPayload>) => Observable<T>;
|
13
13
|
export interface WebSocketOptions {
|
14
14
|
protocols: string | string[];
|
15
15
|
makeWebSocket: WebSocketFactory;
|
package/lib/core/expr/lexer.d.ts
CHANGED
@@ -69,8 +69,8 @@ export declare const OPERATORS: {
|
|
69
69
|
'!': number;
|
70
70
|
};
|
71
71
|
/** All valid operators. */
|
72
|
-
export
|
73
|
-
export
|
72
|
+
export type Operator = keyof typeof OPERATORS;
|
73
|
+
export type OperatorTree = boolean | {
|
74
74
|
[ch: string]: OperatorTree;
|
75
75
|
};
|
76
76
|
/**
|
@@ -4,9 +4,6 @@ exports.RelativePattern = exports.LogLevel = exports.ConfigurationTarget = expor
|
|
4
4
|
const errors_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/errors");
|
5
5
|
const paths_util_1 = require("../../utils/paths-util");
|
6
6
|
class Disposable {
|
7
|
-
constructor(callOnDispose) {
|
8
|
-
this._callOnDispose = callOnDispose;
|
9
|
-
}
|
10
7
|
static from(...inDisposables) {
|
11
8
|
let disposables = inDisposables;
|
12
9
|
return new Disposable(function () {
|
@@ -20,6 +17,9 @@ class Disposable {
|
|
20
17
|
}
|
21
18
|
});
|
22
19
|
}
|
20
|
+
constructor(callOnDispose) {
|
21
|
+
this._callOnDispose = callOnDispose;
|
22
|
+
}
|
23
23
|
dispose() {
|
24
24
|
if (typeof this._callOnDispose === 'function') {
|
25
25
|
this._callOnDispose();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ext-host-types.js","sourceRoot":"","sources":["../../../src/core/types/ext-host-types.ts"],"names":[],"mappings":";;;AAGA,gFAAsF;AACtF,uDAAkD;AAElD,MAAa,UAAU;
|
1
|
+
{"version":3,"file":"ext-host-types.js","sourceRoot":"","sources":["../../../src/core/types/ext-host-types.ts"],"names":[],"mappings":";;;AAGA,gFAAsF;AACtF,uDAAkD;AAElD,MAAa,UAAU;IAEt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I,OAAO,IAAI,KAAK,QAAQ,EAAE;YAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;SACjB;aAAM;YACN,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC;YAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACxB,CAAC;IAEM,cAAc,CAAC,IAAY,EAAE,EAAU;QAC7C,OAAO,IAAA,qBAAQ,EAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC3B,CAAC;CACD;AA/BD,0CA+BC"}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* Each successive array element specifies an index in an object or array to descend into. For example, in the
|
5
5
|
* object `{"a": ["x", "y"]}`, the key path `["a", 1]` refers to the value `"y"`.
|
6
6
|
*/
|
7
|
-
export
|
7
|
+
export type IKeyPath = (string | number)[];
|
8
8
|
export interface IConfigurationUpdateParams {
|
9
9
|
/** The key path to the value. */
|
10
10
|
path: IKeyPath;
|
@@ -8,7 +8,7 @@ import { IContributionsItem, IContributions } from './contribution';
|
|
8
8
|
* subscription. The {@link ContributionRegistry#contributions} observable blocks until all observables have
|
9
9
|
* emitted.
|
10
10
|
*/
|
11
|
-
export
|
11
|
+
export type IContributionsEntry = IContributionsItem | {
|
12
12
|
[id: string]: ObservableInput<IContributions | IContributions[]>;
|
13
13
|
};
|
14
14
|
/**
|
@@ -2,7 +2,7 @@ import { Primitive } from 'utility-types';
|
|
2
2
|
import { Expression, TemplateExpression } from '../../core/expr/evaluator';
|
3
3
|
import { IKeyPath } from '../configuration';
|
4
4
|
import { ReactHTML } from 'react';
|
5
|
-
export
|
5
|
+
export type IContributionScope = {
|
6
6
|
type: 'panelView';
|
7
7
|
id: string;
|
8
8
|
hasLocations: boolean;
|
@@ -10,17 +10,17 @@ export declare type IContributionScope = {
|
|
10
10
|
/**
|
11
11
|
* The given contribution type as it's specified in a package.json (expressions as strings)
|
12
12
|
*/
|
13
|
-
export
|
13
|
+
export type Raw<TContribution> = {
|
14
14
|
[K in keyof TContribution]: RawValue<TContribution[K]>;
|
15
15
|
};
|
16
|
-
|
16
|
+
type RawValue<V> = V extends Expression<any> ? string : V extends Primitive | null | undefined ? V : Raw<V>;
|
17
17
|
/**
|
18
18
|
* The given contribution type after being evaluated (all expressions replaced with their value)
|
19
19
|
*/
|
20
|
-
export
|
20
|
+
export type Evaluated<TContribution> = {
|
21
21
|
[K in keyof TContribution]: EvaluatedValue<TContribution[K]>;
|
22
22
|
};
|
23
|
-
|
23
|
+
type EvaluatedValue<V> = V extends Expression<infer T> ? T : V extends Primitive | null | undefined ? V : Evaluated<V>;
|
24
24
|
export interface IContributionsItem extends Record<string, IContributions> {
|
25
25
|
}
|
26
26
|
/**
|
@@ -296,7 +296,7 @@ export declare const ContributableViewContainer: {
|
|
296
296
|
*/
|
297
297
|
readonly InsightsPage: "insightsPage";
|
298
298
|
};
|
299
|
-
export
|
299
|
+
export type IContributableViewContainer = typeof ContributableViewContainer[keyof typeof ContributableViewContainer];
|
300
300
|
/**
|
301
301
|
* A view contributed by an extension.
|
302
302
|
*/
|
@@ -15,7 +15,7 @@ export interface TextModel extends Pick<TextDocument, 'uri' | 'languageId' | 'te
|
|
15
15
|
*/
|
16
16
|
export interface PartialModel extends Pick<TextModel, 'languageId'> {
|
17
17
|
}
|
18
|
-
export
|
18
|
+
export type TextModelUpdate = ({
|
19
19
|
type: 'added';
|
20
20
|
} & TextModel) | ({
|
21
21
|
type: 'updated';
|
@@ -9,7 +9,7 @@ export interface PanelViewProviderRegistrationOptions {
|
|
9
9
|
id: string;
|
10
10
|
container: typeof ContributableViewContainer;
|
11
11
|
}
|
12
|
-
export
|
12
|
+
export type ProvidePanelViewSignature = Observable<PanelViewWithComponent | null>;
|
13
13
|
/** @sri custom change */
|
14
14
|
export interface IPanelViewProviderRegistry {
|
15
15
|
readonly providers: Observable<ProvidePanelViewSignature[]>;
|
@@ -18,7 +18,7 @@ export interface PanelViewWithComponent extends Pick<cdeops.PanelView, 'title' |
|
|
18
18
|
*/
|
19
19
|
reactElement?: React.ReactFragment;
|
20
20
|
}
|
21
|
-
export
|
21
|
+
export type ProvideViewSignature = Observable<PanelViewWithComponent | null>;
|
22
22
|
/**
|
23
23
|
* A view is a page or partial page.
|
24
24
|
*/
|
@@ -42,7 +42,7 @@ export interface IViewContexts {
|
|
42
42
|
[ContributableViewContainer.GlobalPage]: Record<string, string>;
|
43
43
|
[ContributableViewContainer.Directory]: {};
|
44
44
|
}
|
45
|
-
export
|
45
|
+
export type ViewProviderFunction<C> = (context: C) => Observable<IView | null>;
|
46
46
|
/**
|
47
47
|
* The view service manages views, which are pages or partial pages of content.
|
48
48
|
*/
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Subscribable, Observable } from 'rxjs';
|
2
2
|
import { PartialModel, TextModel } from './model-service';
|
3
3
|
import { Selection } from '../plainTypes';
|
4
|
-
export
|
5
|
-
export
|
4
|
+
export type Viewer = CodeEditor | DirectoryViewer;
|
5
|
+
export type ViewerData = CodeEditorData | DirectoryViewerData;
|
6
6
|
/**
|
7
7
|
* ViewerId exposes the unique ID of a viewer.
|
8
8
|
*/
|
@@ -37,7 +37,7 @@ export interface CodeEditor extends ViewerId, CodeEditorData {
|
|
37
37
|
*/
|
38
38
|
export interface DirectoryViewer extends ViewerId, DirectoryViewerData {
|
39
39
|
}
|
40
|
-
export
|
40
|
+
export type ViewerWithPartialModel = CodeEditorWithPartialModel | DirectoryViewer;
|
41
41
|
/**
|
42
42
|
* A code editor witha a partial model.
|
43
43
|
*
|
@@ -53,7 +53,7 @@ export interface CodeEditorWithModel extends CodeEditor {
|
|
53
53
|
/** The code editor's model. */
|
54
54
|
model: TextModel;
|
55
55
|
}
|
56
|
-
export
|
56
|
+
export type ViewerUpdate = ({
|
57
57
|
type: 'added';
|
58
58
|
viewerData: ViewerData;
|
59
59
|
} & ViewerId) | ({
|