@@ -18,7 +18,7 @@ import { getTemporaryCommandRegistrarInstance, initializeTemporaryCommandRegistr
1818import { PlatformInformation } from './platform' ;
1919import { PackageManager , PackageManagerError , IPackage } from './packageManager' ;
2020import { PersistentState } from './LanguageServer/persistentState' ;
21- import { getInstallationInformation , InstallationInformation , setInstallationStage } from './installationInformation' ;
21+ import { getInstallationInformation , InstallationInformation , setInstallationStage , setInstallationType , InstallationType } from './installationInformation' ;
2222import { Logger , getOutputChannelLogger , showOutputChannel } from './logger' ;
2323import { CppTools1 } from './cppTools1' ;
2424
@@ -87,6 +87,7 @@ async function processRuntimeDependencies(): Promise<void> {
8787
8888async function offlineInstallation ( ) : Promise < void > {
8989 setInstallationStage ( 'getPlatformInfo' ) ;
90+ setInstallationType ( InstallationType . Offline ) ;
9091 const info : PlatformInformation = await PlatformInformation . GetPlatformInformation ( ) ;
9192
9293 setInstallationStage ( 'makeBinariesExecutable' ) ;
@@ -107,6 +108,7 @@ async function offlineInstallation(): Promise<void> {
107108
108109async function onlineInstallation ( ) : Promise < void > {
109110 setInstallationStage ( 'getPlatformInfo' ) ;
111+ setInstallationType ( InstallationType . Online ) ;
110112 const info : PlatformInformation = await PlatformInformation . GetPlatformInformation ( ) ;
111113
112114 await downloadAndInstallPackages ( info ) ;
@@ -234,6 +236,7 @@ function sendTelemetry(info: PlatformInformation): boolean {
234236 const success : boolean = ! installBlob . hasError ;
235237
236238 installBlob . telemetryProperties [ 'success' ] = success . toString ( ) ;
239+ installBlob . telemetryProperties [ 'type' ] = installBlob . type === InstallationType . Online ? "online" : "offline" ;
237240
238241 if ( info . distribution ) {
239242 installBlob . telemetryProperties [ 'linuxDistroName' ] = info . distribution . name ;
0 commit comments