Autocomplete rsx (#2421)
* autocomplete rsx * hide the completions module * fix autocomplete for identifiers that start with a raw identifier * add field completion hints for props * remove extra import * Revert "add field completion hints for props" This reverts commit 194899c73783e0f9b5d601d53365746d838f2048. * fix autocomplete inside raw expressions * fix autofmt * feat: just use regular ifmt if it's compatible reuses the tokens for ifmt so RA provides its HIR lowering on simple formatted strings * fix merging ifmt strings * add a better error message for components called like functions --------- Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
1 parent
245003a5d4
commit
2523581cf4
21 files changed
+788
-217
No files matched your search
@@ -1,6 +1,12 @@
|
||||
use proc_macro2::Span;
|
||||
|
||||
pub(crate) fn missing_trailing_comma(span: Span) -> syn::Error {
|
||||
syn::Error::new(span, "missing trailing comma")
|
||||
}
|
||||
|
||||
macro_rules! missing_trailing_comma {
|
||||
($span:expr) => {
|
||||
return Err(syn::Error::new($span, "missing trailing comma"));
|
||||
return Err(crate::errors::missing_trailing_comma($span));
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user