Skip to content

rust-analyzer.completion.callable.snippets =none isn't respected in vscode #12498

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

Closed
ahicks92 opened this issue Jun 10, 2022 · 8 comments · Fixed by #12504
Closed

rust-analyzer.completion.callable.snippets =none isn't respected in vscode #12498

ahicks92 opened this issue Jun 10, 2022 · 8 comments · Fixed by #12504
Assignees
Labels
A-config configuration

Comments

@ahicks92
Copy link

rust-analyzer version: 0.3.1083

rustc version: Multiple, on the machine I'm on currently 1.59.0

relevant settings: rust-analyzer.completion.callable.snippets

I'm pretty sure this used to make it so that Rust-analyzer would never add parens when completing functions, but now it doesn't and it's throwing me consistently because I'm blind and I'm using a screen reader. I definitely used to be able to turn this off, and I am 99% sure this setting was how. From settings.json:

	"rust-analyzer.completion.addCallParenthesis": false,
	"rust-analyzer.completion.addCallArgumentSnippets": false,

(which, I am now noticing, sort of implies we used to have and removed rust-analyzer.completion.addCallParenthesis, so was this behavior just not copied over? In any case I'm hoping this is an easy fix).

@Veykril
Copy link
Member

Veykril commented Jun 10, 2022

What does the Show RA version command print? The setting works fine for me, and yes, the two boolean settings you've listed have been merged into rust-analyzer.completion.callable.snippets as one of the 4 combinations of those was pointless.

@ahicks92
Copy link
Author

I have:

rust-analyzer version: ad6810e 2022-06-06 stable

Sorry, I assumed the extension version from the UI was the same thing.

@ahicks92
Copy link
Author

Also,

"rust-analyzer.completion.callable.snippets": "none",

Is there, since apparently we have 3 settings which are almost named the same and I am failing at basic programmer tonight.

@Veykril
Copy link
Member

Veykril commented Jun 10, 2022

The version from the UI is the client version, the command gives the server version. Both are important to know here (we probably should add that to the issue template) as they can be out of sync depending on the user setups. In your case the server is the correct version though.

Do you have the old settings still in the file? If yes try removing them. Otherwise I don't see what the problem could be from this. Would you mind pasting all your rust-analyzer related configs here maybe?

@ahicks92
Copy link
Author

I'll do some more digging for you tomorrow, I don't have anything sensitive outside the work laptop so I can just give you whatever. Thanks for the fast response.

@ahicks92
Copy link
Author

Yeah, looks like removing the old settings works. I'll try it more on my work laptop today and see if that's a consistent fix for it. Seems odd that it'd still care about them so maybe still worth fixing that but let's see if it works when I use it for a while first because I just did a 30 second test only.

@Veykril
Copy link
Member

Veykril commented Jun 10, 2022

It cares about them because we have some code that patches the old config to the new one on the server side for backwards compatability. It is unfortunately failing here due a mistake on my side I imagine, I'll look into that.

Where the two old settings both set to false?

@ahicks92
Copy link
Author

Yep. Both set to false on both machines. Flat out removing fixed it on both machines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-config configuration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants