Skip to content

Commit

Permalink
More understandable prompting labels
Browse files Browse the repository at this point in the history
  • Loading branch information
sourishkrout committed Nov 26, 2024
1 parent ce5c5af commit 4a50212
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/client/components/configuration/annotations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ export class Annotations extends LitElement {
<div class="box">
${this.renderDropdownListTabEntry('promptEnv', [
{ text: 'Auto', value: 'auto', enumNum: 0 },
{ text: 'Yes', value: 'yes', enumNum: 1 },
{ text: 'No', value: 'no', enumNum: 2 },
{ text: 'Always', value: 'always', enumNum: 1 },
{ text: 'Never', value: 'never', enumNum: 2 },
])}
</div>
<div class="box">${this.renderTextFieldTabEntry('cwd')}</div>
Expand Down
4 changes: 2 additions & 2 deletions src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ export const AnnotationSchema = {
if (typeof subject === 'boolean' && subject) {
return ResolveProgramRequest_Mode.UNSPECIFIED
}
if (typeof subject === 'string' && ['false', 'no'].includes(subject.toLowerCase())) {
if (typeof subject === 'string' && ['false', 'no', 'never'].includes(subject.toLowerCase())) {
return ResolveProgramRequest_Mode.SKIP_ALL
}
if (typeof subject === 'string' && ['true', 'yes'].includes(subject.toLowerCase())) {
if (typeof subject === 'string' && ['true', 'yes', 'always'].includes(subject.toLowerCase())) {
return ResolveProgramRequest_Mode.PROMPT_ALL
}
if (typeof subject === 'string' && ['', 'auto'].includes(subject.toLowerCase())) {
Expand Down

0 comments on commit 4a50212

Please sign in to comment.