`l10n.t('foo\'bar')` is being extracted as `foo\'bar` but really it should honor escape characters
TylerLeonhardt opened this issue · 2 comments
TylerLeonhardt commented
`l10n.t('foo\'bar')` is being extracted as `foo\'bar` but really it should honor escape characters
TylerLeonhardt commented
Verification:
in an extension.ts file:
import { l10n } from 'vscode';
l10n.t('foo \' bar');
exporting that using:
npx @vscode/l10n-dev export ./extension.ts
should get you a bundle.l10n.json
file with:
{
"foo ' bar": "foo ' bar"
}
connor4312 commented
There remains a bug here: if the escaped character is anything but the quote style used for the string, then it gets double-escaped, for example l10n.t('hello \" world')
results in "hello \\" world"
instead of "hello \" world"