Skip to content

Commit eab3273

Browse files
Use message as fallback, not key (microsoft#166323)
Because `key` will also contain comments like: ``` my message/i'm a comment the user shouldn't see ``` The other part of microsoft#165735 fixes microsoft#165735
1 parent f836340 commit eab3273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/api/common/extHostLocalizationService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class ExtHostLocalizationService implements ExtHostLocalizationShape {
4646
if (!str) {
4747
this.logService.warn(`Using default string since no string found in i18n bundle that has the key: ${key}`);
4848
}
49-
return format2(str ?? key, (args ?? {}));
49+
return format2(str ?? message, (args ?? {}));
5050
}
5151

5252
getBundle(extensionId: string): { [key: string]: string } | undefined {

0 commit comments

Comments
 (0)