VS Code 对我的“您是否使用屏幕阅读器来操作 VS Code?”的回答做了什么?

ico*_*ast 8 screen-readers visual-studio-code

VS Code 刚刚问我“您使用屏幕阅读器来操作 VS Code 吗?” 但它没有给我任何关于根据我的答案它会做什么的线索,我只能猜测。

我不使用屏幕阅读器,但我使用使用 macOS 辅助功能 API 的软件。我不希望 VS Code 打开仅对屏幕阅读器用户有用的模式,或禁用视觉用户的任何功能,但我也不想通过辅助功能 API 禁用对 VS Code 的访问。

在我看来,简单地问我问题并为我做出决定,就好像我无法做出决定,而不是向我解释它将做什么,这似乎是相当用户对抗的。

(如果它随后提出问题或建议,那么它就未能传达这一事实。)

如果 VS Code 认为您正在使用屏幕阅读器,它会破坏基本功能,因此我担心的问题不仅仅是假设的风险。

更新:我忘了提及我正在使用“Visual Studio Code - Insiders”而不是普通版本的 VS Code。我不知道这是否会改变什么。

询问屏幕阅读器使用情况的 VS Code 对话框的图像

sta*_*all 8

它会更改您的设置值editor.accessibilitySupport

直接来自microsoft/vscode/src/vs/workbench/browser/parts/editor/accessibilityStatus.ts的源代码:

private showScreenReaderNotification(): void {
    if (!this.screenReaderNotification) {
        this.screenReaderNotification = this.notificationService.prompt(
            Severity.Info,
            localize('screenReaderDetectedExplanation.question', "Are you using a screen reader to operate VS Code?"),
            [{
                label: localize('screenReaderDetectedExplanation.answerYes', "Yes"),
                run: () => {
                    this.configurationService.updateValue('editor.accessibilitySupport', 'on', ConfigurationTarget.USER);
                }
            }, {
                label: localize('screenReaderDetectedExplanation.answerNo', "No"),
                run: () => {
                    this.configurationService.updateValue('editor.accessibilitySupport', 'off', ConfigurationTarget.USER);
                }
            }],
            { sticky: true }
        );

        Event.once(this.screenReaderNotification.onDidClose)(() => this.screenReaderNotification = null);
    }
}
Run Code Online (Sandbox Code Playgroud)

该设置似乎没有关联的描述字符串,或者始终在自动完成建议中可见。但是您可以通过搜索在源代码中找到它的所有出现: https: //github.com/microsoft/vscode/search?q =editor.accessibilitySupport 。它被用在 VS Code UI 的很多部分中。

根据Accessibility 的用户文档,此设置用于切换屏幕阅读器模式。