mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
html: observe insertFinalNewline (#152446)
This commit is contained in:
committed by
GitHub
parent
223ea2c4b5
commit
630809a1ea
@@ -49,6 +49,9 @@ export function getHTMLMode(htmlLanguageService: HTMLLanguageService, workspace:
|
||||
} else {
|
||||
formatSettings.contentUnformatted = 'script';
|
||||
}
|
||||
if (formatParams.insertFinalNewline) {
|
||||
formatSettings.endWithNewline = true;
|
||||
}
|
||||
merge(formatParams, formatSettings);
|
||||
return htmlLanguageService.format(document, range, formatSettings);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user