parent
15916055fe
commit
f7a36ce0b9
|
@ -119,7 +119,7 @@ suite('Decorators', () => {
|
|||
assert.equal(foo.answer, 42);
|
||||
|
||||
try {
|
||||
foo['$memoize$answer'] = 1337;
|
||||
(foo as any)['$memoize$answer'] = 1337;
|
||||
assert(false);
|
||||
} catch (e) {
|
||||
assert.equal(foo.answer, 42);
|
||||
|
|
|
@ -78,7 +78,7 @@ export class ColorDetector extends Disposable implements IEditorContribution {
|
|||
// handle deprecated settings. [languageId].colorDecorators.enable
|
||||
const deprecatedConfig = this._configurationService.getValue<{}>(languageId.language);
|
||||
if (deprecatedConfig) {
|
||||
const colorDecorators = deprecatedConfig['colorDecorators']; // deprecatedConfig.valueOf('.colorDecorators.enable');
|
||||
const colorDecorators = (deprecatedConfig as any)['colorDecorators']; // deprecatedConfig.valueOf('.colorDecorators.enable');
|
||||
if (colorDecorators && colorDecorators['enable'] !== undefined && !colorDecorators['enable']) {
|
||||
return colorDecorators['enable'];
|
||||
}
|
||||
|
|
|
@ -121,8 +121,8 @@ export function parseArgs(args: string[], isOptionSupported = (_: Option) => tru
|
|||
}
|
||||
}
|
||||
// remote aliases to avoid confusion
|
||||
const parsedArgs = minimist(args, { string, boolean, alias }) as ParsedArgs;
|
||||
for (let o of options) {
|
||||
const parsedArgs = minimist(args, { string, boolean, alias });
|
||||
for (const o of options) {
|
||||
if (o.alias) {
|
||||
delete parsedArgs[o.alias];
|
||||
}
|
||||
|
@ -203,10 +203,10 @@ export function buildHelpMessage(productName: string, executableName: string, ve
|
|||
}
|
||||
help.push('');
|
||||
}
|
||||
for (let key in categories) {
|
||||
for (const key in categories) {
|
||||
let categoryOptions = options.filter(o => !!o.description && o.cat === key && isOptionSupported(o));
|
||||
if (categoryOptions.length) {
|
||||
help.push(categories[key]);
|
||||
help.push(categories[key as keyof HelpCategories]);
|
||||
help.push(...formatOptions(categoryOptions, columns));
|
||||
help.push('');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue