Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hovers and conflicts in Vue
<style lang="sass">
blocks (#930)
* Refactor * Handle Sass in Vue style blocks * Update changelog
- Loading branch information
1 parent
e191eb5
commit f7534ae
Showing
7 changed files
with
210 additions
and
11 deletions.
There are no files selected for viewing
116 changes: 116 additions & 0 deletions
116
packages/tailwindcss-language-server/tests/diagnostics/css-conflict/vue-style-lang-sass.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,116 @@ | ||
{ | ||
"code": "<style lang=\"sass\">\n.foo\n @apply uppercase lowercase\n</style>", | ||
"language": "vue", | ||
"expected": [ | ||
{ | ||
"code": "cssConflict", | ||
"className": { | ||
"className": "uppercase", | ||
"classList": { | ||
"classList": "uppercase lowercase", | ||
"range": { | ||
"start": { "line": 2, "character": 9 }, | ||
"end": { "line": 2, "character": 28 } | ||
}, | ||
"important": false | ||
}, | ||
"relativeRange": { | ||
"start": { "line": 0, "character": 0 }, | ||
"end": { "line": 0, "character": 9 } | ||
}, | ||
"range": { "start": { "line": 2, "character": 9 }, "end": { "line": 2, "character": 18 } } | ||
}, | ||
"otherClassNames": [ | ||
{ | ||
"className": "lowercase", | ||
"classList": { | ||
"classList": "uppercase lowercase", | ||
"range": { | ||
"start": { "line": 2, "character": 9 }, | ||
"end": { "line": 2, "character": 28 } | ||
}, | ||
"important": false | ||
}, | ||
"relativeRange": { | ||
"start": { "line": 0, "character": 10 }, | ||
"end": { "line": 0, "character": 19 } | ||
}, | ||
"range": { | ||
"start": { "line": 2, "character": 19 }, | ||
"end": { "line": 2, "character": 28 } | ||
} | ||
} | ||
], | ||
"range": { "start": { "line": 2, "character": 9 }, "end": { "line": 2, "character": 18 } }, | ||
"severity": 2, | ||
"message": "'uppercase' applies the same CSS properties as 'lowercase'.", | ||
"relatedInformation": [ | ||
{ | ||
"message": "lowercase", | ||
"location": { | ||
"uri": "{{URI}}", | ||
"range": { | ||
"start": { "line": 2, "character": 19 }, | ||
"end": { "line": 2, "character": 28 } | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"code": "cssConflict", | ||
"className": { | ||
"className": "lowercase", | ||
"classList": { | ||
"classList": "uppercase lowercase", | ||
"range": { | ||
"start": { "line": 2, "character": 9 }, | ||
"end": { "line": 2, "character": 28 } | ||
}, | ||
"important": false | ||
}, | ||
"relativeRange": { | ||
"start": { "line": 0, "character": 10 }, | ||
"end": { "line": 0, "character": 19 } | ||
}, | ||
"range": { "start": { "line": 2, "character": 19 }, "end": { "line": 2, "character": 28 } } | ||
}, | ||
"otherClassNames": [ | ||
{ | ||
"className": "uppercase", | ||
"classList": { | ||
"classList": "uppercase lowercase", | ||
"range": { | ||
"start": { "line": 2, "character": 9 }, | ||
"end": { "line": 2, "character": 28 } | ||
}, | ||
"important": false | ||
}, | ||
"relativeRange": { | ||
"start": { "line": 0, "character": 0 }, | ||
"end": { "line": 0, "character": 9 } | ||
}, | ||
"range": { | ||
"start": { "line": 2, "character": 9 }, | ||
"end": { "line": 2, "character": 18 } | ||
} | ||
} | ||
], | ||
"range": { "start": { "line": 2, "character": 19 }, "end": { "line": 2, "character": 28 } }, | ||
"severity": 2, | ||
"message": "'lowercase' applies the same CSS properties as 'uppercase'.", | ||
"relatedInformation": [ | ||
{ | ||
"message": "uppercase", | ||
"location": { | ||
"uri": "{{URI}}", | ||
"range": { | ||
"start": { "line": 2, "character": 9 }, | ||
"end": { "line": 2, "character": 18 } | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
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
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
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
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
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
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