@theia/plugin-metrics 1.34.2 → 1.34.3
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/LICENSE +641 -641
- package/README.md +63 -63
- package/lib/browser/plugin-metrics-creator.d.ts +67 -67
- package/lib/browser/plugin-metrics-creator.js +185 -185
- package/lib/browser/plugin-metrics-frontend-module.d.ts +3 -3
- package/lib/browser/plugin-metrics-frontend-module.js +36 -36
- package/lib/browser/plugin-metrics-languages-main.d.ts +58 -58
- package/lib/browser/plugin-metrics-languages-main.js +211 -211
- package/lib/browser/plugin-metrics-output-registry.d.ts +7 -7
- package/lib/browser/plugin-metrics-output-registry.js +48 -48
- package/lib/browser/plugin-metrics-resolver.d.ts +17 -17
- package/lib/browser/plugin-metrics-resolver.js +69 -69
- package/lib/common/metrics-protocol.d.ts +10 -10
- package/lib/common/metrics-protocol.js +24 -24
- package/lib/common/plugin-metrics-types.d.ts +27 -27
- package/lib/common/plugin-metrics-types.js +56 -56
- package/lib/node/metric-output/plugin-metrics-time-count.d.ts +5 -5
- package/lib/node/metric-output/plugin-metrics-time-count.js +43 -43
- package/lib/node/metric-output/plugin-metrics-time-sum.d.ts +5 -5
- package/lib/node/metric-output/plugin-metrics-time-sum.js +41 -41
- package/lib/node/metric-string-generator.d.ts +6 -6
- package/lib/node/metric-string-generator.js +78 -78
- package/lib/node/metrics-contributor.d.ts +6 -6
- package/lib/node/metrics-contributor.js +76 -76
- package/lib/node/metrics-contributor.spec.d.ts +1 -1
- package/lib/node/metrics-contributor.spec.js +203 -203
- package/lib/node/plugin-metrics-backend-module.d.ts +3 -3
- package/lib/node/plugin-metrics-backend-module.js +47 -47
- package/lib/node/plugin-metrics-impl.d.ts +10 -10
- package/lib/node/plugin-metrics-impl.js +45 -45
- package/lib/node/plugin-metrics.d.ts +10 -10
- package/lib/node/plugin-metrics.js +54 -54
- package/package.json +7 -7
- package/src/browser/plugin-metrics-creator.ts +189 -189
- package/src/browser/plugin-metrics-frontend-module.ts +38 -38
- package/src/browser/plugin-metrics-languages-main.ts +325 -325
- package/src/browser/plugin-metrics-output-registry.ts +37 -37
- package/src/browser/plugin-metrics-resolver.ts +57 -57
- package/src/common/metrics-protocol.ts +27 -27
- package/src/common/plugin-metrics-types.ts +80 -80
- package/src/node/metric-output/plugin-metrics-time-count.ts +36 -36
- package/src/node/metric-output/plugin-metrics-time-sum.ts +35 -35
- package/src/node/metric-string-generator.ts +70 -70
- package/src/node/metrics-contributor.spec.ts +234 -234
- package/src/node/metrics-contributor.ts +70 -70
- package/src/node/plugin-metrics-backend-module.ts +49 -49
- package/src/node/plugin-metrics-impl.ts +38 -38
- package/src/node/plugin-metrics.ts +44 -44
|
@@ -1,212 +1,212 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2019 Red Hat 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 WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.LanguagesMainPluginMetrics = void 0;
|
|
28
|
-
const plugin_metrics_resolver_1 = require("./plugin-metrics-resolver");
|
|
29
|
-
const languages_main_1 = require("@theia/plugin-ext/lib/main/browser/languages-main");
|
|
30
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
31
|
-
const vst = require("@theia/core/shared/vscode-languageserver-protocol");
|
|
32
|
-
let LanguagesMainPluginMetrics = class LanguagesMainPluginMetrics extends languages_main_1.LanguagesMainImpl {
|
|
33
|
-
constructor() {
|
|
34
|
-
super(...arguments);
|
|
35
|
-
// Map of handle to extension id
|
|
36
|
-
this.handleToExtensionID = new Map();
|
|
37
|
-
}
|
|
38
|
-
$unregister(handle) {
|
|
39
|
-
this.handleToExtensionID.delete(handle);
|
|
40
|
-
super.$unregister(handle);
|
|
41
|
-
}
|
|
42
|
-
provideCompletionItems(handle, model, position, context, token) {
|
|
43
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.CompletionRequest.type.method, super.provideCompletionItems(handle, model, position, context, token));
|
|
44
|
-
}
|
|
45
|
-
resolveCompletionItem(handle, item, token) {
|
|
46
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.CompletionRequest.type.method, super.resolveCompletionItem(handle, item, token));
|
|
47
|
-
}
|
|
48
|
-
provideReferences(handle, model, position, context, token) {
|
|
49
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.ReferencesRequest.type.method, super.provideReferences(handle, model, position, context, token));
|
|
50
|
-
}
|
|
51
|
-
provideImplementation(handle, model, position, token) {
|
|
52
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.ImplementationRequest.type.method, super.provideImplementation(handle, model, position, token));
|
|
53
|
-
}
|
|
54
|
-
provideTypeDefinition(handle, model, position, token) {
|
|
55
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.TypeDefinitionRequest.type.method, super.provideTypeDefinition(handle, model, position, token));
|
|
56
|
-
}
|
|
57
|
-
provideHover(handle, model, position, token) {
|
|
58
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.HoverRequest.type.method, super.provideHover(handle, model, position, token));
|
|
59
|
-
}
|
|
60
|
-
provideDocumentHighlights(handle, model, position, token) {
|
|
61
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DocumentHighlightRequest.type.method, super.provideDocumentHighlights(handle, model, position, token));
|
|
62
|
-
}
|
|
63
|
-
provideWorkspaceSymbols(handle, params, token) {
|
|
64
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.WorkspaceSymbolRequest.type.method, super.provideWorkspaceSymbols(handle, params, token));
|
|
65
|
-
}
|
|
66
|
-
resolveWorkspaceSymbol(handle, symbol, token) {
|
|
67
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.WorkspaceSymbolRequest.type.method, super.resolveWorkspaceSymbol(handle, symbol, token));
|
|
68
|
-
}
|
|
69
|
-
async provideLinks(handle, model, token) {
|
|
70
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DocumentLinkRequest.type.method, super.provideLinks(handle, model, token));
|
|
71
|
-
}
|
|
72
|
-
async resolveLink(handle, link, token) {
|
|
73
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DocumentLinkRequest.type.method, super.resolveLink(handle, link, token));
|
|
74
|
-
}
|
|
75
|
-
async provideCodeLenses(handle, model, token) {
|
|
76
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.CodeLensRequest.type.method, super.provideCodeLenses(handle, model, token));
|
|
77
|
-
}
|
|
78
|
-
resolveCodeLens(handle, model, codeLens, token) {
|
|
79
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.CodeLensResolveRequest.type.method, super.resolveCodeLens(handle, model, codeLens, token));
|
|
80
|
-
}
|
|
81
|
-
provideDocumentSymbols(handle, model, token) {
|
|
82
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DocumentSymbolRequest.type.method, super.provideDocumentSymbols(handle, model, token));
|
|
83
|
-
}
|
|
84
|
-
provideDefinition(handle, model, position, token) {
|
|
85
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DefinitionRequest.type.method, super.provideDefinition(handle, model, position, token));
|
|
86
|
-
}
|
|
87
|
-
async provideSignatureHelp(handle, model, position, token, context) {
|
|
88
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.SignatureHelpRequest.type.method, super.provideSignatureHelp(handle, model, position, token, context));
|
|
89
|
-
}
|
|
90
|
-
provideDocumentFormattingEdits(handle, model, options, token) {
|
|
91
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DocumentFormattingRequest.type.method, super.provideDocumentFormattingEdits(handle, model, options, token));
|
|
92
|
-
}
|
|
93
|
-
provideDocumentRangeFormattingEdits(handle, model, range, options, token) {
|
|
94
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DocumentRangeFormattingRequest.type.method, super.provideDocumentRangeFormattingEdits(handle, model, range, options, token));
|
|
95
|
-
}
|
|
96
|
-
provideOnTypeFormattingEdits(handle, model, position, ch, options, token) {
|
|
97
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DocumentOnTypeFormattingRequest.type.method, super.provideOnTypeFormattingEdits(handle, model, position, ch, options, token));
|
|
98
|
-
}
|
|
99
|
-
provideFoldingRanges(handle, model, context, token) {
|
|
100
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.FoldingRangeRequest.type.method, super.provideFoldingRanges(handle, model, context, token));
|
|
101
|
-
}
|
|
102
|
-
provideDocumentColors(handle, model, token) {
|
|
103
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DocumentColorRequest.type.method, super.provideDocumentColors(handle, model, token));
|
|
104
|
-
}
|
|
105
|
-
provideColorPresentations(handle, model, colorInfo, token) {
|
|
106
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.ColorPresentationRequest.type.method, super.provideColorPresentations(handle, model, colorInfo, token));
|
|
107
|
-
}
|
|
108
|
-
async provideCodeActions(handle, model, rangeOrSelection, context, token) {
|
|
109
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.CodeActionRequest.type.method, super.provideCodeActions(handle, model, rangeOrSelection, context, token));
|
|
110
|
-
}
|
|
111
|
-
provideRenameEdits(handle, model, position, newName, token) {
|
|
112
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.RenameRequest.type.method, super.provideRenameEdits(handle, model, position, newName, token));
|
|
113
|
-
}
|
|
114
|
-
resolveRenameLocation(handle, model, position, token) {
|
|
115
|
-
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.RenameRequest.type.method, super.resolveRenameLocation(handle, model, position, token));
|
|
116
|
-
}
|
|
117
|
-
$registerCompletionSupport(handle, pluginInfo, selector, triggerCharacters, supportsResolveDetails) {
|
|
118
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
119
|
-
super.$registerCompletionSupport(handle, pluginInfo, selector, triggerCharacters, supportsResolveDetails);
|
|
120
|
-
}
|
|
121
|
-
$registerDefinitionProvider(handle, pluginInfo, selector) {
|
|
122
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
123
|
-
super.$registerDefinitionProvider(handle, pluginInfo, selector);
|
|
124
|
-
}
|
|
125
|
-
$registerDeclarationProvider(handle, pluginInfo, selector) {
|
|
126
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
127
|
-
super.$registerDeclarationProvider(handle, pluginInfo, selector);
|
|
128
|
-
}
|
|
129
|
-
$registerReferenceProvider(handle, pluginInfo, selector) {
|
|
130
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
131
|
-
super.$registerReferenceProvider(handle, pluginInfo, selector);
|
|
132
|
-
}
|
|
133
|
-
$registerSignatureHelpProvider(handle, pluginInfo, selector, metadata) {
|
|
134
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
135
|
-
super.$registerSignatureHelpProvider(handle, pluginInfo, selector, metadata);
|
|
136
|
-
}
|
|
137
|
-
$registerImplementationProvider(handle, pluginInfo, selector) {
|
|
138
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
139
|
-
super.$registerImplementationProvider(handle, pluginInfo, selector);
|
|
140
|
-
}
|
|
141
|
-
$registerTypeDefinitionProvider(handle, pluginInfo, selector) {
|
|
142
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
143
|
-
super.$registerTypeDefinitionProvider(handle, pluginInfo, selector);
|
|
144
|
-
}
|
|
145
|
-
$registerHoverProvider(handle, pluginInfo, selector) {
|
|
146
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
147
|
-
super.$registerHoverProvider(handle, pluginInfo, selector);
|
|
148
|
-
}
|
|
149
|
-
$registerDocumentHighlightProvider(handle, pluginInfo, selector) {
|
|
150
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
151
|
-
super.$registerDocumentHighlightProvider(handle, pluginInfo, selector);
|
|
152
|
-
}
|
|
153
|
-
$registerWorkspaceSymbolProvider(handle, pluginInfo) {
|
|
154
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
155
|
-
super.$registerWorkspaceSymbolProvider(handle, pluginInfo);
|
|
156
|
-
}
|
|
157
|
-
$registerDocumentLinkProvider(handle, pluginInfo, selector) {
|
|
158
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
159
|
-
super.$registerDocumentLinkProvider(handle, pluginInfo, selector);
|
|
160
|
-
}
|
|
161
|
-
$registerCodeLensSupport(handle, pluginInfo, selector, eventHandle) {
|
|
162
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
163
|
-
super.$registerCodeLensSupport(handle, pluginInfo, selector, eventHandle);
|
|
164
|
-
}
|
|
165
|
-
$registerOutlineSupport(handle, pluginInfo, selector, displayName) {
|
|
166
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
167
|
-
super.$registerOutlineSupport(handle, pluginInfo, selector, displayName);
|
|
168
|
-
}
|
|
169
|
-
$registerDocumentFormattingSupport(handle, pluginInfo, selector) {
|
|
170
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
171
|
-
super.$registerDocumentFormattingSupport(handle, pluginInfo, selector);
|
|
172
|
-
}
|
|
173
|
-
$registerRangeFormattingSupport(handle, pluginInfo, selector) {
|
|
174
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
175
|
-
super.$registerRangeFormattingSupport(handle, pluginInfo, selector);
|
|
176
|
-
}
|
|
177
|
-
$registerOnTypeFormattingProvider(handle, pluginInfo, selector, autoFormatTriggerCharacters) {
|
|
178
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
179
|
-
super.$registerOnTypeFormattingProvider(handle, pluginInfo, selector, autoFormatTriggerCharacters);
|
|
180
|
-
}
|
|
181
|
-
$registerFoldingRangeProvider(handle, pluginInfo, selector, eventHandle) {
|
|
182
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
183
|
-
super.$registerFoldingRangeProvider(handle, pluginInfo, selector, eventHandle);
|
|
184
|
-
}
|
|
185
|
-
$registerDocumentColorProvider(handle, pluginInfo, selector) {
|
|
186
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
187
|
-
super.$registerDocumentColorProvider(handle, pluginInfo, selector);
|
|
188
|
-
}
|
|
189
|
-
$registerQuickFixProvider(handle, pluginInfo, selector, codeActionKinds, documentation) {
|
|
190
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
191
|
-
super.$registerQuickFixProvider(handle, pluginInfo, selector, codeActionKinds, documentation);
|
|
192
|
-
}
|
|
193
|
-
$registerRenameProvider(handle, pluginInfo, selector, supportsResolveLocation) {
|
|
194
|
-
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
195
|
-
super.$registerRenameProvider(handle, pluginInfo, selector, supportsResolveLocation);
|
|
196
|
-
}
|
|
197
|
-
registerPluginWithFeatureHandle(handle, pluginID) {
|
|
198
|
-
this.handleToExtensionID.set(handle, pluginID);
|
|
199
|
-
}
|
|
200
|
-
handleToExtensionName(handle) {
|
|
201
|
-
return this.handleToExtensionID.get(handle);
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
__decorate([
|
|
205
|
-
(0, inversify_1.inject)(plugin_metrics_resolver_1.PluginMetricsResolver),
|
|
206
|
-
__metadata("design:type", plugin_metrics_resolver_1.PluginMetricsResolver)
|
|
207
|
-
], LanguagesMainPluginMetrics.prototype, "pluginMetricsResolver", void 0);
|
|
208
|
-
LanguagesMainPluginMetrics = __decorate([
|
|
209
|
-
(0, inversify_1.injectable)()
|
|
210
|
-
], LanguagesMainPluginMetrics);
|
|
211
|
-
exports.LanguagesMainPluginMetrics = LanguagesMainPluginMetrics;
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2019 Red Hat 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 WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.LanguagesMainPluginMetrics = void 0;
|
|
28
|
+
const plugin_metrics_resolver_1 = require("./plugin-metrics-resolver");
|
|
29
|
+
const languages_main_1 = require("@theia/plugin-ext/lib/main/browser/languages-main");
|
|
30
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
31
|
+
const vst = require("@theia/core/shared/vscode-languageserver-protocol");
|
|
32
|
+
let LanguagesMainPluginMetrics = class LanguagesMainPluginMetrics extends languages_main_1.LanguagesMainImpl {
|
|
33
|
+
constructor() {
|
|
34
|
+
super(...arguments);
|
|
35
|
+
// Map of handle to extension id
|
|
36
|
+
this.handleToExtensionID = new Map();
|
|
37
|
+
}
|
|
38
|
+
$unregister(handle) {
|
|
39
|
+
this.handleToExtensionID.delete(handle);
|
|
40
|
+
super.$unregister(handle);
|
|
41
|
+
}
|
|
42
|
+
provideCompletionItems(handle, model, position, context, token) {
|
|
43
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.CompletionRequest.type.method, super.provideCompletionItems(handle, model, position, context, token));
|
|
44
|
+
}
|
|
45
|
+
resolveCompletionItem(handle, item, token) {
|
|
46
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.CompletionRequest.type.method, super.resolveCompletionItem(handle, item, token));
|
|
47
|
+
}
|
|
48
|
+
provideReferences(handle, model, position, context, token) {
|
|
49
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.ReferencesRequest.type.method, super.provideReferences(handle, model, position, context, token));
|
|
50
|
+
}
|
|
51
|
+
provideImplementation(handle, model, position, token) {
|
|
52
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.ImplementationRequest.type.method, super.provideImplementation(handle, model, position, token));
|
|
53
|
+
}
|
|
54
|
+
provideTypeDefinition(handle, model, position, token) {
|
|
55
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.TypeDefinitionRequest.type.method, super.provideTypeDefinition(handle, model, position, token));
|
|
56
|
+
}
|
|
57
|
+
provideHover(handle, model, position, token) {
|
|
58
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.HoverRequest.type.method, super.provideHover(handle, model, position, token));
|
|
59
|
+
}
|
|
60
|
+
provideDocumentHighlights(handle, model, position, token) {
|
|
61
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DocumentHighlightRequest.type.method, super.provideDocumentHighlights(handle, model, position, token));
|
|
62
|
+
}
|
|
63
|
+
provideWorkspaceSymbols(handle, params, token) {
|
|
64
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.WorkspaceSymbolRequest.type.method, super.provideWorkspaceSymbols(handle, params, token));
|
|
65
|
+
}
|
|
66
|
+
resolveWorkspaceSymbol(handle, symbol, token) {
|
|
67
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.WorkspaceSymbolRequest.type.method, super.resolveWorkspaceSymbol(handle, symbol, token));
|
|
68
|
+
}
|
|
69
|
+
async provideLinks(handle, model, token) {
|
|
70
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DocumentLinkRequest.type.method, super.provideLinks(handle, model, token));
|
|
71
|
+
}
|
|
72
|
+
async resolveLink(handle, link, token) {
|
|
73
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DocumentLinkRequest.type.method, super.resolveLink(handle, link, token));
|
|
74
|
+
}
|
|
75
|
+
async provideCodeLenses(handle, model, token) {
|
|
76
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.CodeLensRequest.type.method, super.provideCodeLenses(handle, model, token));
|
|
77
|
+
}
|
|
78
|
+
resolveCodeLens(handle, model, codeLens, token) {
|
|
79
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.CodeLensResolveRequest.type.method, super.resolveCodeLens(handle, model, codeLens, token));
|
|
80
|
+
}
|
|
81
|
+
provideDocumentSymbols(handle, model, token) {
|
|
82
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DocumentSymbolRequest.type.method, super.provideDocumentSymbols(handle, model, token));
|
|
83
|
+
}
|
|
84
|
+
provideDefinition(handle, model, position, token) {
|
|
85
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DefinitionRequest.type.method, super.provideDefinition(handle, model, position, token));
|
|
86
|
+
}
|
|
87
|
+
async provideSignatureHelp(handle, model, position, token, context) {
|
|
88
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.SignatureHelpRequest.type.method, super.provideSignatureHelp(handle, model, position, token, context));
|
|
89
|
+
}
|
|
90
|
+
provideDocumentFormattingEdits(handle, model, options, token) {
|
|
91
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DocumentFormattingRequest.type.method, super.provideDocumentFormattingEdits(handle, model, options, token));
|
|
92
|
+
}
|
|
93
|
+
provideDocumentRangeFormattingEdits(handle, model, range, options, token) {
|
|
94
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DocumentRangeFormattingRequest.type.method, super.provideDocumentRangeFormattingEdits(handle, model, range, options, token));
|
|
95
|
+
}
|
|
96
|
+
provideOnTypeFormattingEdits(handle, model, position, ch, options, token) {
|
|
97
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DocumentOnTypeFormattingRequest.type.method, super.provideOnTypeFormattingEdits(handle, model, position, ch, options, token));
|
|
98
|
+
}
|
|
99
|
+
provideFoldingRanges(handle, model, context, token) {
|
|
100
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.FoldingRangeRequest.type.method, super.provideFoldingRanges(handle, model, context, token));
|
|
101
|
+
}
|
|
102
|
+
provideDocumentColors(handle, model, token) {
|
|
103
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.DocumentColorRequest.type.method, super.provideDocumentColors(handle, model, token));
|
|
104
|
+
}
|
|
105
|
+
provideColorPresentations(handle, model, colorInfo, token) {
|
|
106
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.ColorPresentationRequest.type.method, super.provideColorPresentations(handle, model, colorInfo, token));
|
|
107
|
+
}
|
|
108
|
+
async provideCodeActions(handle, model, rangeOrSelection, context, token) {
|
|
109
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.CodeActionRequest.type.method, super.provideCodeActions(handle, model, rangeOrSelection, context, token));
|
|
110
|
+
}
|
|
111
|
+
provideRenameEdits(handle, model, position, newName, token) {
|
|
112
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.RenameRequest.type.method, super.provideRenameEdits(handle, model, position, newName, token));
|
|
113
|
+
}
|
|
114
|
+
resolveRenameLocation(handle, model, position, token) {
|
|
115
|
+
return this.pluginMetricsResolver.resolveRequest(this.handleToExtensionName(handle), vst.RenameRequest.type.method, super.resolveRenameLocation(handle, model, position, token));
|
|
116
|
+
}
|
|
117
|
+
$registerCompletionSupport(handle, pluginInfo, selector, triggerCharacters, supportsResolveDetails) {
|
|
118
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
119
|
+
super.$registerCompletionSupport(handle, pluginInfo, selector, triggerCharacters, supportsResolveDetails);
|
|
120
|
+
}
|
|
121
|
+
$registerDefinitionProvider(handle, pluginInfo, selector) {
|
|
122
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
123
|
+
super.$registerDefinitionProvider(handle, pluginInfo, selector);
|
|
124
|
+
}
|
|
125
|
+
$registerDeclarationProvider(handle, pluginInfo, selector) {
|
|
126
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
127
|
+
super.$registerDeclarationProvider(handle, pluginInfo, selector);
|
|
128
|
+
}
|
|
129
|
+
$registerReferenceProvider(handle, pluginInfo, selector) {
|
|
130
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
131
|
+
super.$registerReferenceProvider(handle, pluginInfo, selector);
|
|
132
|
+
}
|
|
133
|
+
$registerSignatureHelpProvider(handle, pluginInfo, selector, metadata) {
|
|
134
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
135
|
+
super.$registerSignatureHelpProvider(handle, pluginInfo, selector, metadata);
|
|
136
|
+
}
|
|
137
|
+
$registerImplementationProvider(handle, pluginInfo, selector) {
|
|
138
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
139
|
+
super.$registerImplementationProvider(handle, pluginInfo, selector);
|
|
140
|
+
}
|
|
141
|
+
$registerTypeDefinitionProvider(handle, pluginInfo, selector) {
|
|
142
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
143
|
+
super.$registerTypeDefinitionProvider(handle, pluginInfo, selector);
|
|
144
|
+
}
|
|
145
|
+
$registerHoverProvider(handle, pluginInfo, selector) {
|
|
146
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
147
|
+
super.$registerHoverProvider(handle, pluginInfo, selector);
|
|
148
|
+
}
|
|
149
|
+
$registerDocumentHighlightProvider(handle, pluginInfo, selector) {
|
|
150
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
151
|
+
super.$registerDocumentHighlightProvider(handle, pluginInfo, selector);
|
|
152
|
+
}
|
|
153
|
+
$registerWorkspaceSymbolProvider(handle, pluginInfo) {
|
|
154
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
155
|
+
super.$registerWorkspaceSymbolProvider(handle, pluginInfo);
|
|
156
|
+
}
|
|
157
|
+
$registerDocumentLinkProvider(handle, pluginInfo, selector) {
|
|
158
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
159
|
+
super.$registerDocumentLinkProvider(handle, pluginInfo, selector);
|
|
160
|
+
}
|
|
161
|
+
$registerCodeLensSupport(handle, pluginInfo, selector, eventHandle) {
|
|
162
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
163
|
+
super.$registerCodeLensSupport(handle, pluginInfo, selector, eventHandle);
|
|
164
|
+
}
|
|
165
|
+
$registerOutlineSupport(handle, pluginInfo, selector, displayName) {
|
|
166
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
167
|
+
super.$registerOutlineSupport(handle, pluginInfo, selector, displayName);
|
|
168
|
+
}
|
|
169
|
+
$registerDocumentFormattingSupport(handle, pluginInfo, selector) {
|
|
170
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
171
|
+
super.$registerDocumentFormattingSupport(handle, pluginInfo, selector);
|
|
172
|
+
}
|
|
173
|
+
$registerRangeFormattingSupport(handle, pluginInfo, selector) {
|
|
174
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
175
|
+
super.$registerRangeFormattingSupport(handle, pluginInfo, selector);
|
|
176
|
+
}
|
|
177
|
+
$registerOnTypeFormattingProvider(handle, pluginInfo, selector, autoFormatTriggerCharacters) {
|
|
178
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
179
|
+
super.$registerOnTypeFormattingProvider(handle, pluginInfo, selector, autoFormatTriggerCharacters);
|
|
180
|
+
}
|
|
181
|
+
$registerFoldingRangeProvider(handle, pluginInfo, selector, eventHandle) {
|
|
182
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
183
|
+
super.$registerFoldingRangeProvider(handle, pluginInfo, selector, eventHandle);
|
|
184
|
+
}
|
|
185
|
+
$registerDocumentColorProvider(handle, pluginInfo, selector) {
|
|
186
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
187
|
+
super.$registerDocumentColorProvider(handle, pluginInfo, selector);
|
|
188
|
+
}
|
|
189
|
+
$registerQuickFixProvider(handle, pluginInfo, selector, codeActionKinds, documentation) {
|
|
190
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
191
|
+
super.$registerQuickFixProvider(handle, pluginInfo, selector, codeActionKinds, documentation);
|
|
192
|
+
}
|
|
193
|
+
$registerRenameProvider(handle, pluginInfo, selector, supportsResolveLocation) {
|
|
194
|
+
this.registerPluginWithFeatureHandle(handle, pluginInfo.id);
|
|
195
|
+
super.$registerRenameProvider(handle, pluginInfo, selector, supportsResolveLocation);
|
|
196
|
+
}
|
|
197
|
+
registerPluginWithFeatureHandle(handle, pluginID) {
|
|
198
|
+
this.handleToExtensionID.set(handle, pluginID);
|
|
199
|
+
}
|
|
200
|
+
handleToExtensionName(handle) {
|
|
201
|
+
return this.handleToExtensionID.get(handle);
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
__decorate([
|
|
205
|
+
(0, inversify_1.inject)(plugin_metrics_resolver_1.PluginMetricsResolver),
|
|
206
|
+
__metadata("design:type", plugin_metrics_resolver_1.PluginMetricsResolver)
|
|
207
|
+
], LanguagesMainPluginMetrics.prototype, "pluginMetricsResolver", void 0);
|
|
208
|
+
LanguagesMainPluginMetrics = __decorate([
|
|
209
|
+
(0, inversify_1.injectable)()
|
|
210
|
+
], LanguagesMainPluginMetrics);
|
|
211
|
+
exports.LanguagesMainPluginMetrics = LanguagesMainPluginMetrics;
|
|
212
212
|
//# sourceMappingURL=plugin-metrics-languages-main.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OutputChannelRegistryMainImpl } from '@theia/plugin-ext/lib/main/browser/output-channel-registry-main';
|
|
2
|
-
import { PluginMetricsCreator } from './plugin-metrics-creator';
|
|
3
|
-
import { PluginInfo } from '@theia/plugin-ext/lib/common/plugin-api-rpc';
|
|
4
|
-
export declare class PluginMetricsOutputChannelRegistry extends OutputChannelRegistryMainImpl {
|
|
5
|
-
protected readonly pluginMetricsCreator: PluginMetricsCreator;
|
|
6
|
-
$append(channelName: string, errorOrValue: string, pluginInfo: PluginInfo): PromiseLike<void>;
|
|
7
|
-
}
|
|
1
|
+
import { OutputChannelRegistryMainImpl } from '@theia/plugin-ext/lib/main/browser/output-channel-registry-main';
|
|
2
|
+
import { PluginMetricsCreator } from './plugin-metrics-creator';
|
|
3
|
+
import { PluginInfo } from '@theia/plugin-ext/lib/common/plugin-api-rpc';
|
|
4
|
+
export declare class PluginMetricsOutputChannelRegistry extends OutputChannelRegistryMainImpl {
|
|
5
|
+
protected readonly pluginMetricsCreator: PluginMetricsCreator;
|
|
6
|
+
$append(channelName: string, errorOrValue: string, pluginInfo: PluginInfo): PromiseLike<void>;
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=plugin-metrics-output-registry.d.ts.map
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2019 Red Hat, Inc. 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 WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.PluginMetricsOutputChannelRegistry = void 0;
|
|
28
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
29
|
-
const output_channel_registry_main_1 = require("@theia/plugin-ext/lib/main/browser/output-channel-registry-main");
|
|
30
|
-
const plugin_metrics_creator_1 = require("./plugin-metrics-creator");
|
|
31
|
-
const plugin_metrics_types_1 = require("../common/plugin-metrics-types");
|
|
32
|
-
let PluginMetricsOutputChannelRegistry = class PluginMetricsOutputChannelRegistry extends output_channel_registry_main_1.OutputChannelRegistryMainImpl {
|
|
33
|
-
$append(channelName, errorOrValue, pluginInfo) {
|
|
34
|
-
if (errorOrValue.startsWith('[Error')) {
|
|
35
|
-
const createdMetric = (0, plugin_metrics_types_1.createDefaultRequestData)(pluginInfo.id, errorOrValue);
|
|
36
|
-
this.pluginMetricsCreator.createErrorMetric(createdMetric);
|
|
37
|
-
}
|
|
38
|
-
return super.$append(channelName, errorOrValue, pluginInfo);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, inversify_1.inject)(plugin_metrics_creator_1.PluginMetricsCreator),
|
|
43
|
-
__metadata("design:type", plugin_metrics_creator_1.PluginMetricsCreator)
|
|
44
|
-
], PluginMetricsOutputChannelRegistry.prototype, "pluginMetricsCreator", void 0);
|
|
45
|
-
PluginMetricsOutputChannelRegistry = __decorate([
|
|
46
|
-
(0, inversify_1.injectable)()
|
|
47
|
-
], PluginMetricsOutputChannelRegistry);
|
|
48
|
-
exports.PluginMetricsOutputChannelRegistry = PluginMetricsOutputChannelRegistry;
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2019 Red Hat, Inc. 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 WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.PluginMetricsOutputChannelRegistry = void 0;
|
|
28
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
29
|
+
const output_channel_registry_main_1 = require("@theia/plugin-ext/lib/main/browser/output-channel-registry-main");
|
|
30
|
+
const plugin_metrics_creator_1 = require("./plugin-metrics-creator");
|
|
31
|
+
const plugin_metrics_types_1 = require("../common/plugin-metrics-types");
|
|
32
|
+
let PluginMetricsOutputChannelRegistry = class PluginMetricsOutputChannelRegistry extends output_channel_registry_main_1.OutputChannelRegistryMainImpl {
|
|
33
|
+
$append(channelName, errorOrValue, pluginInfo) {
|
|
34
|
+
if (errorOrValue.startsWith('[Error')) {
|
|
35
|
+
const createdMetric = (0, plugin_metrics_types_1.createDefaultRequestData)(pluginInfo.id, errorOrValue);
|
|
36
|
+
this.pluginMetricsCreator.createErrorMetric(createdMetric);
|
|
37
|
+
}
|
|
38
|
+
return super.$append(channelName, errorOrValue, pluginInfo);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, inversify_1.inject)(plugin_metrics_creator_1.PluginMetricsCreator),
|
|
43
|
+
__metadata("design:type", plugin_metrics_creator_1.PluginMetricsCreator)
|
|
44
|
+
], PluginMetricsOutputChannelRegistry.prototype, "pluginMetricsCreator", void 0);
|
|
45
|
+
PluginMetricsOutputChannelRegistry = __decorate([
|
|
46
|
+
(0, inversify_1.injectable)()
|
|
47
|
+
], PluginMetricsOutputChannelRegistry);
|
|
48
|
+
exports.PluginMetricsOutputChannelRegistry = PluginMetricsOutputChannelRegistry;
|
|
49
49
|
//# sourceMappingURL=plugin-metrics-output-registry.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This class helps resolve language server requests into successes or failures
|
|
3
|
-
* and sends the data to the metricsExtractor
|
|
4
|
-
*/
|
|
5
|
-
export declare class PluginMetricsResolver {
|
|
6
|
-
private metricsCreator;
|
|
7
|
-
/**
|
|
8
|
-
* Resolve a request for pluginID and create a metric based on whether or not
|
|
9
|
-
* the language server errored.
|
|
10
|
-
*
|
|
11
|
-
* @param pluginID the ID of the plugin that made the request
|
|
12
|
-
* @param method the method that was request
|
|
13
|
-
* @param request the result of the language server request
|
|
14
|
-
*/
|
|
15
|
-
resolveRequest(pluginID: string, method: string, request: PromiseLike<any> | Promise<any> | Thenable<any> | any): Promise<any>;
|
|
16
|
-
private createAndSetMetric;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* This class helps resolve language server requests into successes or failures
|
|
3
|
+
* and sends the data to the metricsExtractor
|
|
4
|
+
*/
|
|
5
|
+
export declare class PluginMetricsResolver {
|
|
6
|
+
private metricsCreator;
|
|
7
|
+
/**
|
|
8
|
+
* Resolve a request for pluginID and create a metric based on whether or not
|
|
9
|
+
* the language server errored.
|
|
10
|
+
*
|
|
11
|
+
* @param pluginID the ID of the plugin that made the request
|
|
12
|
+
* @param method the method that was request
|
|
13
|
+
* @param request the result of the language server request
|
|
14
|
+
*/
|
|
15
|
+
resolveRequest(pluginID: string, method: string, request: PromiseLike<any> | Promise<any> | Thenable<any> | any): Promise<any>;
|
|
16
|
+
private createAndSetMetric;
|
|
17
|
+
}
|
|
18
18
|
//# sourceMappingURL=plugin-metrics-resolver.d.ts.map
|