Skip to content

Commit

Permalink
fix: avoid vue directives syntax inject to tsx, jsx
Browse files Browse the repository at this point in the history
close #1617
  • Loading branch information
johnsoncodehk committed Jul 23, 2022
1 parent cf0538a commit 0d0c592
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
@@ -1,6 +1,6 @@
{
"fileTypes": [],
"injectionSelector": "L:meta.tag -meta.attribute -attribute_value, L:meta.element -meta.attribute",
"injectionSelector": "L:meta.tag -meta.attribute -attribute_value -source.tsx -source.js.jsx, L:meta.element -meta.attribute",
"patterns": [
{
"include": "source.vue#vue-directives"
Expand Down
11 changes: 11 additions & 0 deletions packages/vue-test-workspace/syntax/jsx.vue
@@ -0,0 +1,11 @@
<script lang="tsx">
(<Foo
class={{ 'foo': 123 }}
/>);
</script>

<script lang="jsx">
(<Foo
class={{ 'foo': 123 }}
/>)
</script>

0 comments on commit 0d0c592

Please sign in to comment.