Skip to content

Commit

Permalink
Minor change to debug telemetry (#1460)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejizba authored Aug 21, 2019
1 parent aef0e59 commit cd6617a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/debug/FuncDebugProviderBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ export abstract class FuncDebugProviderBase implements DebugConfigurationProvide
await callWithTelemetryAndErrorHandling('resolveDebugConfiguration', async (context: IActionContext) => {
context.telemetry.properties.isActivationEvent = 'true';
context.errorHandling.suppressDisplay = true;
context.telemetry.suppressIfSuccessful = true;

this._debugPorts.set(folder, <number | undefined>debugConfiguration.port);
if (debugConfiguration.preLaunchTask === hostStartTaskName) {
context.telemetry.properties.isActivationEvent = 'false';
context.telemetry.suppressIfSuccessful = false;

const preDebugResult: IPreDebugValidateResult = await preDebugValidate(context, debugConfiguration);
if (!preDebugResult.shouldContinue) {
// Stop debugging only in this case
Expand Down

0 comments on commit cd6617a

Please sign in to comment.