@@ -22,7 +22,6 @@ import { IQuickInputService } from '../../../../platform/quickinput/common/quick
22
22
import { WindowTitle } from './windowTitle.js' ;
23
23
import { IEditorGroupsService } from '../../../services/editor/common/editorGroupsService.js' ;
24
24
import { IHoverService } from '../../../../platform/hover/browser/hover.js' ;
25
- import { IAccessibilityService } from '../../../../platform/accessibility/common/accessibility.js' ;
26
25
27
26
export class CommandCenterControl {
28
27
@@ -87,7 +86,6 @@ class CommandCenterCenterViewItem extends BaseActionViewItem {
87
86
@IKeybindingService private _keybindingService : IKeybindingService ,
88
87
@IInstantiationService private _instaService : IInstantiationService ,
89
88
@IEditorGroupsService private _editorGroupService : IEditorGroupsService ,
90
- @IAccessibilityService private readonly _accessibilityService : IAccessibilityService
91
89
) {
92
90
super ( undefined , _submenu . actions . find ( action => action . id === 'workbench.action.quickOpenWithModes' ) ?? _submenu . actions [ 0 ] , options ) ;
93
91
this . _hoverDelegate = options . hoverDelegate ?? getDefaultHoverDelegate ( 'mouse' ) ;
@@ -167,9 +165,6 @@ class CommandCenterCenterViewItem extends BaseActionViewItem {
167
165
labelElement . innerText = this . _getLabel ( ) ;
168
166
} ) ) ;
169
167
170
- this . _store . add ( that . _accessibilityService . onDidChangeScreenReaderOptimized ( ( ) => labelElement . innerText = this . _getLabel ( true ) ) ) ;
171
-
172
-
173
168
// update label & tooltip when tabs visibility changes
174
169
this . _store . add ( that . _editorGroupService . onDidChangeEditorPartOptions ( ( { newPartOptions, oldPartOptions } ) => {
175
170
if ( newPartOptions . showTabs !== oldPartOptions . showTabs ) {
@@ -183,10 +178,10 @@ class CommandCenterCenterViewItem extends BaseActionViewItem {
183
178
return that . getTooltip ( ) ;
184
179
}
185
180
186
- private _getLabel ( screenReaderModeChanged ?: boolean ) : string {
181
+ private _getLabel ( ) : string {
187
182
const { prefix, suffix } = that . _windowTitle . getTitleDecorations ( ) ;
188
183
let label = that . _windowTitle . workspaceName ;
189
- if ( screenReaderModeChanged || that . _windowTitle . isCustomTitleFormat ( ) ) {
184
+ if ( that . _windowTitle . isCustomTitleFormat ( ) ) {
190
185
label = that . _windowTitle . getWindowTitle ( ) ;
191
186
} else if ( that . _editorGroupService . partOptions . showTabs === 'none' ) {
192
187
label = that . _windowTitle . fileName ?? label ;
0 commit comments