Skip to content

Commit

Permalink
chore: add format test for indent sensitive cases (#2420)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Feb 19, 2023
1 parent 5ada605 commit e9658b9
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/vue-test-workspace/format/js template strings/input.vue
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 packages/vue-test-workspace/format/js template strings/output.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<script>
const str1 = `
txt
`;
const str2 = `
txt ${'' +
str1
}
txt
`;
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"volar.format.initialIndent": {
"javascript": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<template>
<div></div>
<!--
hey
-->
<div></div>
</template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<template>
<div></div>
<!--
hey
-->
<div></div>
</template>

0 comments on commit e9658b9

Please sign in to comment.