tailwind-ctp-intellisense/packages/tailwindcss-language-server/tests/code-actions/invalid-theme.json

36 lines
902 B
JSON

{
"code": ".test { color: theme(colors.red.901) }",
"language": "css",
"expected": [
{
"title": "Replace with 'colors.red.900'",
"kind": "quickfix",
"diagnostics": [
{
"code": "invalidConfigPath",
"range": {
"start": { "line": 0, "character": 21 },
"end": { "line": 0, "character": 35 }
},
"severity": 1,
"message": "'colors.red.901' does not exist in your theme config. Did you mean 'colors.red.900'?",
"suggestions": ["colors.red.900"]
}
],
"edit": {
"changes": {
"{{URI}}": [
{
"range": {
"start": { "line": 0, "character": 21 },
"end": { "line": 0, "character": 35 }
},
"newText": "colors.red.900"
}
]
}
}
}
]
}