You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
editor or extension: VSCode; rust-analyzer v0.3.1940
relevant settings: None applicable
code snippet to reproduce:
In src/main.rs:
#[path="parser/__mod.rs"]mod parser;fnmain(){}
In src/parser/__mod.rs:
mod expr {};
Place the cursor on expr and invoke the "Extract module to file" assist.
Expected behavior:
The line in __mod.rs becomes mod expr;, and a new empty file is created at parser/expr.rs.
Actual behavior:
The line in __mod.rs becomes mod expr;, and a new empty file is created at parser/parser/expr.rs (where it will not be recognized as part of the workspace).