Skip to content

Commit f7a36ce

Browse files
committed
Fixing/supressing more implictIndex errors
microsoft#76442
1 parent 1591605 commit f7a36ce

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/vs/base/test/common/decorators.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ suite('Decorators', () => {
119119
assert.equal(foo.answer, 42);
120120

121121
try {
122-
foo['$memoize$answer'] = 1337;
122+
(foo as any)['$memoize$answer'] = 1337;
123123
assert(false);
124124
} catch (e) {
125125
assert.equal(foo.answer, 42);

src/vs/editor/contrib/colorPicker/colorDetector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class ColorDetector extends Disposable implements IEditorContribution {
7878
// handle deprecated settings. [languageId].colorDecorators.enable
7979
const deprecatedConfig = this._configurationService.getValue<{}>(languageId.language);
8080
if (deprecatedConfig) {
81-
const colorDecorators = deprecatedConfig['colorDecorators']; // deprecatedConfig.valueOf('.colorDecorators.enable');
81+
const colorDecorators = (deprecatedConfig as any)['colorDecorators']; // deprecatedConfig.valueOf('.colorDecorators.enable');
8282
if (colorDecorators && colorDecorators['enable'] !== undefined && !colorDecorators['enable']) {
8383
return colorDecorators['enable'];
8484
}

src/vs/platform/environment/node/argv.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ export function parseArgs(args: string[], isOptionSupported = (_: Option) => tru
121121
}
122122
}
123123
// remote aliases to avoid confusion
124-
const parsedArgs = minimist(args, { string, boolean, alias }) as ParsedArgs;
125-
for (let o of options) {
124+
const parsedArgs = minimist(args, { string, boolean, alias });
125+
for (const o of options) {
126126
if (o.alias) {
127127
delete parsedArgs[o.alias];
128128
}
@@ -203,10 +203,10 @@ export function buildHelpMessage(productName: string, executableName: string, ve
203203
}
204204
help.push('');
205205
}
206-
for (let key in categories) {
206+
for (const key in categories) {
207207
let categoryOptions = options.filter(o => !!o.description && o.cat === key && isOptionSupported(o));
208208
if (categoryOptions.length) {
209-
help.push(categories[key]);
209+
help.push(categories[key as keyof HelpCategories]);
210210
help.push(...formatOptions(categoryOptions, columns));
211211
help.push('');
212212
}

0 commit comments

Comments
 (0)