mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 17:22:29 -05:00
Fix whitespace differences in sqlproj (#13805)
* add whiteSpaceAtEndOfSelfclosingTag * update test baselines
This commit is contained in:
@@ -902,7 +902,12 @@ export class Project {
|
||||
|
||||
private async serializeToProjFile(projFileContents: any): Promise<void> {
|
||||
let xml = new xmldom.XMLSerializer().serializeToString(projFileContents);
|
||||
xml = xmlFormat(xml, <any>{ collapseContent: true, indentation: ' ', lineSeparator: os.EOL }); // TODO: replace <any>
|
||||
xml = xmlFormat(xml, <any>{
|
||||
collapseContent: true,
|
||||
indentation: ' ',
|
||||
lineSeparator: os.EOL,
|
||||
whiteSpaceAtEndOfSelfclosingTag: true
|
||||
}); // TODO: replace <any>
|
||||
|
||||
await fs.writeFile(this.projectFilePath, xml);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user