Skip to content

Commit

Permalink
update rust-analyzer to 2024-11-25 (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
sublimelsp-app[bot] authored Nov 28, 2024
1 parent 3d33c4a commit 9e46e63
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 77 deletions.
52 changes: 26 additions & 26 deletions LSP-rust-analyzer.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
"rust-analyzer.cargo.buildScripts.useRustcWrapper": true,
// List of cfg options to enable with the given values.
"rust-analyzer.cargo.cfgs": {
"debug_assertions": null,
"miri": null
"miri": null,
"debug_assertions": null
},
// Extra arguments that are passed to every cargo invocation.
//
Expand Down Expand Up @@ -183,43 +183,43 @@
"rust-analyzer.completion.privateEditable.enable": false,
// Custom completion snippets.
"rust-analyzer.completion.snippets.custom": {
"Arc::new": {
"body": "Arc::new(${receiver})",
"description": "Put the expression into an `Arc`",
"postfix": "arc",
"requires": "std::sync::Arc",
"scope": "expr"
},
"Rc::new": {
"body": "Rc::new(${receiver})",
"description": "Put the expression into an `Rc`",
"postfix": "rc",
"requires": "std::rc::Rc",
"Ok": {
"postfix": "ok",
"body": "Ok(${receiver})",
"description": "Wrap the expression in a `Result::Ok`",
"scope": "expr"
},
"Box::pin": {
"body": "Box::pin(${receiver})",
"description": "Put the expression into a pinned `Box`",
"postfix": "pinbox",
"body": "Box::pin(${receiver})",
"requires": "std::boxed::Box",
"description": "Put the expression into a pinned `Box`",
"scope": "expr"
},
"Err": {
"body": "Err(${receiver})",
"description": "Wrap the expression in a `Result::Err`",
"postfix": "err",
"Arc::new": {
"postfix": "arc",
"body": "Arc::new(${receiver})",
"requires": "std::sync::Arc",
"description": "Put the expression into an `Arc`",
"scope": "expr"
},
"Some": {
"postfix": "some",
"body": "Some(${receiver})",
"description": "Wrap the expression in an `Option::Some`",
"postfix": "some",
"scope": "expr"
},
"Ok": {
"body": "Ok(${receiver})",
"description": "Wrap the expression in a `Result::Ok`",
"postfix": "ok",
"Err": {
"postfix": "err",
"body": "Err(${receiver})",
"description": "Wrap the expression in a `Result::Err`",
"scope": "expr"
},
"Rc::new": {
"postfix": "rc",
"body": "Rc::new(${receiver})",
"requires": "std::rc::Rc",
"description": "Put the expression into an `Rc`",
"scope": "expr"
}
},
Expand Down Expand Up @@ -431,7 +431,7 @@
"rust-analyzer.procMacro.server": null,
// Exclude imports from find-all-references.
"rust-analyzer.references.excludeImports": false,
// Exclude tests from find-all-references.
// Exclude tests from find-all-references and call-hierarchy.
"rust-analyzer.references.excludeTests": false,
// Whether to restart the server automatically when certain settings that require a restart are changed.
"rust-analyzer.restartServerOnConfigChange": false,
Expand Down
2 changes: 1 addition & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

SESSION_NAME = "rust-analyzer"

TAG = "2024-10-14"
TAG = "2024-11-25"
"""
Update this single git tag to download a newer version.
After changing this tag, go through the server settings again to see
Expand Down
104 changes: 54 additions & 50 deletions sublime-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@
"rust-analyzer.cargo.cfgs": {
"markdownDescription": "List of cfg options to enable with the given values.",
"default": {
"debug_assertions": null,
"miri": null
"miri": null,
"debug_assertions": null
},
"type": "object"
},
Expand Down Expand Up @@ -388,63 +388,67 @@
},
"rust-analyzer.completion.snippets.custom": {
"default": {
"Arc::new": {
"body": "Arc::new(${receiver})",
"description": "Put the expression into an `Arc`",
"postfix": "arc",
"requires": "std::sync::Arc",
"scope": "expr"
},
"Rc::new": {
"body": "Rc::new(${receiver})",
"description": "Put the expression into an `Rc`",
"postfix": "rc",
"requires": "std::rc::Rc",
"scope": "expr"
},
"Box::pin": {
"body": "Box::pin(${receiver})",
"description": "Put the expression into a pinned `Box`",
"postfix": "pinbox",
"requires": "std::boxed::Box",
"scope": "expr"
},
"Err": {
"body": "Err(${receiver})",
"description": "Wrap the expression in a `Result::Err`",
"postfix": "err",
"scope": "expr"
},
"Some": {
"body": "Some(${receiver})",
"description": "Wrap the expression in an `Option::Some`",
"postfix": "some",
"scope": "expr"
},
"Ok": {
"body": "Ok(${receiver})",
"description": "Wrap the expression in a `Result::Ok`",
"postfix": "ok",
"scope": "expr"
}
"Ok": {
"postfix": "ok",
"body": "Ok(${receiver})",
"description": "Wrap the expression in a `Result::Ok`",
"scope": "expr"
},
"Box::pin": {
"postfix": "pinbox",
"body": "Box::pin(${receiver})",
"requires": "std::boxed::Box",
"description": "Put the expression into a pinned `Box`",
"scope": "expr"
},
"Arc::new": {
"postfix": "arc",
"body": "Arc::new(${receiver})",
"requires": "std::sync::Arc",
"description": "Put the expression into an `Arc`",
"scope": "expr"
},
"Some": {
"postfix": "some",
"body": "Some(${receiver})",
"description": "Wrap the expression in an `Option::Some`",
"scope": "expr"
},
"Err": {
"postfix": "err",
"body": "Err(${receiver})",
"description": "Wrap the expression in a `Result::Err`",
"scope": "expr"
},
"Rc::new": {
"postfix": "rc",
"body": "Rc::new(${receiver})",
"requires": "std::rc::Rc",
"description": "Put the expression into an `Rc`",
"scope": "expr"
}
},
"markdownDescription": "Custom completion snippets.",
"type": "object"
},
// "rust-analyzer.debug.engine": {
// "default": "auto",
// "description": "Preferred debug engine.",
// "type": "string",
// "enum": [
// "auto",
// "llvm-vs-code-extensions.lldb-dap",
// "vadimcn.vscode-lldb",
// "ms-vscode.cpptools"
// "ms-vscode.cpptools",
// "webfreak.debug"
// ],
// "default": "auto",
// "description": "Preferred debug engine.",
// "markdownEnumDescriptions": [
// "First try to use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb), if it's not installed try to use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools).",
// "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
// "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
// ],
// "type": "string"
// "Use the first available extension out of [LLDB DAP](https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.lldb-dap), [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb), [C/C++ for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools), and [Native Debug](https://marketplace.visualstudio.com/items?itemName=webfreak.debug).",
// "Use [LLDB DAP](https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.lldb-dap)",
// "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
// "Use [C/C++ for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)",
// "Use [Native Debug](https://marketplace.visualstudio.com/items?itemName=webfreak.debug)"
// ]
// },
// "rust-analyzer.debug.buildBeforeRestart": {
// "markdownDescription": "Whether to rebuild the project modules before debugging the same test again",
Expand Down Expand Up @@ -1220,7 +1224,7 @@
"type": "boolean"
},
"rust-analyzer.references.excludeTests": {
"markdownDescription": "Exclude tests from find-all-references.",
"markdownDescription": "Exclude tests from find-all-references and call-hierarchy.",
"default": false,
"type": "boolean"
},
Expand Down

0 comments on commit 9e46e63

Please sign in to comment.