File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed
workbench/contrib/chat/browser Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
6
import * as dom from 'vs/base/browser/dom' ;
7
- import { isMacintosh } from 'vs/base/common/platform' ;
8
7
import 'vs/css!./aria' ;
9
8
10
9
// Use a max length since we are inserting the whole msg in the DOM and that can cause browsers to freeze for long messages #94233
@@ -69,16 +68,12 @@ export function status(msg: string): void {
69
68
return ;
70
69
}
71
70
72
- if ( isMacintosh ) {
73
- alert ( msg ) ; // VoiceOver does not seem to support status role
71
+ if ( statusContainer . textContent !== msg ) {
72
+ dom . clearNode ( statusContainer2 ) ;
73
+ insertMessage ( statusContainer , msg ) ;
74
74
} else {
75
- if ( statusContainer . textContent !== msg ) {
76
- dom . clearNode ( statusContainer2 ) ;
77
- insertMessage ( statusContainer , msg ) ;
78
- } else {
79
- dom . clearNode ( statusContainer ) ;
80
- insertMessage ( statusContainer2 , msg ) ;
81
- }
75
+ dom . clearNode ( statusContainer ) ;
76
+ insertMessage ( statusContainer2 , msg ) ;
82
77
}
83
78
}
84
79
Original file line number Diff line number Diff line change 4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
6
import * as dom from 'vs/base/browser/dom' ;
7
- import { alert } from 'vs/base/browser/ui/aria/aria' ;
7
+ import { status } from 'vs/base/browser/ui/aria/aria' ;
8
8
import { ITreeContextMenuEvent , ITreeElement } from 'vs/base/browser/ui/tree/tree' ;
9
9
import { CancellationToken } from 'vs/base/common/cancellation' ;
10
10
import { Emitter } from 'vs/base/common/event' ;
@@ -529,7 +529,7 @@ export class ChatAccessibilityService extends Disposable implements IChatAccessi
529
529
return ;
530
530
}
531
531
const errorDetails = response . errorDetails ? ` ${ response . errorDetails . message } ` : '' ;
532
- alert ( response . response . value + errorDetails ) ;
532
+ status ( response . response . value + errorDetails ) ;
533
533
}
534
534
}
535
535
You can’t perform that action at this time.
0 commit comments