Skip to content

Commit 80045ca

Browse files
authored
Add GDPR annotations (microsoft#27217)
Note that these annotations are parsed by the tool in Microsoft/vscode-gdpr-tooling; the associated PR #4 adds Typescript to what the tool processes.
1 parent eaf6c69 commit 80045ca

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

src/server/editorServices.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,22 @@ namespace ts.server {
4444
readonly data: ProjectInfoTelemetryEventData;
4545
}
4646

47+
/* __GDPR__
48+
"projectInfo" : {
49+
"fileStats": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
50+
"compilerOptions": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
51+
"extends": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
52+
"files": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
53+
"include": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
54+
"exclude": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
55+
"compileOnSave": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
56+
"typeAcquisition": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
57+
"configFileName": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
58+
"projectType": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
59+
"languageServiceEnabled": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
60+
"version": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
61+
}
62+
*/
4763
export interface ProjectInfoTelemetryEventData {
4864
/** Cryptographically secure hash of project file location. */
4965
readonly projectId: string;

src/server/protocol.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2737,6 +2737,13 @@ namespace ts.server.protocol {
27372737
payload: TypingsInstalledTelemetryEventPayload;
27382738
}
27392739

2740+
/* __GDPR__
2741+
"typingsinstalled" : {
2742+
"installedPackages": { "classification": "PublicNonPersonalData", "purpose": "FeatureInsight" },
2743+
"installSuccess": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
2744+
"typingsInstallerVersion": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
2745+
}
2746+
*/
27402747
export interface TypingsInstalledTelemetryEventPayload {
27412748
/**
27422749
* Comma separated list of installed typing packages

0 commit comments

Comments
 (0)