mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
rm audio cue, alert config, mentions of audio cue (#211475)
rm audio cue, alert config
This commit is contained in:
parent
5cb29dbb27
commit
a7755eed01
|
@ -318,29 +318,6 @@ export class SoundSource {
|
|||
}
|
||||
}
|
||||
|
||||
export const enum AccessibilityAlertSettingId {
|
||||
Save = 'accessibility.alert.save',
|
||||
Format = 'accessibility.alert.format',
|
||||
Clear = 'accessibility.alert.clear',
|
||||
Breakpoint = 'accessibility.alert.breakpoint',
|
||||
Error = 'accessibility.alert.error',
|
||||
Warning = 'accessibility.alert.warning',
|
||||
FoldedArea = 'accessibility.alert.foldedArea',
|
||||
TerminalQuickFix = 'accessibility.alert.terminalQuickFix',
|
||||
TerminalBell = 'accessibility.alert.terminalBell',
|
||||
TerminalCommandFailed = 'accessibility.alert.terminalCommandFailed',
|
||||
TaskCompleted = 'accessibility.alert.taskCompleted',
|
||||
TaskFailed = 'accessibility.alert.taskFailed',
|
||||
ChatRequestSent = 'accessibility.alert.chatRequestSent',
|
||||
NotebookCellCompleted = 'accessibility.alert.notebookCellCompleted',
|
||||
NotebookCellFailed = 'accessibility.alert.notebookCellFailed',
|
||||
OnDebugBreak = 'accessibility.alert.onDebugBreak',
|
||||
NoInlayHints = 'accessibility.alert.noInlayHints',
|
||||
LineHasBreakpoint = 'accessibility.alert.lineHasBreakpoint',
|
||||
Progress = 'accessibility.alert.chatResponseProgress'
|
||||
}
|
||||
|
||||
|
||||
export class AccessibilitySignal {
|
||||
private constructor(
|
||||
public readonly sound: SoundSource,
|
||||
|
@ -363,7 +340,7 @@ export class AccessibilitySignal {
|
|||
};
|
||||
legacySoundSettingsKey?: string;
|
||||
settingsKey: string;
|
||||
legacyAnnouncementSettingsKey?: AccessibilityAlertSettingId;
|
||||
legacyAnnouncementSettingsKey?: string;
|
||||
announcementMessage?: string;
|
||||
}): AccessibilitySignal {
|
||||
const soundSource = new SoundSource('randomOneOf' in options.sound ? options.sound.randomOneOf : [options.sound]);
|
||||
|
@ -400,7 +377,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.lineHasError.name', 'Error on Line'),
|
||||
sound: Sound.error,
|
||||
legacySoundSettingsKey: 'audioCues.lineHasError',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.Error,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.error',
|
||||
announcementMessage: localize('accessibility.signals.lineHasError', 'Error on Line'),
|
||||
settingsKey: 'accessibility.signals.lineHasError',
|
||||
});
|
||||
|
@ -409,7 +386,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.lineHasWarning.name', 'Warning on Line'),
|
||||
sound: Sound.warning,
|
||||
legacySoundSettingsKey: 'audioCues.lineHasWarning',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.Warning,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.warning',
|
||||
announcementMessage: localize('accessibility.signals.lineHasWarning', 'Warning on Line'),
|
||||
settingsKey: 'accessibility.signals.lineHasWarning',
|
||||
});
|
||||
|
@ -417,7 +394,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.lineHasFoldedArea.name', 'Folded Area on Line'),
|
||||
sound: Sound.foldedArea,
|
||||
legacySoundSettingsKey: 'audioCues.lineHasFoldedArea',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.FoldedArea,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.foldedArea',
|
||||
announcementMessage: localize('accessibility.signals.lineHasFoldedArea', 'Folded'),
|
||||
settingsKey: 'accessibility.signals.lineHasFoldedArea',
|
||||
});
|
||||
|
@ -425,7 +402,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.lineHasBreakpoint.name', 'Breakpoint on Line'),
|
||||
sound: Sound.break,
|
||||
legacySoundSettingsKey: 'audioCues.lineHasBreakpoint',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.Breakpoint,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.breakpoint',
|
||||
announcementMessage: localize('accessibility.signals.lineHasBreakpoint', 'Breakpoint'),
|
||||
settingsKey: 'accessibility.signals.lineHasBreakpoint',
|
||||
});
|
||||
|
@ -440,7 +417,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.terminalQuickFix.name', 'Terminal Quick Fix'),
|
||||
sound: Sound.quickFixes,
|
||||
legacySoundSettingsKey: 'audioCues.terminalQuickFix',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.TerminalQuickFix,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.terminalQuickFix',
|
||||
announcementMessage: localize('accessibility.signals.terminalQuickFix', 'Quick Fix'),
|
||||
settingsKey: 'accessibility.signals.terminalQuickFix',
|
||||
});
|
||||
|
@ -449,7 +426,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.onDebugBreak.name', 'Debugger Stopped on Breakpoint'),
|
||||
sound: Sound.break,
|
||||
legacySoundSettingsKey: 'audioCues.onDebugBreak',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.OnDebugBreak,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.onDebugBreak',
|
||||
announcementMessage: localize('accessibility.signals.onDebugBreak', 'Breakpoint'),
|
||||
settingsKey: 'accessibility.signals.onDebugBreak',
|
||||
});
|
||||
|
@ -458,7 +435,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.noInlayHints', 'No Inlay Hints on Line'),
|
||||
sound: Sound.error,
|
||||
legacySoundSettingsKey: 'audioCues.noInlayHints',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.NoInlayHints,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.noInlayHints',
|
||||
announcementMessage: localize('accessibility.signals.noInlayHints', 'No Inlay Hints'),
|
||||
settingsKey: 'accessibility.signals.noInlayHints',
|
||||
});
|
||||
|
@ -467,7 +444,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.taskCompleted', 'Task Completed'),
|
||||
sound: Sound.taskCompleted,
|
||||
legacySoundSettingsKey: 'audioCues.taskCompleted',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.TaskCompleted,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.taskCompleted',
|
||||
announcementMessage: localize('accessibility.signals.taskCompleted', 'Task Completed'),
|
||||
settingsKey: 'accessibility.signals.taskCompleted',
|
||||
});
|
||||
|
@ -476,7 +453,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.taskFailed', 'Task Failed'),
|
||||
sound: Sound.taskFailed,
|
||||
legacySoundSettingsKey: 'audioCues.taskFailed',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.TaskFailed,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.taskFailed',
|
||||
announcementMessage: localize('accessibility.signals.taskFailed', 'Task Failed'),
|
||||
settingsKey: 'accessibility.signals.taskFailed',
|
||||
});
|
||||
|
@ -485,7 +462,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.terminalCommandFailed', 'Terminal Command Failed'),
|
||||
sound: Sound.error,
|
||||
legacySoundSettingsKey: 'audioCues.terminalCommandFailed',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.TerminalCommandFailed,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.terminalCommandFailed',
|
||||
announcementMessage: localize('accessibility.signals.terminalCommandFailed', 'Command Failed'),
|
||||
settingsKey: 'accessibility.signals.terminalCommandFailed',
|
||||
});
|
||||
|
@ -494,7 +471,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.terminalBell', 'Terminal Bell'),
|
||||
sound: Sound.terminalBell,
|
||||
legacySoundSettingsKey: 'audioCues.terminalBell',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.TerminalBell,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.terminalBell',
|
||||
announcementMessage: localize('accessibility.signals.terminalBell', 'Terminal Bell'),
|
||||
settingsKey: 'accessibility.signals.terminalBell',
|
||||
});
|
||||
|
@ -503,7 +480,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.notebookCellCompleted', 'Notebook Cell Completed'),
|
||||
sound: Sound.taskCompleted,
|
||||
legacySoundSettingsKey: 'audioCues.notebookCellCompleted',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.NotebookCellCompleted,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.notebookCellCompleted',
|
||||
announcementMessage: localize('accessibility.signals.notebookCellCompleted', 'Notebook Cell Completed'),
|
||||
settingsKey: 'accessibility.signals.notebookCellCompleted',
|
||||
});
|
||||
|
@ -512,7 +489,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.notebookCellFailed', 'Notebook Cell Failed'),
|
||||
sound: Sound.taskFailed,
|
||||
legacySoundSettingsKey: 'audioCues.notebookCellFailed',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.NotebookCellFailed,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.notebookCellFailed',
|
||||
announcementMessage: localize('accessibility.signals.notebookCellFailed', 'Notebook Cell Failed'),
|
||||
settingsKey: 'accessibility.signals.notebookCellFailed',
|
||||
});
|
||||
|
@ -542,7 +519,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.chatRequestSent', 'Chat Request Sent'),
|
||||
sound: Sound.chatRequestSent,
|
||||
legacySoundSettingsKey: 'audioCues.chatRequestSent',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.ChatRequestSent,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.chatRequestSent',
|
||||
announcementMessage: localize('accessibility.signals.chatRequestSent', 'Chat Request Sent'),
|
||||
settingsKey: 'accessibility.signals.chatRequestSent',
|
||||
});
|
||||
|
@ -565,7 +542,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.progress', 'Progress'),
|
||||
sound: Sound.progress,
|
||||
legacySoundSettingsKey: 'audioCues.chatResponsePending',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.Progress,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.progress',
|
||||
announcementMessage: localize('accessibility.signals.progress', 'Progress'),
|
||||
settingsKey: 'accessibility.signals.progress'
|
||||
});
|
||||
|
@ -574,7 +551,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.clear', 'Clear'),
|
||||
sound: Sound.clear,
|
||||
legacySoundSettingsKey: 'audioCues.clear',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.Clear,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.clear',
|
||||
announcementMessage: localize('accessibility.signals.clear', 'Clear'),
|
||||
settingsKey: 'accessibility.signals.clear'
|
||||
});
|
||||
|
@ -583,7 +560,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.save', 'Save'),
|
||||
sound: Sound.save,
|
||||
legacySoundSettingsKey: 'audioCues.save',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.Save,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.save',
|
||||
announcementMessage: localize('accessibility.signals.save', 'Save'),
|
||||
settingsKey: 'accessibility.signals.save'
|
||||
});
|
||||
|
@ -592,7 +569,7 @@ export class AccessibilitySignal {
|
|||
name: localize('accessibilitySignals.format', 'Format'),
|
||||
sound: Sound.format,
|
||||
legacySoundSettingsKey: 'audioCues.format',
|
||||
legacyAnnouncementSettingsKey: AccessibilityAlertSettingId.Format,
|
||||
legacyAnnouncementSettingsKey: 'accessibility.alert.format',
|
||||
announcementMessage: localize('accessibility.signals.format', 'Format'),
|
||||
settingsKey: 'accessibility.signals.format'
|
||||
});
|
||||
|
|
|
@ -17,11 +17,9 @@ import { SaveAccessibilitySignalContribution } from 'vs/workbench/contrib/access
|
|||
import { CommentsAccessibilityHelpContribution } from 'vs/workbench/contrib/comments/browser/commentsAccessibility';
|
||||
import { DiffEditorActiveAnnouncementContribution } from 'vs/workbench/contrib/accessibilitySignals/browser/openDiffEditorAnnouncement';
|
||||
import { SpeechAccessibilitySignalContribution } from 'vs/workbench/contrib/speech/browser/speechAccessibilitySignal';
|
||||
import { registerAudioCueConfiguration } from 'vs/workbench/contrib/accessibility/browser/audioCueConfiguration';
|
||||
import { AccessibleViewInformationService, IAccessibleViewInformationService } from 'vs/workbench/services/accessibility/common/accessibleViewInformationService';
|
||||
|
||||
registerAccessibilityConfiguration();
|
||||
registerAudioCueConfiguration();
|
||||
registerSingleton(IAccessibleViewService, AccessibleViewService, InstantiationType.Delayed);
|
||||
registerSingleton(IAccessibleViewInformationService, AccessibleViewInformationService, InstantiationType.Delayed);
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import { ConfigurationScope, Extensions, IConfigurationNode, IConfigurationPrope
|
|||
import { Registry } from 'vs/platform/registry/common/platform';
|
||||
import { RawContextKey } from 'vs/platform/contextkey/common/contextkey';
|
||||
import { workbenchConfigurationNodeBase, Extensions as WorkbenchExtensions, IConfigurationMigrationRegistry, ConfigurationKeyValuePairs, ConfigurationMigration } from 'vs/workbench/common/configuration';
|
||||
import { AccessibilityAlertSettingId, AccessibilitySignal } from 'vs/platform/accessibilitySignal/browser/accessibilitySignalService';
|
||||
import { AccessibilitySignal } from 'vs/platform/accessibilitySignal/browser/accessibilitySignalService';
|
||||
import { ISpeechService, SPEECH_LANGUAGES, SPEECH_LANGUAGE_CONFIG } from 'vs/workbench/contrib/speech/common/speechService';
|
||||
import { Disposable } from 'vs/base/common/lifecycle';
|
||||
import { IWorkbenchContribution } from 'vs/workbench/common/contributions';
|
||||
|
@ -81,13 +81,6 @@ const baseVerbosityProperty: IConfigurationPropertySchema = {
|
|||
default: true,
|
||||
tags: ['accessibility']
|
||||
};
|
||||
const markdownDeprecationMessage = localize('accessibility.announcement.deprecationMessage', "This setting is deprecated. Use the `signals` settings instead.");
|
||||
const baseAlertProperty: IConfigurationPropertySchema = {
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
tags: ['accessibility'],
|
||||
markdownDeprecationMessage
|
||||
};
|
||||
|
||||
export const accessibilityConfigurationNodeBase = Object.freeze<IConfigurationNode>({
|
||||
id: 'accessibility',
|
||||
|
@ -189,99 +182,6 @@ const configuration: IConfigurationNode = {
|
|||
description: localize('verbosity.diffEditorActive', 'Indicate when a diff editor becomes the active editor.'),
|
||||
...baseVerbosityProperty
|
||||
},
|
||||
[AccessibilityAlertSettingId.Save]: {
|
||||
'markdownDescription': localize('announcement.save', "Indicates when a file is saved. Also see {0}.", '`#audioCues.save#`'),
|
||||
'enum': ['userGesture', 'always', 'never'],
|
||||
'default': 'always',
|
||||
'enumDescriptions': [
|
||||
localize('announcement.save.userGesture', "Indicates when a file is saved via user gesture."),
|
||||
localize('announcement.save.always', "Indicates whenever is a file is saved, including auto save."),
|
||||
localize('announcement.save.never', "Never alerts.")
|
||||
],
|
||||
tags: ['accessibility'],
|
||||
markdownDeprecationMessage
|
||||
},
|
||||
[AccessibilityAlertSettingId.Clear]: {
|
||||
'markdownDescription': localize('announcement.clear', "Indicates when a feature is cleared (for example, the terminal, Debug Console, or Output channel). Also see {0}.", '`#audioCues.clear#`'),
|
||||
...baseAlertProperty
|
||||
},
|
||||
[AccessibilityAlertSettingId.Format]: {
|
||||
'markdownDescription': localize('announcement.format', "Indicates when a file or notebook cell is formatted. Also see {0}.", '`#audioCues.format#`'),
|
||||
'type': 'string',
|
||||
'enum': ['userGesture', 'always', 'never'],
|
||||
'default': 'always',
|
||||
'enumDescriptions': [
|
||||
localize('announcement.format.userGesture', "Indicates when a file is formatted via user gesture."),
|
||||
localize('announcement.format.always', "Indicates whenever is a file is formatted, including auto save, on cell execution, and more."),
|
||||
localize('announcement.format.never', "Never alerts.")
|
||||
],
|
||||
tags: ['accessibility'],
|
||||
markdownDeprecationMessage
|
||||
},
|
||||
[AccessibilityAlertSettingId.Breakpoint]: {
|
||||
'markdownDescription': localize('announcement.breakpoint', "Indicates when the debugger breaks. Also see {0}.", '`#audioCues.onDebugBreak#`'),
|
||||
...baseAlertProperty
|
||||
},
|
||||
[AccessibilityAlertSettingId.Error]: {
|
||||
'markdownDescription': localize('announcement.error', "Indicates when the active line has an error. Also see {0}.", '`#audioCues.lineHasError#`'),
|
||||
...baseAlertProperty
|
||||
},
|
||||
[AccessibilityAlertSettingId.Warning]: {
|
||||
'markdownDescription': localize('announcement.warning', "Indicates when the active line has a warning. Also see {0}.", '`#audioCues.lineHasWarning#`'),
|
||||
...baseAlertProperty
|
||||
},
|
||||
[AccessibilityAlertSettingId.FoldedArea]: {
|
||||
'markdownDescription': localize('announcement.foldedArea', "Indicates when the active line has a folded area that can be unfolded. Also see {0}.", '`#audioCues.lineHasFoldedArea#`'),
|
||||
...baseAlertProperty
|
||||
},
|
||||
[AccessibilityAlertSettingId.TerminalQuickFix]: {
|
||||
'markdownDescription': localize('announcement.terminalQuickFix', "Indicates when there is an available terminal quick fix. Also see {0}.", '`#audioCues.terminalQuickFix#`'),
|
||||
...baseAlertProperty
|
||||
},
|
||||
[AccessibilityAlertSettingId.TerminalBell]: {
|
||||
'markdownDescription': localize('announcement.terminalBell', "Indicates when the terminal bell is activated."),
|
||||
...baseAlertProperty
|
||||
},
|
||||
[AccessibilityAlertSettingId.TerminalCommandFailed]: {
|
||||
'markdownDescription': localize('announcement.terminalCommandFailed', "Indicates when a terminal command fails (non-zero exit code). Also see {0}.", '`#audioCues.terminalCommandFailed#`'),
|
||||
...baseAlertProperty
|
||||
},
|
||||
[AccessibilityAlertSettingId.TaskFailed]: {
|
||||
'markdownDescription': localize('announcement.taskFailed', "Indicates when a task fails (non-zero exit code). Also see {0}.", '`#audioCues.taskFailed#`'),
|
||||
...baseAlertProperty
|
||||
},
|
||||
[AccessibilityAlertSettingId.TaskCompleted]: {
|
||||
'markdownDescription': localize('announcement.taskCompleted', "Indicates when a task completes successfully (zero exit code). Also see {0}.", '`#audioCues.taskCompleted#`'),
|
||||
...baseAlertProperty
|
||||
},
|
||||
[AccessibilityAlertSettingId.ChatRequestSent]: {
|
||||
'markdownDescription': localize('announcement.chatRequestSent', "Indicates when a chat request is sent. Also see {0}.", '`#audioCues.chatRequestSent#`'),
|
||||
...baseAlertProperty
|
||||
},
|
||||
[AccessibilityAlertSettingId.Progress]: {
|
||||
'markdownDescription': localize('announcement.progress', "Indicates when a chat response is pending. Also see {0}.", '`#audioCues.chatResponsePending#`'),
|
||||
...baseAlertProperty
|
||||
},
|
||||
[AccessibilityAlertSettingId.NoInlayHints]: {
|
||||
'markdownDescription': localize('announcement.noInlayHints', "Indicates when there are no inlay hints. Also see {0}.", '`#audioCues.noInlayHints#`'),
|
||||
...baseAlertProperty
|
||||
},
|
||||
[AccessibilityAlertSettingId.LineHasBreakpoint]: {
|
||||
'markdownDescription': localize('announcement.lineHasBreakpoint', "Indicates when on a line with a breakpoint. Also see {0}.", '`#audioCues.lineHasBreakpoint#`'),
|
||||
...baseAlertProperty
|
||||
},
|
||||
[AccessibilityAlertSettingId.NotebookCellCompleted]: {
|
||||
'markdownDescription': localize('announcement.notebookCellCompleted', "Indicates when a notebook cell completes successfully. Also see {0}.", '`#audioCues.notebookCellCompleted#`'),
|
||||
...baseAlertProperty
|
||||
},
|
||||
[AccessibilityAlertSettingId.NotebookCellFailed]: {
|
||||
'markdownDescription': localize('announcement.notebookCellFailed', "Indicates when a notebook cell fails. Also see {0}.", '`#audioCues.notebookCellFailed#`'),
|
||||
...baseAlertProperty
|
||||
},
|
||||
[AccessibilityAlertSettingId.OnDebugBreak]: {
|
||||
'markdownDescription': localize('announcement.onDebugBreak', "Indicates when the debugger breaks. Also see {0}.", '`#audioCues.onDebugBreak#`'),
|
||||
...baseAlertProperty
|
||||
},
|
||||
[AccessibilityWorkbenchSettingId.AccessibleViewCloseOnKeyPress]: {
|
||||
markdownDescription: localize('terminal.integrated.accessibleView.closeOnKeyPress', "On keypress, close the Accessible View and focus the element from which it was invoked."),
|
||||
type: 'boolean',
|
||||
|
@ -645,9 +545,9 @@ const configuration: IConfigurationNode = {
|
|||
'enum': ['userGesture', 'always', 'never'],
|
||||
'default': 'never',
|
||||
'enumDescriptions': [
|
||||
localize('accessibility.signals.save.sound.userGesture', "Plays the audio cue when a user explicitly saves a file."),
|
||||
localize('accessibility.signals.save.sound.always', "Plays the audio cue whenever a file is saved, including auto save."),
|
||||
localize('accessibility.signals.save.sound.never', "Never plays the audio cue.")
|
||||
localize('accessibility.signals.save.sound.userGesture', "Plays the sound when a user explicitly saves a file."),
|
||||
localize('accessibility.signals.save.sound.always', "Plays the sound whenever a file is saved, including auto save."),
|
||||
localize('accessibility.signals.save.sound.never', "Never plays the sound.")
|
||||
],
|
||||
},
|
||||
'announcement': {
|
||||
|
@ -658,7 +558,7 @@ const configuration: IConfigurationNode = {
|
|||
'enumDescriptions': [
|
||||
localize('accessibility.signals.save.announcement.userGesture', "Announces when a user explicitly saves a file."),
|
||||
localize('accessibility.signals.save.announcement.always', "Announces whenever a file is saved, including auto save."),
|
||||
localize('accessibility.signals.save.announcement.never', "Never plays the audio cue.")
|
||||
localize('accessibility.signals.save.announcement.never', "Never plays the announcement.")
|
||||
],
|
||||
},
|
||||
},
|
||||
|
@ -679,9 +579,9 @@ const configuration: IConfigurationNode = {
|
|||
'enum': ['userGesture', 'always', 'never'],
|
||||
'default': 'never',
|
||||
'enumDescriptions': [
|
||||
localize('accessibility.signals.format.userGesture', "Plays the audio cue when a user explicitly formats a file."),
|
||||
localize('accessibility.signals.format.always', "Plays the audio cue whenever a file is formatted, including if it is set to format on save, type, or, paste, or run of a cell."),
|
||||
localize('accessibility.signals.format.never', "Never plays the audio cue.")
|
||||
localize('accessibility.signals.format.userGesture', "Plays the sound when a user explicitly formats a file."),
|
||||
localize('accessibility.signals.format.always', "Plays the sound whenever a file is formatted, including if it is set to format on save, type, or, paste, or run of a cell."),
|
||||
localize('accessibility.signals.format.never', "Never plays the sound.")
|
||||
],
|
||||
},
|
||||
'announcement': {
|
||||
|
|
|
@ -1,163 +0,0 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { localize } from 'vs/nls';
|
||||
import { Extensions as ConfigurationExtensions, ConfigurationScope, IConfigurationPropertySchema, IConfigurationRegistry } from 'vs/platform/configuration/common/configurationRegistry';
|
||||
import { Registry } from 'vs/platform/registry/common/platform';
|
||||
|
||||
export const audioCueFeatureBase: IConfigurationPropertySchema = {
|
||||
'type': 'string',
|
||||
'enum': ['auto', 'on', 'off'],
|
||||
'default': 'auto',
|
||||
'enumDescriptions': [
|
||||
localize('audioCues.enabled.auto', "Enable audio cue when a screen reader is attached."),
|
||||
localize('audioCues.enabled.on', "Enable audio cue."),
|
||||
localize('audioCues.enabled.off', "Disable audio cue.")
|
||||
],
|
||||
tags: ['accessibility'],
|
||||
};
|
||||
const markdownDeprecationMessage = localize('audioCues.enabled.deprecated', "This setting is deprecated. Use `signals` settings instead.");
|
||||
const soundDeprecatedFeatureBase: IConfigurationPropertySchema = {
|
||||
...audioCueFeatureBase,
|
||||
markdownDeprecationMessage
|
||||
};
|
||||
export function registerAudioCueConfiguration() {
|
||||
Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration).registerConfiguration({
|
||||
scope: ConfigurationScope.RESOURCE,
|
||||
'properties': {
|
||||
'audioCues.enabled': {
|
||||
markdownDeprecationMessage: 'Deprecated. Use the specific setting for each audio cue instead (`audioCues.*`).',
|
||||
tags: ['accessibility']
|
||||
},
|
||||
'audioCues.volume': {
|
||||
markdownDeprecationMessage: 'Deprecated. Use `accessibility.signals.sounds.volume` instead.',
|
||||
tags: ['accessibility']
|
||||
},
|
||||
'audioCues.debouncePositionChanges': {
|
||||
'description': localize('audioCues.debouncePositionChanges', "Whether or not position changes should be debounced"),
|
||||
'type': 'boolean',
|
||||
'default': false,
|
||||
tags: ['accessibility'],
|
||||
'markdownDeprecationMessage': localize('audioCues.debouncePositionChangesDeprecated', 'This setting is deprecated, instead use the `signals.debouncePositionChanges` setting.')
|
||||
},
|
||||
'audioCues.lineHasBreakpoint': {
|
||||
'description': localize('audioCues.lineHasBreakpoint', "Plays a sound when the active line has a breakpoint."),
|
||||
...soundDeprecatedFeatureBase
|
||||
},
|
||||
'audioCues.lineHasInlineSuggestion': {
|
||||
'description': localize('audioCues.lineHasInlineSuggestion', "Plays a sound when the active line has an inline suggestion."),
|
||||
...soundDeprecatedFeatureBase
|
||||
},
|
||||
'audioCues.lineHasError': {
|
||||
'description': localize('audioCues.lineHasError', "Plays a sound when the active line has an error."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
},
|
||||
'audioCues.lineHasFoldedArea': {
|
||||
'description': localize('audioCues.lineHasFoldedArea', "Plays a sound when the active line has a folded area that can be unfolded."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
},
|
||||
'audioCues.lineHasWarning': {
|
||||
'description': localize('audioCues.lineHasWarning', "Plays a sound when the active line has a warning."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
default: 'off',
|
||||
},
|
||||
'audioCues.onDebugBreak': {
|
||||
'description': localize('audioCues.onDebugBreak', "Plays a sound when the debugger stopped on a breakpoint."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
},
|
||||
'audioCues.noInlayHints': {
|
||||
'description': localize('audioCues.noInlayHints', "Plays a sound when trying to read a line with inlay hints that has no inlay hints."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
},
|
||||
'audioCues.taskCompleted': {
|
||||
'description': localize('audioCues.taskCompleted', "Plays a sound when a task is completed."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
},
|
||||
'audioCues.taskFailed': {
|
||||
'description': localize('audioCues.taskFailed', "Plays a sound when a task fails (non-zero exit code)."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
},
|
||||
'audioCues.terminalCommandFailed': {
|
||||
'description': localize('audioCues.terminalCommandFailed', "Plays a sound when a terminal command fails (non-zero exit code)."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
},
|
||||
'audioCues.terminalQuickFix': {
|
||||
'description': localize('audioCues.terminalQuickFix', "Plays a sound when terminal Quick Fixes are available."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
},
|
||||
'audioCues.terminalBell': {
|
||||
'description': localize('audioCues.terminalBell', "Plays a sound when the terminal bell is ringing."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
default: 'on'
|
||||
},
|
||||
'audioCues.diffLineInserted': {
|
||||
'description': localize('audioCues.diffLineInserted', "Plays a sound when the focus moves to an inserted line in Accessible Diff Viewer mode or to the next/previous change."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
},
|
||||
'audioCues.diffLineDeleted': {
|
||||
'description': localize('audioCues.diffLineDeleted', "Plays a sound when the focus moves to a deleted line in Accessible Diff Viewer mode or to the next/previous change."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
},
|
||||
'audioCues.diffLineModified': {
|
||||
'description': localize('audioCues.diffLineModified', "Plays a sound when the focus moves to a modified line in Accessible Diff Viewer mode or to the next/previous change."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
},
|
||||
'audioCues.notebookCellCompleted': {
|
||||
'description': localize('audioCues.notebookCellCompleted', "Plays a sound when a notebook cell execution is successfully completed."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
},
|
||||
'audioCues.notebookCellFailed': {
|
||||
'description': localize('audioCues.notebookCellFailed', "Plays a sound when a notebook cell execution fails."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
},
|
||||
'audioCues.chatRequestSent': {
|
||||
'description': localize('audioCues.chatRequestSent', "Plays a sound when a chat request is made."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
default: 'off'
|
||||
},
|
||||
'audioCues.chatResponsePending': {
|
||||
'description': localize('audioCues.chatResponsePending', "Plays a sound on loop while the response is pending."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
default: 'auto'
|
||||
},
|
||||
'audioCues.chatResponseReceived': {
|
||||
'description': localize('audioCues.chatResponseReceived', "Plays a sound on loop while the response has been received."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
default: 'off'
|
||||
},
|
||||
'audioCues.clear': {
|
||||
'description': localize('audioCues.clear', "Plays a sound when a feature is cleared (for example, the terminal, Debug Console, or Output channel). When this is disabled, an ARIA alert will announce 'Cleared'."),
|
||||
...soundDeprecatedFeatureBase,
|
||||
default: 'off'
|
||||
},
|
||||
'audioCues.save': {
|
||||
'markdownDescription': localize('audioCues.save', "Plays a sound when a file is saved. Also see {0}", '`#accessibility.alert.save#`'),
|
||||
'type': 'string',
|
||||
'enum': ['userGesture', 'always', 'never'],
|
||||
'default': 'never',
|
||||
'enumDescriptions': [
|
||||
localize('audioCues.save.userGesture', "Plays the audio cue when a user explicitly saves a file."),
|
||||
localize('audioCues.save.always', "Plays the audio cue whenever a file is saved, including auto save."),
|
||||
localize('audioCues.save.never', "Never plays the audio cue.")
|
||||
],
|
||||
tags: ['accessibility'],
|
||||
markdownDeprecationMessage
|
||||
},
|
||||
'audioCues.format': {
|
||||
'markdownDescription': localize('audioCues.format', "Plays a sound when a file or notebook is formatted. Also see {0}", '`#accessibility.alert.format#`'),
|
||||
'type': 'string',
|
||||
'enum': ['userGesture', 'always', 'never'],
|
||||
'default': 'never',
|
||||
'enumDescriptions': [
|
||||
localize('audioCues.format.userGesture', "Plays the audio cue when a user explicitly formats a file."),
|
||||
localize('audioCues.format.always', "Plays the audio cue whenever a file is formatted, including if it is set to format on save, type, or, paste, or run of a cell."),
|
||||
localize('audioCues.format.never', "Never plays the audio cue.")
|
||||
],
|
||||
tags: ['accessibility'],
|
||||
markdownDeprecationMessage
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
Loading…
Reference in a new issue