mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
HTML format selection formatting entire line issue. Fixes #25521
This commit is contained in:
@@ -103,6 +103,10 @@ suite('HTML Embedded Formatting', () => {
|
||||
assertFormat('<html><head>\n <script>\n|var x=6;\nvar y= 9;|\n</script></head></html>', '<html><head>\n <script>\n var x = 6;\n var y = 9;\n</script></head></html>');
|
||||
});
|
||||
|
||||
test('Range after new line', function (): any {
|
||||
assertFormat('<html><head>\n |<script>\nvar x=6;\n</script>\n|</head></html>', '<html><head>\n <script>\n var x = 6;\n\n </script>\n</head></html>');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function applyEdits(document: TextDocument, edits: TextEdit[]): string {
|
||||
|
||||
Reference in New Issue
Block a user