Skip to content

Commit 551b968

Browse files
rgrunberdatho7561
authored andcommitted
Send remaining telemetry events coming from the language server.
Signed-off-by: Roland Grunberg <[email protected]>
1 parent 7accd8a commit 551b968

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

USAGE_DATA.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ vscode-xml has opt-in telemetry collection, provided by [vscode-redhat-telemetry
2222
* A telemetry event is sent every time you click on the link to the documentation that appears after the Java XML language server crashes due to an Out Of Memory Error.
2323
* Text Document Information
2424
* When a document is opened :
25-
* The file extension (eg. `xml`, `xsd`, `dtd`)
25+
* The file extension (eg. `xml`, `xsd`, `dtd`, `rng`)
2626
* The associated grammar types (eg. `none`, `doctype`, `xml-model`, `xsi:schemaLocation`, `xsi:noNamespaceSchemaLocation`)
27-
* The resolver used to resolve the grammar identifier (eg. `catalog`, `file association`, `embedded catalog.xsd`, `embedded xml.xsd`, `embedded xslt.xsd`)
27+
* The grammar identifiers for an XML document (eg. `http://maven.apache.org/xsd/maven-4.0.0.xsd`)
28+
* The resolver used to resolve the grammar identifier (eg. `catalog`, `file association`, `embedded catalog.xsd`, `embedded xml.xsd`, `embedded xslt.xsd`, `relaxng.rng`)
2829

2930
## What's included in the general telemetry data
3031

src/client/xmlClient.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ export async function startLanguageClient(context: ExtensionContext, executable:
4949
preferBinary: (getXMLConfiguration()['server']['preferBinary'] as boolean)
5050
};
5151
return Telemetry.sendTelemetry(Telemetry.STARTUP_EVT, e.properties);
52+
} else {
53+
return Telemetry.sendTelemetry(e.name, e.properties);
5254
}
5355
});
5456

0 commit comments

Comments
 (0)