We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
URLO thread
Heya, when I use "generate getter" on the value field using Rust analyzer:
value
#[derive(Clone, Debug)] pub struct MyStruct { value: u32, }
The following code gets generated (notice the $0 before the function name):
$0
impl MyStruct { pub fn $0value(&self) -> u32 { self.value } }
Possibly this line should only insert the $0 if ctx.config.snippet_cap.is_some() -- based on this other part further down.
ctx.config.snippet_cap.is_some()
I haven't found a way to see what capabilities sublime text is reporting to LSP, in case we need to see that.
rust-analyzer version: rust-analyzer 0.0.0 (89b994049 2023-02-14) rustc version: rustc 1.69.0-nightly (0416b1a6f 2023-02-14) relevant settings:
rust-analyzer 0.0.0 (89b994049 2023-02-14)
rustc 1.69.0-nightly (0416b1a6f 2023-02-14)
The text was updated successfully, but these errors were encountered:
Ye that is missing the snippet_cap check
snippet_cap
Sorry, something went wrong.
d011e79
Successfully merging a pull request may close this issue.
URLO thread
Heya, when I use "generate getter" on the
value
field using Rust analyzer:The following code gets generated (notice the
$0
before the function name):Possibly this line should only insert the
$0
ifctx.config.snippet_cap.is_some()
-- based on this other part further down.I haven't found a way to see what capabilities sublime text is reporting to LSP, in case we need to see that.
rust-analyzer version:
rust-analyzer 0.0.0 (89b994049 2023-02-14)
rustc version:
rustc 1.69.0-nightly (0416b1a6f 2023-02-14)
relevant settings:
The text was updated successfully, but these errors were encountered: