@@ -320,10 +320,10 @@ export class AccessibleView extends Disposable {
320
320
321
321
if ( position ) {
322
322
// Context view takes time to show up, so we need to wait for it to show up before we can set the position
323
- setTimeout ( ( ) => {
323
+ queueMicrotask ( ( ) => {
324
324
this . _editorWidget . revealLine ( position . lineNumber ) ;
325
325
this . _editorWidget . setSelection ( { startLineNumber : position . lineNumber , startColumn : position . column , endLineNumber : position . lineNumber , endColumn : position . column } ) ;
326
- } , 10 ) ;
326
+ } ) ;
327
327
}
328
328
329
329
if ( symbol && this . _currentProvider ) {
@@ -672,13 +672,17 @@ export class AccessibleView extends Disposable {
672
672
const accessibleViewHelpProvider : IAccessibleContentProvider = {
673
673
id : lastProvider . id ,
674
674
provideContent : ( ) => lastProvider . options . customHelp ? lastProvider ?. options . customHelp ( ) : this . _getAccessibleViewHelpDialogContent ( this . _goToSymbolsSupported ( ) ) ,
675
- onClose : ( ) => this . show ( lastProvider ) ,
675
+ onClose : ( ) => {
676
+ this . _contextViewService . hideContextView ( ) ;
677
+ // HACK: Delay to allow the context view to hide #207638
678
+ queueMicrotask ( ( ) => this . show ( lastProvider ) ) ;
679
+ } ,
676
680
options : { type : AccessibleViewType . Help } ,
677
681
verbositySettingKey : lastProvider . verbositySettingKey
678
682
} ;
679
683
this . _contextViewService . hideContextView ( ) ;
680
684
// HACK: Delay to allow the context view to hide #186514
681
- setTimeout ( ( ) => this . show ( accessibleViewHelpProvider , undefined , true ) , 100 ) ;
685
+ queueMicrotask ( ( ) => this . show ( accessibleViewHelpProvider , undefined , true ) ) ;
682
686
}
683
687
684
688
private _getAccessibleViewHelpDialogContent ( providerHasSymbols ?: boolean ) : string {
0 commit comments