From 20f4f4f91eafdad93ed75a251a5820d0b180534e Mon Sep 17 00:00:00 2001 From: Andrew Casey Date: Fri, 29 Oct 2021 10:13:57 -0700 Subject: [PATCH] Update GDPR comment formatting ...so that they are picked up properly by the tooling. --- src/server/editorServices.ts | 35 +++++++++++++++++------------------ src/server/protocol.ts | 15 +++++++-------- 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/src/server/editorServices.ts b/src/server/editorServices.ts index 50402fa2c12b3..149332bb6f646 100644 --- a/src/server/editorServices.ts +++ b/src/server/editorServices.ts @@ -49,24 +49,23 @@ namespace ts.server { readonly data: ProjectInfoTelemetryEventData; } - /* - * __GDPR__ - * "projectInfo" : { - * "${include}": ["${TypeScriptCommonProperties}"], - * "projectId": { "classification": "EndUserPseudonymizedInformation", "purpose": "FeatureInsight", "endpoint": "ProjectId" }, - * "fileStats": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - * "compilerOptions": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - * "extends": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - * "files": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - * "include": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - * "exclude": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - * "compileOnSave": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - * "typeAcquisition": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - * "configFileName": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - * "projectType": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - * "languageServiceEnabled": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - * "version": { "classification": "SystemMetaData", "purpose": "FeatureInsight" } - * } + /* __GDPR__ + "projectInfo" : { + "${include}": ["${TypeScriptCommonProperties}"], + "projectId": { "classification": "EndUserPseudonymizedInformation", "purpose": "FeatureInsight", "endpoint": "ProjectId" }, + "fileStats": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "compilerOptions": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "extends": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "files": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "include": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "exclude": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "compileOnSave": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "typeAcquisition": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "configFileName": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "projectType": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "languageServiceEnabled": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "version": { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + } */ export interface ProjectInfoTelemetryEventData { /** Cryptographically secure hash of project file location. */ diff --git a/src/server/protocol.ts b/src/server/protocol.ts index 35c3b783eeb26..da6606796727d 100644 --- a/src/server/protocol.ts +++ b/src/server/protocol.ts @@ -3199,14 +3199,13 @@ namespace ts.server.protocol { payload: TypingsInstalledTelemetryEventPayload; } - /* - * __GDPR__ - * "typingsinstalled" : { - * "${include}": ["${TypeScriptCommonProperties}"], - * "installedPackages": { "classification": "PublicNonPersonalData", "purpose": "FeatureInsight" }, - * "installSuccess": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, - * "typingsInstallerVersion": { "classification": "SystemMetaData", "purpose": "FeatureInsight" } - * } + /* __GDPR__ + "typingsinstalled" : { + "${include}": ["${TypeScriptCommonProperties}"], + "installedPackages": { "classification": "PublicNonPersonalData", "purpose": "FeatureInsight" }, + "installSuccess": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }, + "typingsInstallerVersion": { "classification": "SystemMetaData", "purpose": "FeatureInsight" } + } */ export interface TypingsInstalledTelemetryEventPayload { /**