Skip to content

Commit

Permalink
Fixing/supressing more implictIndex errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed Jul 2, 2019
1 parent 1591605 commit f7a36ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/vs/base/test/common/decorators.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/vs/editor/contrib/colorPicker/colorDetector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
Expand Down
8 changes: 4 additions & 4 deletions src/vs/platform/environment/node/argv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down Expand Up @@ -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('');
}
Expand Down

0 comments on commit f7a36ce

Please sign in to comment.