From 9eb8b02d30a08919cc93c918cb446ea01f615916 Mon Sep 17 00:00:00 2001 From: ivanbuhov Date: Wed, 19 Apr 2017 18:59:03 +0300 Subject: [PATCH] Differentiate the CLI traffic coming from VSCode by adding custom VSCode analytics client --- src/project/nativeScriptCli.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/project/nativeScriptCli.ts b/src/project/nativeScriptCli.ts index 5926275..56981dd 100644 --- a/src/project/nativeScriptCli.ts +++ b/src/project/nativeScriptCli.ts @@ -83,6 +83,7 @@ export class NativeScriptCli { } public executeSync(args: string[], cwd: string): string { + args.unshift("--analyticsClient", "VSCode"); let command: string = `${this._path} ${args.join(' ')}`; this._logger.log(`[NativeScriptCli] execute: ${command}`, Tags.FrontendMessage); @@ -90,6 +91,7 @@ export class NativeScriptCli { } public execute(args: string[], cwd: string): ChildProcess { + args.unshift("--analyticsClient", "VSCode"); let command: string = `${this._path} ${args.join(' ')}`; this._logger.log(`[NativeScriptCli] execute: ${command}`, Tags.FrontendMessage);