Skip to content

Commit b92775e

Browse files
authored
Improve code editors (#51555)
* Update YAML and Jinja code editor support, support Jinja in YAML * add autocomplete for ha jinja functions * Use snippets and better autocomplete for jinja * Add autocomplete for devices * Add area, floor, label autocomplete * Add yaml scalar type highlighter * Add autocomplete for `states` var * Add autocomplete for attributes * Make autocomplete work on id and name * Add missing functions that can also be used as filter
1 parent b5bacf8 commit b92775e

5 files changed

Lines changed: 1897 additions & 122 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
"@braintree/sanitize-url": "7.1.2",
3131
"@codemirror/autocomplete": "6.20.1",
3232
"@codemirror/commands": "6.10.3",
33+
"@codemirror/lang-jinja": "6.0.0",
34+
"@codemirror/lang-yaml": "6.1.3",
3335
"@codemirror/language": "6.12.3",
34-
"@codemirror/legacy-modes": "6.5.2",
3536
"@codemirror/search": "6.6.0",
3637
"@codemirror/state": "6.6.0",
3738
"@codemirror/view": "6.41.0",

0 commit comments

Comments
 (0)