mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
[html] Formatting JavaScript placed after div elements inside html file adds 12 extra tabs. Fixes #23063
This commit is contained in:
6
extensions/html/server/src/test/fixtures/expected/21634.html
vendored
Normal file
6
extensions/html/server/src/test/fixtures/expected/21634.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<app-route path="/module" element="page-module" bindRouter onUrlChange="updateModel"></app-route>
|
||||
<script>
|
||||
Polymer({
|
||||
});
|
||||
|
||||
</script>
|
||||
6
extensions/html/server/src/test/fixtures/inputs/21634.html
vendored
Normal file
6
extensions/html/server/src/test/fixtures/inputs/21634.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<app-route path="/module" element="page-module" bindRouter onUrlChange="updateModel"></app-route>
|
||||
|
||||
<script>
|
||||
Polymer({
|
||||
});
|
||||
</script>
|
||||
@@ -71,6 +71,7 @@ suite('HTML Embedded Formatting', () => {
|
||||
assertFormatWithFixture('19813.html', '19813.html');
|
||||
assertFormatWithFixture('19813.html', '19813-4spaces.html', void 0, FormattingOptions.create(4, true));
|
||||
assertFormatWithFixture('19813.html', '19813-tab.html', void 0, FormattingOptions.create(1, false));
|
||||
assertFormatWithFixture('21634.html', '21634.html');
|
||||
})
|
||||
|
||||
test('Script end tag', function (): any {
|
||||
|
||||
Reference in New Issue
Block a user