Update src/vs/workbench/browser/parts/titlebar/windowTitle.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Megan Rogge
2025-12-18 11:23:52 -06:00
committed by GitHub
parent 1725ad00d3
commit 7a4a63a4cc

View File

@@ -417,6 +417,20 @@ export class WindowTitle extends Disposable {
});
}
/**
* Computes the notebook execution status text that can be shown in the window title.
*
* This only returns a localized string when:
* - the screen reader optimized mode is enabled, and
* - the active editor is a notebook, and
* - at least one cell in the active notebook is currently executing.
*
* In all other cases, this method returns `undefined` so that no additional
* notebook status is rendered in the window title.
*
* @returns A localized status string indicating that notebook cells are executing,
* or `undefined` if no status should be shown.
*/
private getNotebookStatus(): string | undefined {
// Only show notebook status for screen reader users
if (!this.accessibilityService.isScreenReaderOptimized()) {