mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Merge VS Code 1.23.1 (#1520)
This commit is contained in:
@@ -1179,7 +1179,10 @@ function createI18nFile(originalFilePath: string, messages: any): File {
|
||||
result[key] = messages[key];
|
||||
}
|
||||
|
||||
let content = JSON.stringify(result, null, '\t').replace(/\r\n/g, '\n');
|
||||
let content = JSON.stringify(result, null, '\t');
|
||||
if (process.platform === 'win32') {
|
||||
content = content.replace(/\n/g, '\r\n');
|
||||
}
|
||||
return new File({
|
||||
path: path.join(originalFilePath + '.i18n.json'),
|
||||
contents: Buffer.from(content, 'utf8')
|
||||
|
||||
Reference in New Issue
Block a user