Use message as fallback, not key (#166323)

Because `key` will also contain comments like:
```
my message/i'm a comment the user shouldn't see
```

The other part of microsoft/vscode#165735

fixes microsoft/vscode#165735
This commit is contained in:
Tyler James Leonhardt
2022-11-14 21:28:31 -08:00
committed by GitHub
parent f836340879
commit eab3273162
@@ -46,7 +46,7 @@ export class ExtHostLocalizationService implements ExtHostLocalizationShape {
if (!str) {
this.logService.warn(`Using default string since no string found in i18n bundle that has the key: ${key}`);
}
return format2(str ?? key, (args ?? {}));
return format2(str ?? message, (args ?? {}));
}
getBundle(extensionId: string): { [key: string]: string } | undefined {