Skip to content

Commit

Permalink
provide default settings (#213419)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge authored May 24, 2024
1 parent 42f3eac commit 788d0e0
Showing 1 changed file with 23 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,13 @@ const configuration: IConfigurationNode = {
'description': localize('accessibility.signalOptions.delays.general.announcement', "The delay in milliseconds before an announcement is made."),
'type': 'number',
'minimum': 0,
'default': 3000
},
'sound': {
'description': localize('accessibility.signalOptions.delays.general.sound', "The delay in milliseconds before a sound is played."),
'type': 'number',
'minimum': 0,
'default': 400
}
},
},
Expand All @@ -215,11 +217,13 @@ const configuration: IConfigurationNode = {
'description': localize('accessibility.signalOptions.delays.warningAtPosition.announcement', "The delay in milliseconds before an announcement is made when there's a warning at the position."),
'type': 'number',
'minimum': 0,
'default': 3000
},
'sound': {
'description': localize('accessibility.signalOptions.delays.warningAtPosition.sound', "The delay in milliseconds before a sound is played when there's a warning at the position."),
'type': 'number',
'minimum': 0,
'default': 1000
}
},
},
Expand All @@ -231,18 +235,34 @@ const configuration: IConfigurationNode = {
'description': localize('accessibility.signalOptions.delays.errorAtPosition.announcement', "The delay in milliseconds before an announcement is made when there's an error at the position."),
'type': 'number',
'minimum': 0,
'default': 3000
},
'sound': {
'description': localize('accessibility.signalOptions.delays.errorAtPosition.sound', "The delay in milliseconds before a sound is played when there's an error at the position."),
'type': 'number',
'minimum': 0,
'default': 1000
}
},
},
},
'default': {
'general': {
'announcement': 3000,
'sound': 400
},
'warningAtPosition': {
'announcement': 3000,
'sound': 1000
},
'errorAtPosition': {
'announcement': 3000,
'sound': 1000
}
}
}
},
},
default: {
'default': {
'volume': 70,
'debouncePositionChanges': false,
'delays': {
Expand Down Expand Up @@ -712,7 +732,7 @@ export function registerAccessibilityConfiguration() {
});
}

export { AccessibilityVoiceSettingId }
export { AccessibilityVoiceSettingId };

export const SpeechTimeoutDefault = 1200;

Expand Down

0 comments on commit 788d0e0

Please sign in to comment.