src/vs/platform/accessibility/common/accessibility.ts

57 LOC · 49 covered · 8 uncovered · 2 ranges · 2068 concepts · 1 introducers · 1048 tests

File neighbourhood

The centred file is linked to every concept that introduces one of its ranges, every test that runs code from the file, and the gray connector concepts standing between those tests and the file's own introducer concepts. Undirected links join concepts to every file where they introduce source and concepts to the tests they introduce; arrows show specialization between the displayed concepts and bridge only concepts omitted from this view. Concept colors match the source ranges below; connector concepts have no source color and are shown in gray.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the file

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the related-file, concept, and source links on this page.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the filesrc/vs/editor/common/config/editorOptions.ts · 6891 LOCconfig/editorOptions.tssrc/vs/editor/common/config/editorZoom.ts · 34 LOCconfig/editorZoom.tssrc/vs/editor/common/config/fontInfo.ts · 244 LOCconfig/fontInfo.tssrc/vs/editor/common/core/misc/textModelDefaults.ts · 17 LOCmisc/textModelDefaults.t…textModel.ts ×6 · 31 introduced LOCtextModel.ts ×6computeAutomaticInstructions.ts ×1 · 2 introduced LOCcomputeAutomaticInstruct…computeAutomaticInstructions.ts ×1 · 2 introduced LOCcomputeAutomaticInstruct…computeAutomaticInstructions.ts ×2 · 6 introduced LOCcomputeAutomaticInstruct…modelService.ts ×4 · 8 introduced LOCmodelService.ts ×4extHostTerminalService.ts ×31 · 156 introduced LOCextHostTerminalService.t…extHostSCM.ts ×86 · 432 introduced LOCextHostSCM.ts ×86extHostChatAgents2.ts ×98 · 451 introduced LOCextHostChatAgents2.ts ×9…textModel.ts ×1 · 1 introduced LOCtextModel.ts ×1textModel.ts ×20 · 342 introduced LOCtextModel.ts ×20extHostTerminalService.ts ×109 · 894 introduced LOCextHostTerminalService.t…testRPCProtocol.ts ×2 · 5 introduced LOCtestRPCProtocol.ts ×2testRPCProtocol.ts ×9 · 119 introduced LOCtestRPCProtocol.ts ×9extHostTypeConverters.test|title=extHostTypeConverters ChatRequestModeInstructions roundtrip from -> to preserves data|occurrence=1 · 0 introduced LOCextHostTypeConverters.te…extHostTypeConverters.ts ×1 · 1 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.ts ×1 · 6 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.ts ×1 · 1 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.ts ×4 · 12 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.test|title=extHostTypeConverters ChatRequestModeInstructions to handles Dto with UriComponents|occurrence=1 · 0 introduced LOCextHostTypeConverters.te…extHostTypeConverters.ts ×3 · 14 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.ts ×13 · 70 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.ts ×1 · 1 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.ts ×1 · 1 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.ts ×1 · 5 introduced LOCextHostTypeConverters.ts…themables.ts ×1 · 5 introduced LOCthemables.ts ×1extHostRpcService.ts ×2 · 38 introduced LOCextHostRpcService.ts ×2extHostTypeConverters.ts ×1 · 1 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.ts ×1 · 1 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.ts ×1 · 1 introduced LOCextHostTypeConverters.ts…extHost.protocol.ts ×3 · 4200 introduced LOCextHost.protocol.ts ×3extHostTypeConverters.ts ×1 · 1 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.ts ×1 · 1 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.ts ×2 · 11 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.ts ×1 · 1 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.ts ×1 · 1 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.ts ×3 · 3 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.ts ×3 · 3 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.ts ×2 · 2 introduced LOCextHostTypeConverters.ts…extHostTypeConverters.ts ×2 · 2 introduced LOCextHostTypeConverters.ts…extHostTypes.ts ×270 · 6339 introduced LOCextHostTypes.ts ×270textModel.ts ×2 · 6 introduced LOCtextModel.ts ×2pieceTreeBase.ts ×1 · 2 introduced LOCpieceTreeBase.ts ×1pieceTreeBase.ts ×1 · 2 introduced LOCpieceTreeBase.ts ×1sparseTokensStore.ts ×1 · 4 introduced LOCsparseTokensStore.ts ×1testThemeService.ts ×18 · 401 introduced LOCtestThemeService.ts ×18modelService.ts ×30 · 152 introduced LOCmodelService.ts ×30pieceTreeTextBufferBuilder.ts ×19 · 149 introduced LOCpieceTreeTextBufferBuild…modelLineProjectionData.ts ×2 · 13 introduced LOCmodelLineProjectionData.…pieceTreeTextBuffer.ts ×1 · 3 introduced LOCpieceTreeTextBuffer.ts ×…pieceTreeTextBuffer.ts ×4 · 31 introduced LOCpieceTreeTextBuffer.ts ×…textModel.ts ×3 · 10 introduced LOCtextModel.ts ×3textModel.ts ×190 · 2948 introduced LOCtextModel.ts ×190brackets.ts ×1 · 3 introduced LOCbrackets.ts ×1tokenizer.ts ×18 · 196 introduced LOCtokenizer.ts ×18languageConfigurationRegistry.ts ×5 · 64 introduced LOClanguageConfigurationReg…languageConfiguration.ts ×1 · 1 introduced LOClanguageConfiguration.ts…testLanguageConfigurationService.ts ×4 · 23 introduced LOCtestLanguageConfiguratio…languageConfigurationRegistry.ts ×28 · 260 introduced LOClanguageConfigurationReg…linesLayout.ts ×3 · 29 introduced LOClinesLayout.ts ×3modelLineProjectionData.ts ×1 · 17 introduced LOCmodelLineProjectionData.…modelLineProjectionData.ts ×18 · 97 introduced LOCmodelLineProjectionData.…linesLayout.ts ×2 · 27 introduced LOClinesLayout.ts ×2linesLayout.ts ×7 · 44 introduced LOClinesLayout.ts ×7textModelEvents.ts ×25 · 438 introduced LOCtextModelEvents.ts ×25linesLayout.test|title=Editor ViewLayout - LinesLayout LinesLayout Bug|occurrence=1 · 0 introduced LOClinesLayout.test|title=E…linesLayout.ts ×2 · 6 introduced LOClinesLayout.ts ×2linesLayout.ts ×1 · 4 introduced LOClinesLayout.ts ×1linesLayout.ts ×2 · 12 introduced LOClinesLayout.ts ×2linesLayout.ts ×1 · 4 introduced LOClinesLayout.ts ×1linesLayout.ts ×13 · 72 introduced LOClinesLayout.ts ×13linesLayout.ts ×3 · 5 introduced LOClinesLayout.ts ×3linesLayout.ts ×3 · 8 introduced LOClinesLayout.ts ×3linesLayout.ts ×46 · 279 introduced LOClinesLayout.ts ×46onEnter.ts ×1 · 7 introduced LOConEnter.ts ×1onEnter.ts ×2 · 4 introduced LOConEnter.ts ×2onEnter.ts ×8 · 32 introduced LOConEnter.ts ×8lineHeights.ts ×2 · 3 introduced LOClineHeights.ts ×2lineHeights.ts ×24 · 127 introduced LOClineHeights.ts ×24onEnter.ts ×6 · 37 introduced LOConEnter.ts ×6strings.ts ×1 · 7 introduced LOCstrings.ts ×1editorOptions.ts ×92 · 6015 introduced LOCeditorOptions.ts ×92brackets.test|title=Bracket Pair Colorizer - Brackets Basic|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/model/bracketPairColorizer/brackets.test|title=Bracket Pair Colorizer - Brackets Basic|occurrence=1brackets.test|title=Brac…linesTextBuffer.test|title=PieceTreeTextBuffer._getInverseEdits multiline delete|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/model/linesTextBuffer/linesTextBuffer.test|title=PieceTreeTextBuffer._getInverseEdits multiline delete|occurrence=1linesTextBuffer.test|tit…linesTextBuffer.test|title=PieceTreeTextBuffer._getInverseEdits single delete|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/model/linesTextBuffer/linesTextBuffer.test|title=PieceTreeTextBuffer._getInverseEdits single delete|occurrence=1linesTextBuffer.test|tit…modelInjectedText.test|title=Editor Model - Injected Text Events Basic|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/model/modelInjectedText.test|title=Editor Model - Injected Text Events Basic|occurrence=1modelInjectedText.test|t…languageConfiguration.test|title=StandardAutoClosingPairConditional Missing notIn|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/modes/languageConfiguration.test|title=StandardAutoClosingPairConditional Missing notIn|occurrence=1languageConfiguration.te…onEnter.test|title=OnEnter uses brackets|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/modes/supports/onEnter.test|title=OnEnter uses brackets|occurrence=1onEnter.test|title=OnEnt…modelService.test|title=ModelService EOL setting respected depending on root|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/services/modelService.test|title=ModelService EOL setting respected depending on root|occurrence=1modelService.test|title=…linesLayout.test|title=Editor ViewLayout - LinesLayout LinesLayout Bug|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/viewLayout/linesLayout.test|title=Editor ViewLayout - LinesLayout LinesLayout Bug|occurrence=1linesLayout.test|title=E…linesLayout.test|title=Editor ViewLayout - LinesLayout LinesLayout getLinesViewportData 2 & getWhitespaceViewportData|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/viewLayout/linesLayout.test|title=Editor ViewLayout - LinesLayout LinesLayout getLinesViewportData 2 & getWhitespaceViewportData|occurrence=1linesLayout.test|title=E…linesLayout.test|title=Editor ViewLayout - LinesLayout LinesLayout getWhitespaceAtVerticalOffset|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/viewLayout/linesLayout.test|title=Editor ViewLayout - LinesLayout LinesLayout getWhitespaceAtVerticalOffset|occurrence=1linesLayout.test|title=E…lineBreakData.test|title=Editor ViewModel - LineBreakData Basic|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/editor/test/common/viewModel/lineBreakData.test|title=Editor ViewModel - LineBreakData Basic|occurrence=1lineBreakData.test|title…extHostChatAgents2.test|title=ExtHostChatAgents2 reports anchor before resolving it|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostChatAgents2.test|title=ExtHostChatAgents2 reports anchor before resolving it|occurrence=1extHostChatAgents2.test|…extHostSCM.test|title=ExtHostSCM disposed source controls are removed from extension bookkeeping|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostSCM.test|title=ExtHostSCM disposed source controls are removed from extension bookkeeping|occurrence=1extHostSCM.test|title=Ex…extHostTerminalService.test|title=ExtHostTerminalService $acceptTerminalClosed cancels in-flight link providers and clears the link cache|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostTerminalService.test|title=ExtHostTerminalService $acceptTerminalClosed cancels in-flight link providers and clears the link cache|occurrence=1extHostTerminalService.t…extHostTypeConverters.test|title=extHostTypeConverters ChatRequestModeInstructions from converts API type to IChatRequestModeInstructions|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostTypeConverters.test|title=extHostTypeConverters ChatRequestModeInstructions from converts API type to IChatRequestModeInstructions|occurrence=1extHostTypeConverters.te…extHostTypeConverters.test|title=extHostTypeConverters ChatRequestModeInstructions from handles missing toolReferences|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostTypeConverters.test|title=extHostTypeConverters ChatRequestModeInstructions from handles missing toolReferences|occurrence=1extHostTypeConverters.te…extHostTypeConverters.test|title=extHostTypeConverters ChatRequestModeInstructions from returns undefined for undefined input|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostTypeConverters.test|title=extHostTypeConverters ChatRequestModeInstructions from returns undefined for undefined input|occurrence=1extHostTypeConverters.te…extHostTypeConverters.test|title=extHostTypeConverters ChatRequestModeInstructions roundtrip from -> to preserves data|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostTypeConverters.test|title=extHostTypeConverters ChatRequestModeInstructions roundtrip from -> to preserves data|occurrence=1extHostTypeConverters.te…extHostTypeConverters.test|title=extHostTypeConverters ChatRequestModeInstructions to converts IChatRequestModeInstructions to API type|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostTypeConverters.test|title=extHostTypeConverters ChatRequestModeInstructions to converts IChatRequestModeInstructions to API type|occurrence=1extHostTypeConverters.te…extHostTypeConverters.test|title=extHostTypeConverters ChatRequestModeInstructions to handles Dto with UriComponents|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostTypeConverters.test|title=extHostTypeConverters ChatRequestModeInstructions to handles Dto with UriComponents|occurrence=1extHostTypeConverters.te…extHostTypeConverters.test|title=extHostTypeConverters ChatRequestModeInstructions to returns undefined for undefined input|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostTypeConverters.test|title=extHostTypeConverters ChatRequestModeInstructions to returns undefined for undefined input|occurrence=1extHostTypeConverters.te…extHostTypeConverters.test|title=extHostTypeConverters ChatToolInvocationPart converts subagent data with its model name|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostTypeConverters.test|title=extHostTypeConverters ChatToolInvocationPart converts subagent data with its model name|occurrence=1extHostTypeConverters.te…extHostTypeConverters.test|title=extHostTypeConverters IconPath from ThemeIcon|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostTypeConverters.test|title=extHostTypeConverters IconPath from ThemeIcon|occurrence=1extHostTypeConverters.te…extHostTypeConverters.test|title=extHostTypeConverters IconPath from URI|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostTypeConverters.test|title=extHostTypeConverters IconPath from URI|occurrence=1extHostTypeConverters.te…extHostTypeConverters.test|title=extHostTypeConverters IconPath from undefined|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostTypeConverters.test|title=extHostTypeConverters IconPath from undefined|occurrence=1extHostTypeConverters.te…extHostTypeConverters.test|title=extHostTypeConverters IconPath to ThemeIcon|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostTypeConverters.test|title=extHostTypeConverters IconPath to ThemeIcon|occurrence=1extHostTypeConverters.te…extHostTypeConverters.test|title=extHostTypeConverters IconPath to URI|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostTypeConverters.test|title=extHostTypeConverters IconPath to URI|occurrence=1extHostTypeConverters.te…light|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostTypeConverters.test|title=extHostTypeConverters IconPath to dark/light|occurrence=1light|occurrence=1extHostTypeConverters.test|title=extHostTypeConverters IconPath to undefined|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/api/test/common/extHostTypeConverters.test|title=extHostTypeConverters IconPath to undefined|occurrence=1extHostTypeConverters.te…computeAutomaticInstructions.test|title=getFilePath should return uri.toString() for other schemes|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/computeAutomaticInstructions.test|title=getFilePath should return uri.toString() for other schemes|occurrence=1computeAutomaticInstruct… URIs when connected to a Windows remote|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/computeAutomaticInstructions.test|title=getFilePath should return vscode-local:/ URI string for file:// URIs when connected to a Windows remote|occurrence=1 URIs when connected to … URIs when connected to a remote|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/chat/test/common/promptSyntax/computeAutomaticInstructions.test|title=getFilePath should return vscode-local:/ URI string for file:// URIs when connected to a remote|occurrence=1 URIs when connected to …Focused file · src/vs/platform/accessibility/common/accessibility.ts · 57 LOCcommon/accessibility.ts

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the related-file, concept, and source links on this page while the interactive map is unavailable.

1 > /*--------------------------------------------------------------------------------------------- editorOptions.ts ×92
2 > * Copyright (c) Microsoft Corporation. All rights reserved.
3 > * Licensed under the MIT License. See License.txt in the project root for license information.
4 > *--------------------------------------------------------------------------------------------*/
5 >
6 > import { Event } from '../../../base/common/event.js';
7 > import { RawContextKey } from '../../contextkey/common/contextkey.js';
8 > import { createDecorator } from '../../instantiation/common/instantiation.js';
9 >
10 > export const IAccessibilityService = createDecorator<IAccessibilityService>('accessibilityService');
11 >
12 > export interface IAccessibilityService {
13 > readonly _serviceBrand: undefined;
14 >
15 > readonly onDidChangeScreenReaderOptimized: Event<void>;
16 > readonly onDidChangeReducedMotion: Event<void>;
17 > readonly onDidChangeReducedTransparency: Event<void>;
18 >
19 > alwaysUnderlineAccessKeys(): Promise<boolean>;
20 > isScreenReaderOptimized(): boolean;
21 > isMotionReduced(): boolean;
22 > isTransparencyReduced(): boolean;
23 > getAccessibilitySupport(): AccessibilitySupport;
24 > setAccessibilitySupport(accessibilitySupport: AccessibilitySupport): void;
25 > alert(message: string): void;
26 > status(message: string): void;
27 > }
28 >
29 > export const enum AccessibilitySupport {
30 > /**
31 > * This should be the browser case where it is not known if a screen reader is attached or no.
32 > */
33 > Unknown = 0,
34 >
35 > Disabled = 1,
36 >
37 > Enabled = 2
38 > }
39 >
40 > export const CONTEXT_ACCESSIBILITY_MODE_ENABLED = new RawContextKey<boolean>('accessibilityModeEnabled', false);
41 >
42 > export interface IAccessibilityInformation {
43 > label: string;
44 > role?: string;
45 > }
46 >
47 > export function isAccessibilityInformation(obj: unknown): obj is IAccessibilityInformation {
48 if (!obj || typeof obj !== 'object') {
49 return false;
50 }
51
52 const candidate = obj as Partial<IAccessibilityInformation>;
53 return typeof candidate.label === 'string'
54 && (typeof candidate.role === 'undefined' || typeof candidate.role === 'string');
55 }
57 > export const ACCESSIBLE_VIEW_SHOWN_STORAGE_PREFIX = 'ACCESSIBLE_VIEW_SHOWN_';