@adminide-stack/extension-api 5.0.1-alpha.11 → 5.0.1-alpha.12
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.js +5 -13
- package/lib/connections/jsonrpc2/events.js +3 -4
- package/lib/connections/jsonrpc2/linkedMap.js +3 -4
- package/lib/connections/jsonrpc2/messages.js +6 -7
- package/lib/connections/jsonrpc2/test-helper.js +4 -6
- package/lib/connections/jsonrpc2/trace.js +3 -6
- package/lib/connections/jsonrpc2/transport.js +3 -5
- package/lib/connections/jsonrpc2/transports/webWorker.js +3 -5
- package/lib/connections/proxy/proxy.js +7 -8
- package/lib/connections/remote-rpc/browser-remote-rpc.js +3 -9
- package/lib/connections/remote-rpc/rxjs-websockets.d.ts +1 -1
- package/lib/connections/remote-rpc/rxjs-websockets.js +4 -8
- package/lib/constants/action-types.js +5 -6
- package/lib/constants/types.js +2 -3
- package/lib/core/expr/evaluator.js +6 -9
- package/lib/core/expr/lexer.js +6 -7
- package/lib/core/expr/parser.js +4 -6
- package/lib/core/types/ext-host-types.js +5 -8
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -9
- package/lib/interfaces/context.d.ts +1 -1
- package/lib/interfaces/contributions/contribution.js +3 -4
- package/lib/interfaces/generated-models.d.ts +1237 -1073
- package/lib/interfaces/generated-models.js +88 -63
- package/lib/interfaces/graphql.d.ts +1 -1
- package/lib/interfaces/graphql.js +1 -2
- package/lib/interfaces/model.js +2 -3
- package/lib/interfaces/platform-context.d.ts +1 -1
- package/lib/interfaces/text-document.js +4 -6
- package/lib/interfaces/webview/webview.js +2 -3
- package/lib/protocol/client.protocol.js +3 -5
- package/lib/protocol/common.protocol.js +6 -8
- package/lib/protocol/editor-missing-types.js +2 -3
- package/lib/protocol/index.d.ts +3 -0
- package/lib/protocol/proxy-identifier.js +8 -9
- package/lib/protocol/rpc-logger.js +3 -6
- package/lib/protocol/rpc-protocol.js +10 -20
- package/lib/protocol/server.protocol.js +14 -16
- package/lib/protocol/shared/editor.js +4 -6
- package/lib/protocol/temporary-types.js +4 -13
- package/lib/protocol/utils/lazy-promise.js +3 -6
- package/lib/utils/abortable-rx.d.ts +32 -0
- package/lib/utils/abortable-rx.js +112 -0
- package/lib/utils/errors.js +3 -4
- package/lib/utils/extensions.js +3 -5
- package/lib/utils/helper.test.js +2 -3
- package/lib/utils/paths-util.js +5 -7
- package/lib/utils/rxjs/combineLatestOrDefault.js +3 -10
- package/lib/utils/util.js +7 -9
- package/lib/worker-lib/webWorkerLink.d.ts +1 -1
- package/package.json +5 -4
- package/lib/connections/jsonrpc2/connection.js.map +0 -1
- package/lib/connections/jsonrpc2/connection.test.js +0 -441
- package/lib/connections/jsonrpc2/connection.test.js.map +0 -1
- package/lib/connections/jsonrpc2/events.js.map +0 -1
- package/lib/connections/jsonrpc2/index.js +0 -8
- package/lib/connections/jsonrpc2/index.js.map +0 -1
- package/lib/connections/jsonrpc2/linkedMap.js.map +0 -1
- package/lib/connections/jsonrpc2/linkedMap.test.js +0 -60
- package/lib/connections/jsonrpc2/linkedMap.test.js.map +0 -1
- package/lib/connections/jsonrpc2/messages.js.map +0 -1
- package/lib/connections/jsonrpc2/test-helper.js.map +0 -1
- package/lib/connections/jsonrpc2/trace.js.map +0 -1
- package/lib/connections/jsonrpc2/transport.js.map +0 -1
- package/lib/connections/jsonrpc2/transports/browser-websocket.d.ts +0 -0
- package/lib/connections/jsonrpc2/transports/browser-websocket.js +0 -189
- package/lib/connections/jsonrpc2/transports/browser-websocket.js.map +0 -1
- package/lib/connections/jsonrpc2/transports/merged.d.ts +0 -0
- package/lib/connections/jsonrpc2/transports/merged.js +0 -239
- package/lib/connections/jsonrpc2/transports/merged.js.map +0 -1
- package/lib/connections/jsonrpc2/transports/webSocket.d.ts +0 -0
- package/lib/connections/jsonrpc2/transports/webSocket.js +0 -138
- package/lib/connections/jsonrpc2/transports/webSocket.js.map +0 -1
- package/lib/connections/jsonrpc2/transports/webWorker.js.map +0 -1
- package/lib/connections/proxy/index.js +0 -2
- package/lib/connections/proxy/index.js.map +0 -1
- package/lib/connections/proxy/proxy.js.map +0 -1
- package/lib/connections/proxy/proxy.test.js +0 -53
- package/lib/connections/proxy/proxy.test.js.map +0 -1
- package/lib/connections/remote-rpc/browser-remote-rpc.js.map +0 -1
- package/lib/connections/remote-rpc/browser-server-rpc.test.d.ts +0 -0
- package/lib/connections/remote-rpc/browser-server-rpc.test.js +0 -317
- package/lib/connections/remote-rpc/browser-server-rpc.test.js.map +0 -1
- package/lib/connections/remote-rpc/index.js +0 -2
- package/lib/connections/remote-rpc/index.js.map +0 -1
- package/lib/connections/remote-rpc/old-browser-remote-rpc.js +0 -37
- package/lib/connections/remote-rpc/old-browser-remote-rpc.js.map +0 -1
- package/lib/connections/remote-rpc/rxjs-websockets.js.map +0 -1
- package/lib/constants/action-types.js.map +0 -1
- package/lib/constants/index.js +0 -3
- package/lib/constants/index.js.map +0 -1
- package/lib/constants/types.js.map +0 -1
- package/lib/core/expr/evaluator.js.map +0 -1
- package/lib/core/expr/evaluator.test.js +0 -50
- package/lib/core/expr/evaluator.test.js.map +0 -1
- package/lib/core/expr/index.js +0 -4
- package/lib/core/expr/index.js.map +0 -1
- package/lib/core/expr/lexer.js.map +0 -1
- package/lib/core/expr/parser.js.map +0 -1
- package/lib/core/index.js +0 -3
- package/lib/core/index.js.map +0 -1
- package/lib/core/types/ext-host-types-bk.d.ts +0 -0
- package/lib/core/types/ext-host-types-bk.js +0 -1275
- package/lib/core/types/ext-host-types-bk.js.map +0 -1
- package/lib/core/types/ext-host-types.js.map +0 -1
- package/lib/core/types/index.js +0 -2
- package/lib/core/types/index.js.map +0 -1
- package/lib/errors/errors.js +0 -9
- package/lib/errors/errors.js.map +0 -1
- package/lib/errors/index.js +0 -2
- package/lib/errors/index.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/interfaces/command.js +0 -2
- package/lib/interfaces/command.js.map +0 -1
- package/lib/interfaces/configuration.js +0 -2
- package/lib/interfaces/configuration.js.map +0 -1
- package/lib/interfaces/connection.js +0 -2
- package/lib/interfaces/connection.js.map +0 -1
- package/lib/interfaces/context.js +0 -2
- package/lib/interfaces/context.js.map +0 -1
- package/lib/interfaces/contributions/contribution-service.js +0 -2
- package/lib/interfaces/contributions/contribution-service.js.map +0 -1
- package/lib/interfaces/contributions/contribution.js.map +0 -1
- package/lib/interfaces/contributions/index.js +0 -3
- package/lib/interfaces/contributions/index.js.map +0 -1
- package/lib/interfaces/controller.js +0 -2
- package/lib/interfaces/controller.js.map +0 -1
- package/lib/interfaces/errors.js +0 -2
- package/lib/interfaces/errors.js.map +0 -1
- package/lib/interfaces/ext-services/contributon-registry.js +0 -2
- package/lib/interfaces/ext-services/contributon-registry.js.map +0 -1
- package/lib/interfaces/ext-services/ext-services.js +0 -2
- package/lib/interfaces/ext-services/ext-services.js.map +0 -1
- package/lib/interfaces/ext-services/extension-service.js +0 -2
- package/lib/interfaces/ext-services/extension-service.js.map +0 -1
- package/lib/interfaces/ext-services/index.js +0 -9
- package/lib/interfaces/ext-services/index.js.map +0 -1
- package/lib/interfaces/ext-services/model-service.js +0 -2
- package/lib/interfaces/ext-services/model-service.js.map +0 -1
- package/lib/interfaces/ext-services/panel-view-registry.js +0 -2
- package/lib/interfaces/ext-services/panel-view-registry.js.map +0 -1
- package/lib/interfaces/ext-services/settings-service.js +0 -2
- package/lib/interfaces/ext-services/settings-service.js.map +0 -1
- package/lib/interfaces/ext-services/view-service.js +0 -2
- package/lib/interfaces/ext-services/view-service.js.map +0 -1
- package/lib/interfaces/ext-services/viewer-service.js +0 -4
- package/lib/interfaces/ext-services/viewer-service.js.map +0 -1
- package/lib/interfaces/extension-manifest.js +0 -2
- package/lib/interfaces/extension-manifest.js.map +0 -1
- package/lib/interfaces/extension.js +0 -2
- package/lib/interfaces/extension.js.map +0 -1
- package/lib/interfaces/generated-models.js.map +0 -1
- package/lib/interfaces/graphql.js.map +0 -1
- package/lib/interfaces/index.js +0 -22
- package/lib/interfaces/index.js.map +0 -1
- package/lib/interfaces/languages-types.js +0 -2
- package/lib/interfaces/languages-types.js.map +0 -1
- package/lib/interfaces/model.js.map +0 -1
- package/lib/interfaces/plain-types.js +0 -5
- package/lib/interfaces/plain-types.js.map +0 -1
- package/lib/interfaces/plainTypes.js +0 -2
- package/lib/interfaces/plainTypes.js.map +0 -1
- package/lib/interfaces/platform-context.js +0 -2
- package/lib/interfaces/platform-context.js.map +0 -1
- package/lib/interfaces/react-props/action-item.js +0 -2
- package/lib/interfaces/react-props/action-item.js.map +0 -1
- package/lib/interfaces/react-props/extension-controller.js +0 -2
- package/lib/interfaces/react-props/extension-controller.js.map +0 -1
- package/lib/interfaces/react-props/index.js +0 -4
- package/lib/interfaces/react-props/index.js.map +0 -1
- package/lib/interfaces/react-props/platform-context.js +0 -2
- package/lib/interfaces/react-props/platform-context.js.map +0 -1
- package/lib/interfaces/registry-extension.js +0 -2
- package/lib/interfaces/registry-extension.js.map +0 -1
- package/lib/interfaces/settings.js +0 -2
- package/lib/interfaces/settings.js.map +0 -1
- package/lib/interfaces/text-document.js.map +0 -1
- package/lib/interfaces/webview/index.js +0 -4
- package/lib/interfaces/webview/index.js.map +0 -1
- package/lib/interfaces/webview/webview-manager-service.js +0 -2
- package/lib/interfaces/webview/webview-manager-service.js.map +0 -1
- package/lib/interfaces/webview/webview-port-mapping.js +0 -2
- package/lib/interfaces/webview/webview-port-mapping.js.map +0 -1
- package/lib/interfaces/webview/webview.js.map +0 -1
- package/lib/main.d.ts +0 -0
- package/lib/main.js +0 -3
- package/lib/main.js.map +0 -1
- package/lib/protocol/client.protocol.js.map +0 -1
- package/lib/protocol/common.protocol.js.map +0 -1
- package/lib/protocol/editor-missing-types.js.map +0 -1
- package/lib/protocol/index.js +0 -8
- package/lib/protocol/index.js.map +0 -1
- package/lib/protocol/proxy-identifier.js.map +0 -1
- package/lib/protocol/rpc-logger.js.map +0 -1
- package/lib/protocol/rpc-protocol.js.map +0 -1
- package/lib/protocol/rpc-protocol.test.js +0 -169
- package/lib/protocol/rpc-protocol.test.js.map +0 -1
- package/lib/protocol/server.protocol-bk.d.ts +0 -0
- package/lib/protocol/server.protocol-bk.js +0 -719
- package/lib/protocol/server.protocol-bk.js.map +0 -1
- package/lib/protocol/server.protocol.js.map +0 -1
- package/lib/protocol/shared/editor.js.map +0 -1
- package/lib/protocol/shared/tasks.js +0 -3
- package/lib/protocol/shared/tasks.js.map +0 -1
- package/lib/protocol/temporary-types.js.map +0 -1
- package/lib/protocol/utils/index.js +0 -2
- package/lib/protocol/utils/index.js.map +0 -1
- package/lib/protocol/utils/lazy-promise.js.map +0 -1
- package/lib/utils/errors.js.map +0 -1
- package/lib/utils/extensions.js.map +0 -1
- package/lib/utils/helper.test.js.map +0 -1
- package/lib/utils/index.js +0 -8
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/paths-util.js.map +0 -1
- package/lib/utils/rxjs/combineLatestOrDefault.js.map +0 -1
- package/lib/utils/rxjs/combineLatestOrDefault.test.js +0 -50
- package/lib/utils/rxjs/combineLatestOrDefault.test.js.map +0 -1
- package/lib/utils/rxjs/index.js +0 -2
- package/lib/utils/rxjs/index.js.map +0 -1
- package/lib/utils/util.js.map +0 -1
- package/lib/worker-lib/MessageTypes.js +0 -6
- package/lib/worker-lib/MessageTypes.js.map +0 -1
- package/lib/worker-lib/index.js +0 -3
- package/lib/worker-lib/index.js.map +0 -1
- package/lib/worker-lib/webWorkerLink.js +0 -90
- package/lib/worker-lib/webWorkerLink.js.map +0 -1
- package/lib/worker-lib/workerUtils.js +0 -173
- package/lib/worker-lib/workerUtils.js.map +0 -1
@@ -1,44 +1,46 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
const defaultOptions = {};
|
4
|
-
export var ICacheControlScope;
|
1
|
+
import*as Apollo from'@apollo/client/index.js';import {gql}from'@apollo/client/index.js';const defaultOptions = {};
|
2
|
+
var ICacheControlScope;
|
5
3
|
(function (ICacheControlScope) {
|
6
|
-
ICacheControlScope["Public"] = "PUBLIC";
|
7
4
|
ICacheControlScope["Private"] = "PRIVATE";
|
5
|
+
ICacheControlScope["Public"] = "PUBLIC";
|
8
6
|
})(ICacheControlScope || (ICacheControlScope = {}));
|
9
|
-
|
7
|
+
var IClientContainerService;
|
10
8
|
(function (IClientContainerService) {
|
11
9
|
IClientContainerService["ExtensionController"] = "ExtensionController";
|
12
10
|
})(IClientContainerService || (IClientContainerService = {}));
|
13
|
-
|
11
|
+
var IEnvironmentSync;
|
14
12
|
(function (IEnvironmentSync) {
|
15
|
-
IEnvironmentSync["On"] = "on";
|
16
13
|
IEnvironmentSync["Off"] = "off";
|
14
|
+
IEnvironmentSync["On"] = "on";
|
17
15
|
IEnvironmentSync["Unset"] = "unset";
|
18
16
|
})(IEnvironmentSync || (IEnvironmentSync = {}));
|
19
|
-
|
17
|
+
var IExtensionKind;
|
20
18
|
(function (IExtensionKind) {
|
21
19
|
IExtensionKind["Ui"] = "ui";
|
22
20
|
IExtensionKind["Workspace"] = "workspace";
|
23
21
|
})(IExtensionKind || (IExtensionKind = {}));
|
24
|
-
|
22
|
+
var IExtensionType;
|
25
23
|
(function (IExtensionType) {
|
26
24
|
IExtensionType["System"] = "System";
|
27
25
|
IExtensionType["User"] = "User";
|
28
26
|
})(IExtensionType || (IExtensionType = {}));
|
29
|
-
|
27
|
+
var IGraphqlCallType;
|
30
28
|
(function (IGraphqlCallType) {
|
31
29
|
IGraphqlCallType["Mutation"] = "mutation";
|
32
30
|
IGraphqlCallType["Query"] = "query";
|
33
31
|
})(IGraphqlCallType || (IGraphqlCallType = {}));
|
34
|
-
|
32
|
+
var IMarkupKind;
|
35
33
|
(function (IMarkupKind) {
|
36
|
-
IMarkupKind["Plaintext"] = "plaintext";
|
37
34
|
IMarkupKind["Markdown"] = "markdown";
|
35
|
+
IMarkupKind["Plaintext"] = "plaintext";
|
38
36
|
})(IMarkupKind || (IMarkupKind = {}));
|
39
|
-
|
37
|
+
var IMenuId;
|
40
38
|
(function (IMenuId) {
|
41
39
|
IMenuId["CommandPalette"] = "CommandPalette";
|
40
|
+
IMenuId["CommentActions"] = "CommentActions";
|
41
|
+
IMenuId["CommentThreadActions"] = "CommentThreadActions";
|
42
|
+
IMenuId["CommentThreadTitle"] = "CommentThreadTitle";
|
43
|
+
IMenuId["CommentTitle"] = "CommentTitle";
|
42
44
|
IMenuId["MenubarAppearanceMenu"] = "MenubarAppearanceMenu";
|
43
45
|
IMenuId["MenubarDebugMenu"] = "MenubarDebugMenu";
|
44
46
|
IMenuId["MenubarEditMenu"] = "MenubarEditMenu";
|
@@ -56,50 +58,46 @@ export var IMenuId;
|
|
56
58
|
IMenuId["ProblemsPanelContext"] = "ProblemsPanelContext";
|
57
59
|
IMenuId["ScmChangeContext"] = "SCMChangeContext";
|
58
60
|
IMenuId["ScmResourceContext"] = "SCMResourceContext";
|
59
|
-
IMenuId["ScmResourceGroupContext"] = "SCMResourceGroupContext";
|
60
61
|
IMenuId["ScmResourceControl"] = "SCMResourceControl";
|
62
|
+
IMenuId["ScmResourceGroupContext"] = "SCMResourceGroupContext";
|
61
63
|
IMenuId["ScmTitle"] = "SCMTitle";
|
62
64
|
IMenuId["SearchContext"] = "SearchContext";
|
63
65
|
IMenuId["StatusBarWindowIndicatorMenu"] = "StatusBarWindowIndicatorMenu";
|
64
66
|
IMenuId["TouchBarContext"] = "TouchBarContext";
|
65
67
|
IMenuId["ViewItemContext"] = "ViewItemContext";
|
66
68
|
IMenuId["ViewTitle"] = "ViewTitle";
|
67
|
-
IMenuId["CommentThreadTitle"] = "CommentThreadTitle";
|
68
|
-
IMenuId["CommentThreadActions"] = "CommentThreadActions";
|
69
|
-
IMenuId["CommentTitle"] = "CommentTitle";
|
70
|
-
IMenuId["CommentActions"] = "CommentActions";
|
71
69
|
})(IMenuId || (IMenuId = {}));
|
72
70
|
/** All Moleculer Topic names are extended from this. */
|
73
|
-
|
71
|
+
var IMoleculerServiceName;
|
74
72
|
(function (IMoleculerServiceName) {
|
75
73
|
IMoleculerServiceName["Dummy"] = "dummy";
|
76
74
|
})(IMoleculerServiceName || (IMoleculerServiceName = {}));
|
77
|
-
|
75
|
+
var INotificationChangeType;
|
78
76
|
(function (INotificationChangeType) {
|
79
77
|
INotificationChangeType["Add"] = "ADD";
|
80
78
|
INotificationChangeType["Change"] = "CHANGE";
|
81
79
|
INotificationChangeType["Remove"] = "REMOVE";
|
82
80
|
})(INotificationChangeType || (INotificationChangeType = {}));
|
83
|
-
|
81
|
+
var INotificationSeverity;
|
84
82
|
(function (INotificationSeverity) {
|
83
|
+
INotificationSeverity["Error"] = "Error";
|
85
84
|
INotificationSeverity["Ignore"] = "Ignore";
|
86
85
|
INotificationSeverity["Info"] = "Info";
|
87
86
|
INotificationSeverity["Warning"] = "Warning";
|
88
|
-
INotificationSeverity["Error"] = "Error";
|
89
87
|
})(INotificationSeverity || (INotificationSeverity = {}));
|
90
|
-
|
88
|
+
var INotificationViewItemLabelKind;
|
91
89
|
(function (INotificationViewItemLabelKind) {
|
92
|
-
INotificationViewItemLabelKind["Severity"] = "SEVERITY";
|
93
|
-
INotificationViewItemLabelKind["Message"] = "MESSAGE";
|
94
90
|
INotificationViewItemLabelKind["Actions"] = "ACTIONS";
|
91
|
+
INotificationViewItemLabelKind["Message"] = "MESSAGE";
|
95
92
|
INotificationViewItemLabelKind["Progress"] = "PROGRESS";
|
93
|
+
INotificationViewItemLabelKind["Severity"] = "SEVERITY";
|
96
94
|
})(INotificationViewItemLabelKind || (INotificationViewItemLabelKind = {}));
|
97
|
-
|
95
|
+
var ISortEnum;
|
98
96
|
(function (ISortEnum) {
|
99
97
|
ISortEnum["Asc"] = "ASC";
|
100
98
|
ISortEnum["Desc"] = "DESC";
|
101
99
|
})(ISortEnum || (ISortEnum = {}));
|
102
|
-
|
100
|
+
const CopyDocument = gql `
|
103
101
|
mutation Copy($value: String) {
|
104
102
|
copy(value: $value) @client
|
105
103
|
}
|
@@ -121,11 +119,11 @@ export const CopyDocument = gql `
|
|
121
119
|
* },
|
122
120
|
* });
|
123
121
|
*/
|
124
|
-
|
122
|
+
function useCopyMutation(baseOptions) {
|
125
123
|
const options = { ...defaultOptions, ...baseOptions };
|
126
124
|
return Apollo.useMutation(CopyDocument, options);
|
127
125
|
}
|
128
|
-
|
126
|
+
const RunMenuActionDocument = gql `
|
129
127
|
mutation RunMenuAction($argument: ContributionActionRunInput) {
|
130
128
|
runMenuAction(argument: $argument) @client
|
131
129
|
}
|
@@ -147,11 +145,11 @@ export const RunMenuActionDocument = gql `
|
|
147
145
|
* },
|
148
146
|
* });
|
149
147
|
*/
|
150
|
-
|
148
|
+
function useRunMenuActionMutation(baseOptions) {
|
151
149
|
const options = { ...defaultOptions, ...baseOptions };
|
152
150
|
return Apollo.useMutation(RunMenuActionDocument, options);
|
153
151
|
}
|
154
|
-
|
152
|
+
const HideContextMenuDocument = gql `
|
155
153
|
mutation HideContextMenu {
|
156
154
|
hideContextMenu @client
|
157
155
|
}
|
@@ -172,11 +170,11 @@ export const HideContextMenuDocument = gql `
|
|
172
170
|
* },
|
173
171
|
* });
|
174
172
|
*/
|
175
|
-
|
173
|
+
function useHideContextMenuMutation(baseOptions) {
|
176
174
|
const options = { ...defaultOptions, ...baseOptions };
|
177
175
|
return Apollo.useMutation(HideContextMenuDocument, options);
|
178
176
|
}
|
179
|
-
|
177
|
+
const ShowContextMenuDocument = gql `
|
180
178
|
mutation ShowContextMenu($delegate: ContextMenuInput) {
|
181
179
|
showContextMenu(delegate: $delegate) @client
|
182
180
|
}
|
@@ -198,11 +196,11 @@ export const ShowContextMenuDocument = gql `
|
|
198
196
|
* },
|
199
197
|
* });
|
200
198
|
*/
|
201
|
-
|
199
|
+
function useShowContextMenuMutation(baseOptions) {
|
202
200
|
const options = { ...defaultOptions, ...baseOptions };
|
203
201
|
return Apollo.useMutation(ShowContextMenuDocument, options);
|
204
202
|
}
|
205
|
-
|
203
|
+
const InstallDocument = gql `
|
206
204
|
mutation install($vsix: String!) {
|
207
205
|
install(vsix: $vsix) {
|
208
206
|
id
|
@@ -227,11 +225,11 @@ export const InstallDocument = gql `
|
|
227
225
|
* },
|
228
226
|
* });
|
229
227
|
*/
|
230
|
-
|
228
|
+
function useInstallMutation(baseOptions) {
|
231
229
|
const options = { ...defaultOptions, ...baseOptions };
|
232
230
|
return Apollo.useMutation(InstallDocument, options);
|
233
231
|
}
|
234
|
-
|
232
|
+
const ProviderDefinitionDocument = gql `
|
235
233
|
mutation providerDefinition($params: TextDocumentPositionParamsInput) {
|
236
234
|
hoverProviderDefinition(params: $params) @client
|
237
235
|
}
|
@@ -253,11 +251,11 @@ export const ProviderDefinitionDocument = gql `
|
|
253
251
|
* },
|
254
252
|
* });
|
255
253
|
*/
|
256
|
-
|
254
|
+
function useProviderDefinitionMutation(baseOptions) {
|
257
255
|
const options = { ...defaultOptions, ...baseOptions };
|
258
256
|
return Apollo.useMutation(ProviderDefinitionDocument, options);
|
259
257
|
}
|
260
|
-
|
258
|
+
const RemoveDocument = gql `
|
261
259
|
mutation remove($id: String!) {
|
262
260
|
removeExtension(id: $id)
|
263
261
|
}
|
@@ -279,11 +277,11 @@ export const RemoveDocument = gql `
|
|
279
277
|
* },
|
280
278
|
* });
|
281
279
|
*/
|
282
|
-
|
280
|
+
function useRemoveMutation(baseOptions) {
|
283
281
|
const options = { ...defaultOptions, ...baseOptions };
|
284
282
|
return Apollo.useMutation(RemoveDocument, options);
|
285
283
|
}
|
286
|
-
|
284
|
+
const ContextMenuDocument = gql `
|
287
285
|
query ContextMenu {
|
288
286
|
contextMenu @client {
|
289
287
|
id
|
@@ -322,15 +320,19 @@ export const ContextMenuDocument = gql `
|
|
322
320
|
* },
|
323
321
|
* });
|
324
322
|
*/
|
325
|
-
|
323
|
+
function useContextMenuQuery(baseOptions) {
|
326
324
|
const options = { ...defaultOptions, ...baseOptions };
|
327
325
|
return Apollo.useQuery(ContextMenuDocument, options);
|
328
326
|
}
|
329
|
-
|
327
|
+
function useContextMenuLazyQuery(baseOptions) {
|
330
328
|
const options = { ...defaultOptions, ...baseOptions };
|
331
329
|
return Apollo.useLazyQuery(ContextMenuDocument, options);
|
332
330
|
}
|
333
|
-
|
331
|
+
function useContextMenuSuspenseQuery(baseOptions) {
|
332
|
+
const options = { ...defaultOptions, ...baseOptions };
|
333
|
+
return Apollo.useSuspenseQuery(ContextMenuDocument, options);
|
334
|
+
}
|
335
|
+
const GalleryExtensionDocument = gql `
|
334
336
|
query galleryExtension($extensionID: String!) {
|
335
337
|
galleryExtension(extensionID: $extensionID) {
|
336
338
|
id
|
@@ -375,15 +377,19 @@ export const GalleryExtensionDocument = gql `
|
|
375
377
|
* },
|
376
378
|
* });
|
377
379
|
*/
|
378
|
-
|
380
|
+
function useGalleryExtensionQuery(baseOptions) {
|
379
381
|
const options = { ...defaultOptions, ...baseOptions };
|
380
382
|
return Apollo.useQuery(GalleryExtensionDocument, options);
|
381
383
|
}
|
382
|
-
|
384
|
+
function useGalleryExtensionLazyQuery(baseOptions) {
|
383
385
|
const options = { ...defaultOptions, ...baseOptions };
|
384
386
|
return Apollo.useLazyQuery(GalleryExtensionDocument, options);
|
385
387
|
}
|
386
|
-
|
388
|
+
function useGalleryExtensionSuspenseQuery(baseOptions) {
|
389
|
+
const options = { ...defaultOptions, ...baseOptions };
|
390
|
+
return Apollo.useSuspenseQuery(GalleryExtensionDocument, options);
|
391
|
+
}
|
392
|
+
const ExtensionsByLimitDocument = gql `
|
387
393
|
query ExtensionsByLimit($first: Int!, $prioritizeExtensionIDs: [String!]!) {
|
388
394
|
extensions(first: $first, prioritizeExtensionIDs: $prioritizeExtensionIDs) {
|
389
395
|
nodes {
|
@@ -418,15 +424,19 @@ export const ExtensionsByLimitDocument = gql `
|
|
418
424
|
* },
|
419
425
|
* });
|
420
426
|
*/
|
421
|
-
|
427
|
+
function useExtensionsByLimitQuery(baseOptions) {
|
422
428
|
const options = { ...defaultOptions, ...baseOptions };
|
423
429
|
return Apollo.useQuery(ExtensionsByLimitDocument, options);
|
424
430
|
}
|
425
|
-
|
431
|
+
function useExtensionsByLimitLazyQuery(baseOptions) {
|
426
432
|
const options = { ...defaultOptions, ...baseOptions };
|
427
433
|
return Apollo.useLazyQuery(ExtensionsByLimitDocument, options);
|
428
434
|
}
|
429
|
-
|
435
|
+
function useExtensionsByLimitSuspenseQuery(baseOptions) {
|
436
|
+
const options = { ...defaultOptions, ...baseOptions };
|
437
|
+
return Apollo.useSuspenseQuery(ExtensionsByLimitDocument, options);
|
438
|
+
}
|
439
|
+
const GalleryDocument = gql `
|
430
440
|
query gallery($query: GalleryQueryInput) {
|
431
441
|
gallery(query: $query) {
|
432
442
|
page
|
@@ -468,15 +478,19 @@ export const GalleryDocument = gql `
|
|
468
478
|
* },
|
469
479
|
* });
|
470
480
|
*/
|
471
|
-
|
481
|
+
function useGalleryQuery(baseOptions) {
|
472
482
|
const options = { ...defaultOptions, ...baseOptions };
|
473
483
|
return Apollo.useQuery(GalleryDocument, options);
|
474
484
|
}
|
475
|
-
|
485
|
+
function useGalleryLazyQuery(baseOptions) {
|
476
486
|
const options = { ...defaultOptions, ...baseOptions };
|
477
487
|
return Apollo.useLazyQuery(GalleryDocument, options);
|
478
488
|
}
|
479
|
-
|
489
|
+
function useGallerySuspenseQuery(baseOptions) {
|
490
|
+
const options = { ...defaultOptions, ...baseOptions };
|
491
|
+
return Apollo.useSuspenseQuery(GalleryDocument, options);
|
492
|
+
}
|
493
|
+
const InstalledExtensionsDocument = gql `
|
480
494
|
query installedExtensions {
|
481
495
|
installed {
|
482
496
|
identifier {
|
@@ -519,15 +533,19 @@ export const InstalledExtensionsDocument = gql `
|
|
519
533
|
* },
|
520
534
|
* });
|
521
535
|
*/
|
522
|
-
|
536
|
+
function useInstalledExtensionsQuery(baseOptions) {
|
523
537
|
const options = { ...defaultOptions, ...baseOptions };
|
524
538
|
return Apollo.useQuery(InstalledExtensionsDocument, options);
|
525
539
|
}
|
526
|
-
|
540
|
+
function useInstalledExtensionsLazyQuery(baseOptions) {
|
527
541
|
const options = { ...defaultOptions, ...baseOptions };
|
528
542
|
return Apollo.useLazyQuery(InstalledExtensionsDocument, options);
|
529
543
|
}
|
530
|
-
|
544
|
+
function useInstalledExtensionsSuspenseQuery(baseOptions) {
|
545
|
+
const options = { ...defaultOptions, ...baseOptions };
|
546
|
+
return Apollo.useSuspenseQuery(InstalledExtensionsDocument, options);
|
547
|
+
}
|
548
|
+
const NotificationsDocument = gql `
|
531
549
|
query Notifications {
|
532
550
|
notifications @client {
|
533
551
|
notifications {
|
@@ -584,15 +602,19 @@ export const NotificationsDocument = gql `
|
|
584
602
|
* },
|
585
603
|
* });
|
586
604
|
*/
|
587
|
-
|
605
|
+
function useNotificationsQuery(baseOptions) {
|
588
606
|
const options = { ...defaultOptions, ...baseOptions };
|
589
607
|
return Apollo.useQuery(NotificationsDocument, options);
|
590
608
|
}
|
591
|
-
|
609
|
+
function useNotificationsLazyQuery(baseOptions) {
|
592
610
|
const options = { ...defaultOptions, ...baseOptions };
|
593
611
|
return Apollo.useLazyQuery(NotificationsDocument, options);
|
594
612
|
}
|
595
|
-
|
613
|
+
function useNotificationsSuspenseQuery(baseOptions) {
|
614
|
+
const options = { ...defaultOptions, ...baseOptions };
|
615
|
+
return Apollo.useSuspenseQuery(NotificationsDocument, options);
|
616
|
+
}
|
617
|
+
const ShowNotificationDocument = gql `
|
596
618
|
query showNotification($notification: NotificationInput) {
|
597
619
|
showNotification(notification: $notification) @client
|
598
620
|
}
|
@@ -613,12 +635,15 @@ export const ShowNotificationDocument = gql `
|
|
613
635
|
* },
|
614
636
|
* });
|
615
637
|
*/
|
616
|
-
|
638
|
+
function useShowNotificationQuery(baseOptions) {
|
617
639
|
const options = { ...defaultOptions, ...baseOptions };
|
618
640
|
return Apollo.useQuery(ShowNotificationDocument, options);
|
619
641
|
}
|
620
|
-
|
642
|
+
function useShowNotificationLazyQuery(baseOptions) {
|
621
643
|
const options = { ...defaultOptions, ...baseOptions };
|
622
644
|
return Apollo.useLazyQuery(ShowNotificationDocument, options);
|
623
645
|
}
|
624
|
-
|
646
|
+
function useShowNotificationSuspenseQuery(baseOptions) {
|
647
|
+
const options = { ...defaultOptions, ...baseOptions };
|
648
|
+
return Apollo.useSuspenseQuery(ShowNotificationDocument, options);
|
649
|
+
}export{ContextMenuDocument,CopyDocument,ExtensionsByLimitDocument,GalleryDocument,GalleryExtensionDocument,HideContextMenuDocument,ICacheControlScope,IClientContainerService,IEnvironmentSync,IExtensionKind,IExtensionType,IGraphqlCallType,IMarkupKind,IMenuId,IMoleculerServiceName,INotificationChangeType,INotificationSeverity,INotificationViewItemLabelKind,ISortEnum,InstallDocument,InstalledExtensionsDocument,NotificationsDocument,ProviderDefinitionDocument,RemoveDocument,RunMenuActionDocument,ShowContextMenuDocument,ShowNotificationDocument,useContextMenuLazyQuery,useContextMenuQuery,useContextMenuSuspenseQuery,useCopyMutation,useExtensionsByLimitLazyQuery,useExtensionsByLimitQuery,useExtensionsByLimitSuspenseQuery,useGalleryExtensionLazyQuery,useGalleryExtensionQuery,useGalleryExtensionSuspenseQuery,useGalleryLazyQuery,useGalleryQuery,useGallerySuspenseQuery,useHideContextMenuMutation,useInstallMutation,useInstalledExtensionsLazyQuery,useInstalledExtensionsQuery,useInstalledExtensionsSuspenseQuery,useNotificationsLazyQuery,useNotificationsQuery,useNotificationsSuspenseQuery,useProviderDefinitionMutation,useRemoveMutation,useRunMenuActionMutation,useShowContextMenuMutation,useShowNotificationLazyQuery,useShowNotificationQuery,useShowNotificationSuspenseQuery};
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
//# sourceMappingURL=graphql.js.map
|
1
|
+
const graphQLContent = Symbol('graphQLContent');export{graphQLContent};
|
package/lib/interfaces/model.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { NextObserver, Observable, Subscribable } from 'rxjs';
|
2
2
|
import { MessageTransports } from '../connections/jsonrpc2';
|
3
|
-
import { ApolloClient, ApolloQueryResult } from '@apollo/client';
|
3
|
+
import { ApolloClient, ApolloQueryResult } from '@apollo/client/index.js';
|
4
4
|
/**
|
5
5
|
* Platform-specific data and methods shared by multiple Cdeops components.
|
6
6
|
*
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import minimatch from
|
2
|
-
/**
|
1
|
+
import minimatch from'minimatch';/**
|
3
2
|
* Returns whether any of the document selectors match (or "select") the document.
|
4
3
|
*/
|
5
|
-
|
4
|
+
function match(selectors, document) {
|
6
5
|
for (const selector of isSingleDocumentSelector(selectors) ? [selectors] : selectors) {
|
7
6
|
if (match1(selector, document)) {
|
8
7
|
return true;
|
@@ -36,7 +35,7 @@ function match1(selector, document) {
|
|
36
35
|
* Taken from
|
37
36
|
* https://github.com/Microsoft/vscode/blob/3d35801127f0a62d58d752bc613506e836c5d120/src/vs/editor/common/modes/languageSelector.ts#L24.
|
38
37
|
*/
|
39
|
-
|
38
|
+
function score(selector, candidateUri, candidateLanguage) {
|
40
39
|
// array -> take max individual value
|
41
40
|
let returnValue = 0;
|
42
41
|
for (const filter of selector) {
|
@@ -110,5 +109,4 @@ function score1(selector, candidateUri, candidateLanguage) {
|
|
110
109
|
}
|
111
110
|
}
|
112
111
|
return returnValue;
|
113
|
-
}
|
114
|
-
//# sourceMappingURL=text-document.js.map
|
112
|
+
}export{match,score};
|
@@ -1,6 +1,5 @@
|
|
1
|
-
|
1
|
+
var WebviewContentPurpose;
|
2
2
|
(function (WebviewContentPurpose) {
|
3
3
|
WebviewContentPurpose["NotebookRenderer"] = "notebookRenderer";
|
4
4
|
WebviewContentPurpose["CustomEditor"] = "customEditor";
|
5
|
-
})(WebviewContentPurpose || (WebviewContentPurpose = {}));
|
6
|
-
//# sourceMappingURL=webview.js.map
|
5
|
+
})(WebviewContentPurpose || (WebviewContentPurpose = {}));export{WebviewContentPurpose};
|
@@ -1,5 +1,3 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
};
|
5
|
-
//# sourceMappingURL=client.protocol.js.map
|
1
|
+
import {createMainContextProxyIdentifier}from'./proxy-identifier.js';const ClientContext = {
|
2
|
+
ClientThreadLanguageFeatures: createMainContextProxyIdentifier('ClientThreadLanguageFeatures'),
|
3
|
+
};export{ClientContext};
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
export class IdObject {
|
1
|
+
import {URI}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';class IdObject {
|
3
2
|
static mixin(object) {
|
4
3
|
object._id = IdObject._n++;
|
5
4
|
return object;
|
@@ -7,7 +6,7 @@ export class IdObject {
|
|
7
6
|
}
|
8
7
|
IdObject._n = 0;
|
9
8
|
// needed
|
10
|
-
|
9
|
+
var ISuggestDataDtoField;
|
11
10
|
(function (ISuggestDataDtoField) {
|
12
11
|
ISuggestDataDtoField["label"] = "a";
|
13
12
|
ISuggestDataDtoField["kind"] = "b";
|
@@ -26,14 +25,14 @@ export var ISuggestDataDtoField;
|
|
26
25
|
// to merge into label
|
27
26
|
ISuggestDataDtoField["label2"] = "o";
|
28
27
|
})(ISuggestDataDtoField || (ISuggestDataDtoField = {}));
|
29
|
-
|
28
|
+
var ISuggestResultDtoField;
|
30
29
|
(function (ISuggestResultDtoField) {
|
31
30
|
ISuggestResultDtoField["defaultRanges"] = "a";
|
32
31
|
ISuggestResultDtoField["completions"] = "b";
|
33
32
|
ISuggestResultDtoField["isIncomplete"] = "c";
|
34
33
|
ISuggestResultDtoField["duration"] = "d";
|
35
34
|
})(ISuggestResultDtoField || (ISuggestResultDtoField = {}));
|
36
|
-
|
35
|
+
function reviveWorkspaceEditDto(data) {
|
37
36
|
if (data && data.edits) {
|
38
37
|
for (const edit of data.edits) {
|
39
38
|
if (typeof edit.resource === 'object') {
|
@@ -47,7 +46,7 @@ export function reviveWorkspaceEditDto(data) {
|
|
47
46
|
}
|
48
47
|
return data;
|
49
48
|
}
|
50
|
-
|
49
|
+
var ObjectIdentifier;
|
51
50
|
(function (ObjectIdentifier) {
|
52
51
|
ObjectIdentifier.name = '$ident';
|
53
52
|
function mixin(obj, id) {
|
@@ -59,5 +58,4 @@ export var ObjectIdentifier;
|
|
59
58
|
return obj[ObjectIdentifier.name];
|
60
59
|
}
|
61
60
|
ObjectIdentifier.of = of;
|
62
|
-
})(ObjectIdentifier || (ObjectIdentifier = {}));
|
63
|
-
//# sourceMappingURL=common.protocol.js.map
|
61
|
+
})(ObjectIdentifier || (ObjectIdentifier = {}));export{ISuggestDataDtoField,ISuggestResultDtoField,IdObject,ObjectIdentifier,reviveWorkspaceEditDto};
|
@@ -1,7 +1,6 @@
|
|
1
|
-
|
1
|
+
var EditorPosition;
|
2
2
|
(function (EditorPosition) {
|
3
3
|
EditorPosition[EditorPosition["ONE"] = 0] = "ONE";
|
4
4
|
EditorPosition[EditorPosition["TWO"] = 1] = "TWO";
|
5
5
|
EditorPosition[EditorPosition["THREE"] = 2] = "THREE";
|
6
|
-
})(EditorPosition || (EditorPosition = {}));
|
7
|
-
//# sourceMappingURL=editor-missing-types.js.map
|
6
|
+
})(EditorPosition || (EditorPosition = {}));export{EditorPosition};
|
package/lib/protocol/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* tslint:disable */
|
2
|
-
|
2
|
+
class ProxyIdentifier {
|
3
3
|
constructor(isMain, sid, hostId) {
|
4
4
|
this.isMain = isMain;
|
5
5
|
this.sid = sid;
|
@@ -9,27 +9,27 @@ export class ProxyIdentifier {
|
|
9
9
|
}
|
10
10
|
ProxyIdentifier.count = 0;
|
11
11
|
const identifiers = [];
|
12
|
-
|
12
|
+
function createMainContextProxyIdentifier(identifier, hostIdentifier = 1 /* HostIdentifier.ServerMainThread */) {
|
13
13
|
const result = new ProxyIdentifier(true, identifier, hostIdentifier);
|
14
14
|
identifiers[result.nid] = result;
|
15
15
|
return result;
|
16
16
|
}
|
17
|
-
|
17
|
+
function createExtHostContextProxyIdentifier(identifier, hostIdentifier = 0 /* HostIdentifier.ServerExtHost */) {
|
18
18
|
const result = new ProxyIdentifier(false, identifier, hostIdentifier);
|
19
19
|
identifiers[result.nid] = result;
|
20
20
|
return result;
|
21
21
|
}
|
22
|
-
|
22
|
+
function getStringIdentifierForProxy(nid) {
|
23
23
|
return identifiers[nid] ? identifiers[nid].sid : null;
|
24
24
|
}
|
25
|
-
|
25
|
+
var HostIdentifier;
|
26
26
|
(function (HostIdentifier) {
|
27
27
|
HostIdentifier[HostIdentifier["ServerExtHost"] = 0] = "ServerExtHost";
|
28
28
|
HostIdentifier[HostIdentifier["ServerMainThread"] = 1] = "ServerMainThread";
|
29
29
|
HostIdentifier[HostIdentifier["BrowserExtHost"] = 2] = "BrowserExtHost";
|
30
30
|
HostIdentifier[HostIdentifier["BrowserClientThread"] = 3] = "BrowserClientThread";
|
31
31
|
})(HostIdentifier || (HostIdentifier = {}));
|
32
|
-
|
32
|
+
var RequestType;
|
33
33
|
(function (RequestType) {
|
34
34
|
/**
|
35
35
|
* Process the request on the reciever end
|
@@ -44,9 +44,8 @@ export var RequestType;
|
|
44
44
|
*/
|
45
45
|
RequestType[RequestType["ProcessAndForward"] = 2] = "ProcessAndForward";
|
46
46
|
})(RequestType || (RequestType = {}));
|
47
|
-
|
47
|
+
var TransportType;
|
48
48
|
(function (TransportType) {
|
49
49
|
TransportType[TransportType["Socket"] = 0] = "Socket";
|
50
50
|
TransportType[TransportType["WebSocket"] = 1] = "WebSocket";
|
51
|
-
})(TransportType || (TransportType = {}));
|
52
|
-
//# sourceMappingURL=proxy-identifier.js.map
|
51
|
+
})(TransportType || (TransportType = {}));export{HostIdentifier,ProxyIdentifier,RequestType,TransportType,createExtHostContextProxyIdentifier,createMainContextProxyIdentifier,getStringIdentifierForProxy};
|
@@ -1,6 +1,4 @@
|
|
1
1
|
// Enable to see detailed message communication between window and extension host
|
2
|
-
const LOG_EXTENSION_HOST_COMMUNICATION = false;
|
3
|
-
const LOG_USE_COLORS = true;
|
4
2
|
const colorTables = [
|
5
3
|
['#2977B1', '#FC802D', '#34A13A', '#D3282F', '#9366BA'],
|
6
4
|
['#8B564C', '#E177C0', '#7F7F7F', '#BBBE3D', '#2EBECD'],
|
@@ -23,7 +21,7 @@ function pretty(data) {
|
|
23
21
|
}
|
24
22
|
return prettyWithoutArrays(data);
|
25
23
|
}
|
26
|
-
|
24
|
+
class RPCLogger {
|
27
25
|
constructor() {
|
28
26
|
this._totalIncoming = 0;
|
29
27
|
this._totalOutgoing = 0;
|
@@ -31,7 +29,7 @@ export class RPCLogger {
|
|
31
29
|
_log(direction, totalLength, msgLength, req, initiator, str, data) {
|
32
30
|
data = pretty(data);
|
33
31
|
const colorTable = colorTables[initiator];
|
34
|
-
const color =
|
32
|
+
const color = colorTable[req % colorTable.length] ;
|
35
33
|
/* tslint:disable-next-line:max-line-length */
|
36
34
|
let args = [`%c[${direction}]%c[${String(totalLength).padStart(7)}]%c[len: ${String(msgLength).padStart(5)}]%c${String(req).padStart(5)} - ${str}`, 'color: darkgreen', 'color: grey', 'color: grey', `color: ${color}`];
|
37
35
|
if (/\($/.test(str)) {
|
@@ -52,5 +50,4 @@ export class RPCLogger {
|
|
52
50
|
this._totalOutgoing += msgLength;
|
53
51
|
this._log('Win \u2192 Ext', this._totalOutgoing, msgLength, req, initiator, str, data);
|
54
52
|
}
|
55
|
-
}
|
56
|
-
//# sourceMappingURL=rpc-logger.js.map
|
53
|
+
}export{RPCLogger};
|