I am generating a Rust module via a procedural macro attribute. When using this generated code, I get no auto-complete suggestions or hover info.
However, some procedurally-generated code does appear in autocomplete suggestions, e.g. the example code in json-typegen:
use json_typegen::json_typegen;
// `Point` and fields present in auto-complete
json_typegen!("pub Point", r#"{ "x": 1, "y": 2 }"#);
The two major differences I see here are that this is just a type, not a module; and it is using a function-like proc macro. Don't know if these are relevant though.
Are there any known guidelines I could follow with my procedural macro to make RA more likely to function with it?