Fix rsx autocomplete and diagnostics in the root; provide better completions after attributes are finished (#2656)

* fix rsx autocomplete and diagnostics in the root; provide better completions after attributes are finished

* clean up pr to use internal child parsing

* Fix peek_lowercase name

* fix comma diagnostics in the root

* Fix parsing components with a path

* remove simple routes trailing comma

* Fix incomplete_root_elements test

* Remove trailing commas from root body node in tests

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
Evan AlmloffandJonathan Kelley authored and GitHub committed 2024-07-23 16:34:50 -07:00
1 parent 71a48686dc
commit fa4e5dbf62
8 files changed
+179 -79

No files matched your search

+2 -1
View File
@@ -82,7 +82,8 @@ impl<'a> Writer<'a> {
write!(self.out, "{name} {{")?;
self.write_rsx_block(attributes, spreads, children, brace)?;
let brace = brace.unwrap_or_default();
self.write_rsx_block(attributes, spreads, children, &brace)?;
write!(self.out, "}}")?;