File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/vs/editor/contrib/suggest/browser Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ export class SuggestController implements IEditorContribution {
379
379
380
380
tasks . push ( item . resolve ( cts . token ) . then ( ( ) => {
381
381
if ( ! item . completion . additionalTextEdits || cts . token . isCancellationRequested ) {
382
- return false ;
382
+ return undefined ;
383
383
}
384
384
if ( position && item . completion . additionalTextEdits . some ( edit => Position . isBefore ( position ! , Range . getStartPosition ( edit . range ) ) ) ) {
385
385
return false ;
@@ -406,10 +406,12 @@ export class SuggestController implements IEditorContribution {
406
406
providerId : { classification : 'PublicNonPersonalData' ; purpose : 'FeatureInsight' ; comment : 'Provider of the completions item' } ;
407
407
applied : { classification : 'SystemMetaData' ; purpose : 'FeatureInsight' ; isMeasurement : true ; comment : 'If async additional text edits could be applied' } ;
408
408
} ;
409
- this . _telemetryService . publicLog2 < AsyncSuggestEdits , AsyncSuggestEditsClassification > ( 'suggest.asyncAdditionalEdits' , {
410
- providerId : item . extensionId ?. value ?? 'unknown' ,
411
- applied
412
- } ) ;
409
+ if ( typeof applied === 'boolean' ) {
410
+ this . _telemetryService . publicLog2 < AsyncSuggestEdits , AsyncSuggestEditsClassification > ( 'suggest.asyncAdditionalEdits' , {
411
+ providerId : item . extensionId ?. value ?? 'unknown' ,
412
+ applied
413
+ } ) ;
414
+ }
413
415
} ) . finally ( ( ) => {
414
416
docListener . dispose ( ) ;
415
417
typeListener . dispose ( ) ;
You can’t perform that action at this time.
0 commit comments