UNPKG

sussudio

Version:

An unofficial VS Code Internal API

32 lines (31 loc) 1.49 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { Event } from "../../../base/common/event.mjs"; import { RawContextKey } from "../../contextkey/common/contextkey.mjs"; export declare const IAccessibilityService: import("../../instantiation/common/instantiation.mjs").ServiceIdentifier<IAccessibilityService>; export interface IAccessibilityService { readonly _serviceBrand: undefined; readonly onDidChangeScreenReaderOptimized: Event<void>; readonly onDidChangeReducedMotion: Event<void>; alwaysUnderlineAccessKeys(): Promise<boolean>; isScreenReaderOptimized(): boolean; isMotionReduced(): boolean; getAccessibilitySupport(): AccessibilitySupport; setAccessibilitySupport(accessibilitySupport: AccessibilitySupport): void; alert(message: string): void; } export declare const enum AccessibilitySupport { /** * This should be the browser case where it is not known if a screen reader is attached or no. */ Unknown = 0, Disabled = 1, Enabled = 2 } export declare const CONTEXT_ACCESSIBILITY_MODE_ENABLED: RawContextKey<boolean>; export interface IAccessibilityInformation { label: string; role?: string; }