-
-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add format test for indent sensitive cases (#2420)
- Loading branch information
1 parent
5ada605
commit e9658b9
Showing
5 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
packages/vue-test-workspace/format/js template strings/input.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<script> | ||
const str1 = ` | ||
txt | ||
`; | ||
const str2 = ` | ||
txt ${ '' + | ||
str1 | ||
} | ||
txt | ||
`; | ||
</script> |
12 changes: 12 additions & 0 deletions
12
packages/vue-test-workspace/format/js template strings/output.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<script> | ||
const str1 = ` | ||
txt | ||
`; | ||
const str2 = ` | ||
txt ${'' + | ||
str1 | ||
} | ||
txt | ||
`; | ||
</script> |
5 changes: 5 additions & 0 deletions
5
packages/vue-test-workspace/format/js template strings/settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"volar.format.initialIndent": { | ||
"javascript": true | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/vue-test-workspace/format/multi-line html comment/input.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<template> | ||
<div></div> | ||
<!-- | ||
hey | ||
--> | ||
<div></div> | ||
</template> |
7 changes: 7 additions & 0 deletions
7
packages/vue-test-workspace/format/multi-line html comment/output.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<template> | ||
<div></div> | ||
<!-- | ||
hey | ||
--> | ||
<div></div> | ||
</template> |