-
Notifications
You must be signed in to change notification settings - Fork 1.8k
No signature help returned at ':' #10173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is not valid rust syntax. You need to remove the |
Yeah, it works with both |
Screen.Recording.2021-09-07.at.2.02.06.PM.mov |
The signature flips when typing It always show the outer function signature when the cursor is at an invalid syntax node instead of the current function. |
You need to trigger the bar signature first. input |
vscode
|
Yeah, I'm on the same Code version. Does it happen with the code in your test? |
enum A {
A,
B
}
fn bar(_: A) { }
fn main() {
let foo = Foo;
std::thread::spawn(move || {
bar(A:$0)
} // braces is needed
);
} |
Ah, right. My |
fix: filter unnecessary completions after colon close #13597 related: #10173 This PR also happens to fix two extra issues: 1. The test case in https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-completion/src/tests/attribute.rs#L778-L801 was never triggered in previous behavior. after: https://user-images.githubusercontent.com/26110087/201476995-56adf955-0fa7-4f75-ab32-28a8e6cb9504.mp4 <del> 2. completions were triggered even in invalid paths, like ```rust fn main() { core:::::$0 } ``` ```rust #[:::::$0] struct X; ``` </del> only `:::` is excluded as discussed in #13611 (comment)
Closed by #14128 |
Uh oh!
There was an error while loading. Please reload this page.
This test should pass.
Related ast is as below:
The text was updated successfully, but these errors were encountered: