Added strictly typed telemetry function (#75915)

* Added strictly typed telemetry function

* cleanup publicLog2 signature
This commit is contained in:
Logan Ramos
2019-06-21 15:13:07 -07:00
committed by SteVen Batten
parent ebb0ac3165
commit 402281babe
11 changed files with 72 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ import * as callHierarchy from 'vs/workbench/contrib/callHierarchy/common/callHi
import { IRelativePattern } from 'vs/base/common/glob';
import { IRemoteConsoleLog } from 'vs/base/common/console';
import { VSBuffer } from 'vs/base/common/buffer';
import { ClassifiedEvent, StrictPropertyCheck, GDPRClassification } from 'vs/platform/telemetry/common/gdprTypings';
export interface IEnvironment {
isExtensionDevelopmentDebug: boolean;
@@ -508,6 +509,7 @@ export interface MainThreadStorageShape extends IDisposable {
export interface MainThreadTelemetryShape extends IDisposable {
$publicLog(eventName: string, data?: any): void;
$publicLog2<E extends ClassifiedEvent<T> = never, T extends GDPRClassification<T> = never>(eventName: string, data?: StrictPropertyCheck<T, E>): void;
}
export interface MainThreadEditorInsetsShape extends IDisposable {