@theia/plugin-metrics 1.57.0-next.7 → 1.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -16,13 +16,13 @@ The `@theia/plugin-metrics` extension contributes metrics for plugins in the [Pr
|
|
|
16
16
|
|
|
17
17
|
### What Metrics it Detects
|
|
18
18
|
|
|
19
|
-
1. Detects errors in languages that are registered directly with monaco (E.g. if an error happens here: https://github.com/microsoft/vscode-extension-samples/blob/master/completions-sample/src/extension.ts#L11 it will be reported).
|
|
19
|
+
1. Detects errors in languages that are registered directly with monaco (E.g. if an error happens here: <https://github.com/microsoft/vscode-extension-samples/blob/master/completions-sample/src/extension.ts#L11> it will be reported).
|
|
20
20
|
|
|
21
21
|
2. Detects errors that are logged directly to the output channel for a specific vscode extension that uses a language server. These errors can only be reported via their id that is registered with the vscode-languageclient library. E.g. "YAML Support", "XML Support", etc
|
|
22
22
|
|
|
23
23
|
### Limitations & Drawbacks
|
|
24
24
|
|
|
25
|
-
Due to the limitations of the vscode-languageclient library (see https://github.com/microsoft/vscode-languageserver-node/issues/517) we are unable to process errors that come from the language server directly, instead we need to use the output channel. The output channel is great because it allows us to work around limitations of the vscode-languageclient library and still get metrics but it still has some drawbacks:
|
|
25
|
+
Due to the limitations of the vscode-languageclient library (see <https://github.com/microsoft/vscode-languageserver-node/issues/517>) we are unable to process errors that come from the language server directly, instead we need to use the output channel. The output channel is great because it allows us to work around limitations of the vscode-languageclient library and still get metrics but it still has some drawbacks:
|
|
26
26
|
|
|
27
27
|
1. Every time a language server request is resolved it counts as a success. This is because the vscode-languageclient always sends back a resolved promise even when the promise is actually rejected. The only time you can get an error is by extracting data from the output channel using a regex and connecting it back to the successes that were counted earlier. This has a few consequences:
|
|
28
28
|
1. If the errors logged are not matched by the regex we have no way to know where the error occurred and thus we can't link the error back to a language server method. That means that the metric we created will always show that its working 100% correctly, even though it's not.
|
|
@@ -59,5 +59,6 @@ Then, when you load up the /metrics endpoint you will see the new language metri
|
|
|
59
59
|
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
60
60
|
|
|
61
61
|
## Trademark
|
|
62
|
+
|
|
62
63
|
"Theia" is a trademark of the Eclipse Foundation
|
|
63
|
-
https://www.eclipse.org/theia
|
|
64
|
+
<https://www.eclipse.org/theia>
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin-metrics",
|
|
3
|
-
"version": "1.57.0
|
|
3
|
+
"version": "1.57.0",
|
|
4
4
|
"description": "Theia - Plugin Metrics",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.57.0
|
|
7
|
-
"@theia/metrics": "1.57.0
|
|
6
|
+
"@theia/core": "1.57.0",
|
|
7
|
+
"@theia/metrics": "1.57.0",
|
|
8
8
|
"@theia/monaco-editor-core": "1.83.101",
|
|
9
|
-
"@theia/plugin": "1.57.0
|
|
10
|
-
"@theia/plugin-ext": "1.57.0
|
|
9
|
+
"@theia/plugin": "1.57.0",
|
|
10
|
+
"@theia/plugin-ext": "1.57.0",
|
|
11
11
|
"tslib": "^2.6.2"
|
|
12
12
|
},
|
|
13
13
|
"publishConfig": {
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"watch": "theiaext watch"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@theia/ext-scripts": "1.
|
|
47
|
+
"@theia/ext-scripts": "1.57.0"
|
|
48
48
|
},
|
|
49
49
|
"nyc": {
|
|
50
50
|
"extends": "../../configs/nyc.json"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "ca1d948d897b9a774f8cd68bb76bd2f335609cd4"
|
|
53
53
|
}
|