File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -343,16 +343,22 @@ export class StandardLanguageClient {
343
343
} else if ( e . name === Telemetry . LS_ERROR ) {
344
344
const tags = [ ] ;
345
345
const exception : string = e ?. properties . exception ;
346
+ const message : string = e ?. properties . message ;
346
347
if ( exception !== undefined ) {
347
348
if ( exception . includes ( "dtree.ObjectNotFoundException" ) ) {
348
349
tags . push ( "dtree.ObjectNotFoundException" ) ;
349
350
}
350
-
351
- if ( tags . length > 0 ) {
352
- e . properties [ 'tags' ] = tags ;
353
- return Telemetry . sendTelemetry ( Telemetry . LS_ERROR , e . properties ) ;
351
+ }
352
+ if ( message !== undefined ) {
353
+ if ( message . includes ( "workspace exited with unsaved changes" ) ) {
354
+ tags . push ( "workspace-exited-unsaved-changes" ) ;
354
355
}
355
356
}
357
+
358
+ if ( tags . length > 0 ) {
359
+ e . properties [ 'tags' ] = tags ;
360
+ return Telemetry . sendTelemetry ( Telemetry . LS_ERROR , e . properties ) ;
361
+ }
356
362
}
357
363
} ) ;
358
364
You can’t perform that action at this time.
0 commit comments