Skip to content

Commit 35a8880

Browse files
committed
should -> must for microsoft#85841
1 parent 33941fe commit 35a8880

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/vs/workbench/services/preferences/common/preferencesModels.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,12 +1051,12 @@ export function createValidator(prop: IConfigurationPropertySchema): (value: any
10511051
}
10521052

10531053
if (prop.minItems && stringArrayValue.length < prop.minItems) {
1054-
message += nls.localize('validations.stringArrayMinItem', 'Array should have at least {0} items', prop.minItems);
1054+
message += nls.localize('validations.stringArrayMinItem', 'Array must have at least {0} items', prop.minItems);
10551055
message += '\n';
10561056
}
10571057

10581058
if (prop.maxItems && stringArrayValue.length > prop.maxItems) {
1059-
message += nls.localize('validations.stringArrayMaxItem', 'Array should have at most {0} items', prop.maxItems);
1059+
message += nls.localize('validations.stringArrayMaxItem', 'Array must have at most {0} items', prop.maxItems);
10601060
message += '\n';
10611061
}
10621062

src/vs/workbench/services/preferences/test/common/preferencesModel.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,10 @@ suite('Preferences Model test', () => {
288288
test('min-max items array', () => {
289289
{
290290
const arr = new ArrayTester({ type: 'array', items: { type: 'string' }, minItems: 1, maxItems: 2 });
291-
arr.rejects([]).withMessage('Array should have at least 1 items');
291+
arr.rejects([]).withMessage('Array must have at least 1 items');
292292
arr.accepts(['a']);
293293
arr.accepts(['a', 'a']);
294-
arr.rejects(['a', 'a', 'a']).withMessage('Array should have at most 2 items');
294+
arr.rejects(['a', 'a', 'a']).withMessage('Array must have at most 2 items');
295295
}
296296
});
297297

@@ -312,7 +312,7 @@ suite('Preferences Model test', () => {
312312
test('min-max and enum', () => {
313313
const arr = new ArrayTester({ type: 'array', items: { type: 'string', enum: ['a', 'b'] }, minItems: 1, maxItems: 2 });
314314

315-
arr.rejects(['a', 'b', 'c']).withMessage('Array should have at most 2 items');
315+
arr.rejects(['a', 'b', 'c']).withMessage('Array must have at most 2 items');
316316
arr.rejects(['a', 'b', 'c']).withMessage(`Value 'c' is not one of`);
317317
});
318318

0 commit comments

Comments
 (0)