File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ export class VsCodeDebugInstrumentation implements vscode.Disposable{
1515 onWillReceiveMessage : m => {
1616 } ,
1717 onDidSendMessage :
18- m => {
18+ async m => {
1919 if ( m . event === 'continued' ) {
2020 console . log ( 'continued' ) ;
21- _analyticsProvider . sendInsturmentationEvent ( 1 ) ;
21+ await _analyticsProvider . sendInsturmentationEvent ( 1 ) ;
2222 }
2323 if ( m . event === 'stopped' ) {
24- _analyticsProvider . sendInsturmentationEvent ( 0 ) ;
24+ await _analyticsProvider . sendInsturmentationEvent ( 0 ) ;
2525 }
2626 }
2727 } ;
Original file line number Diff line number Diff line change @@ -364,15 +364,16 @@ export class AnalyticsProvider
364364 }
365365
366366
367- public async getUsageStatus ( codeObjectIds : string [ ] ) : Promise < UsageStatusResults >
367+ public async getUsageStatus ( codeObjectIds : string [ ] , filterByInsightProviders : string [ ] | undefined = undefined ) : Promise < UsageStatusResults >
368368 {
369369
370370 const response : UsageStatusResults = await this . send < any > (
371371 'POST' ,
372372 `/CodeAnalytics/codeObjects/status` ,
373373 undefined ,
374374 {
375- codeObjectIds : codeObjectIds
375+ codeObjectIds : codeObjectIds ,
376+ filterByInsightProviders :filterByInsightProviders
376377 } ) ;
377378 return response ;
378379 }
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ export class ErrorsViewTab implements ICodeAnalyticsViewTab
150150 let usageResults :UsageStatusResults | undefined ;
151151 try
152152 {
153- usageResults = await this . _analyticsProvider . getUsageStatus ( codeObjectsIds ) ; //shayk todo update this one as well
153+ usageResults = await this . _analyticsProvider . getUsageStatus ( codeObjectsIds , [ "Error" ] ) ;
154154 errors = await this . _analyticsProvider . getCodeObjectsErrors ( codeObjectsIds ) ;
155155 }
156156 catch ( e )
You can’t perform that action at this time.
0 commit comments