fix: autofmt duplicate whitespace on attributes, flickering of vscode autoformat (#5159)
* wip: failing test * edit harness a bit * wip, not fixed entirely * fix comment accumulation and whitespace * fix: autofmt syncrhonize edits with vscode waitUntil edit pipeline * fix optimization collapsing away whitespace * comment out test case for now
This commit is contained in:
1 parent
f537d72918
commit
1025bd69f0
8 files changed
+185
-55
No files matched your search
@@ -0,0 +1,26 @@
|
||||
//! hello
|
||||
|
||||
#[component]
|
||||
fn App() -> Element {
|
||||
rsx! {
|
||||
Stylesheet { href: MAIN_CSS }
|
||||
div { id: "hero",
|
||||
// ss
|
||||
// s
|
||||
// asd
|
||||
img {
|
||||
// blah
|
||||
src: HEADER_SVG,
|
||||
id: "header",
|
||||
}
|
||||
div { id: "links",
|
||||
a { href: "https://discord.gg/XgGxMSkvUM", "👋 Community Discord" }
|
||||
div {
|
||||
// blah
|
||||
src: HEADER_SVG,
|
||||
id: "header",
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
//! hello
|
||||
|
||||
#[component]
|
||||
fn App() -> Element {
|
||||
rsx! {
|
||||
Stylesheet { href: MAIN_CSS }
|
||||
div { id: "hero",
|
||||
// ss
|
||||
// s
|
||||
// asd
|
||||
img {
|
||||
// blah
|
||||
src: HEADER_SVG, id: "header" }
|
||||
div { id: "links",
|
||||
a { href: "https://discord.gg/XgGxMSkvUM", "👋 Community Discord" }
|
||||
div {
|
||||
// blah
|
||||
|
||||
|
||||
|
||||
src: HEADER_SVG, id: "header"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
rsx! {
|
||||
div { // Comments
|
||||
class: "asdasd",
|
||||
"hello world"
|
||||
}
|
||||
|
||||
// todo: fix this case
|
||||
img { src: HEADER_SVG, id: "header" }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
rsx! {
|
||||
div { // Comments
|
||||
class: "asdasd", "hello world" }
|
||||
|
||||
// todo: fix this case
|
||||
img { src: HEADER_SVG, id: "header" }
|
||||
}
|
||||
Reference in new issue
Block a user