chore(deps): update dependency rust-lang/rust-analyzer to v2026-04-27#202
Merged
Conversation
Contributor
|
Following are the settings schema changes between tags Added keys (3){
"rust-analyzer.cargo.metadataExtraArgs": {
"markdownDescription": "Extra arguments passed only to `cargo metadata`, not to other cargo invocations.\nUseful for flags like `--config` that `cargo metadata` supports.",
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"rust-analyzer.disableFixtureSupport": {
"markdownDescription": "Disable support for `#[rust_analyzer::rust_fixture]` snippets.\n\nIf you are not working on rust-analyzer itself, you should ignore this config.",
"default": false,
"type": "boolean"
},
"rust-analyzer.inlayHints.typeHints.location": {
"markdownDescription": "Where to render type hints relative to their binding pattern.",
"default": "inline",
"type": "string",
"enum": [
"inline",
"end_of_line"
],
"markdownEnumDescriptions": [
"Render type hints directly after the binding identifier.",
"Render type hints after the end of the containing `let` statement when possible."
]
}
}// Extra arguments passed only to `cargo metadata`, not to other cargo invocations.
// Useful for flags like `--config` that `cargo metadata` supports.
"rust-analyzer.cargo.metadataExtraArgs": [],
// Disable support for `#[rust_analyzer::rust_fixture]` snippets.
//
// If you are not working on rust-analyzer itself, you should ignore this config.
"rust-analyzer.disableFixtureSupport": false,
// Where to render type hints relative to their binding pattern.
"rust-analyzer.inlayHints.typeHints.location": "inline",Changed keys (3){
"rust-analyzer.runnables.bench.overrideCommand": {
"markdownDescription": "Override the command used for bench runnables.\nThe first element of the array should be the program to execute (for example, `cargo`).\n\nUse the placeholders:\n- `${package}`: package name.\n- `${target_arg}`: target option such as `--bin`, `--test`, `--lib`, etc.\n- `${target}`: target name (empty for `--lib`).\n- `${test_name}`: the test path filter, e.g. `module::bench_func`.\n- `${exact}`: `--exact` for single benchmarks, empty for modules.\n- `${include_ignored}`: always empty for benchmarks.\n- `${executable_args}`: all of the above binary args bundled together\n (includes `rust-analyzer.runnables.extraTestBinaryArgs`).",
"default": null,
"type": [
"null",
"array"
],
"items": {
"type": "string"
}
},
"rust-analyzer.runnables.doctest.overrideCommand": {
"markdownDescription": "Override the command used for doc-test runnables.\nThe first element of the array should be the program to execute (for example, `cargo`).\n\nUse the placeholders:\n- `${package}`: package name.\n- `${target_arg}`: target option such as `--bin`, `--test`, `--lib`, etc.\n- `${target}`: target name (empty for `--lib`).\n- `${test_name}`: the test path filter, e.g. `module::func`.\n- `${exact}`: always empty for doc-tests.\n- `${include_ignored}`: always empty for doc-tests.\n- `${executable_args}`: all of the above binary args bundled together\n (includes `rust-analyzer.runnables.extraTestBinaryArgs`).",
"default": null,
"type": [
"null",
"array"
],
"items": {
"type": "string"
}
},
"rust-analyzer.runnables.test.overrideCommand": {
"markdownDescription": "Override the command used for test runnables.\nThe first element of the array should be the program to execute (for example, `cargo`).\n\nAvailable placeholders:\n- `${package}`: package name.\n- `${target_arg}`: target option such as `--bin`, `--test`, `--lib`, etc.\n- `${target}`: target name (empty for `--lib`).\n- `${test_name}`: the test path filter, e.g. `module::test_func`.\n- `${exact}`: `--exact` for single tests, empty for modules.\n- `${include_ignored}`: `--include-ignored` for single tests, empty otherwise.\n- `${executable_args}`: all of the above binary args bundled together\n (includes `rust-analyzer.runnables.extraTestBinaryArgs`).",
"default": null,
"type": [
"null",
"array"
],
"items": {
"type": "string"
}
}
}// Override the command used for bench runnables.
// The first element of the array should be the program to execute (for example, `cargo`).
//
// Use the placeholders:
// - `${package}`: package name.
// - `${target_arg}`: target option such as `--bin`, `--test`, `--lib`, etc.
// - `${target}`: target name (empty for `--lib`).
// - `${test_name}`: the test path filter, e.g. `module::bench_func`.
// - `${exact}`: `--exact` for single benchmarks, empty for modules.
// - `${include_ignored}`: always empty for benchmarks.
// - `${executable_args}`: all of the above binary args bundled together
// (includes `rust-analyzer.runnables.extraTestBinaryArgs`).
"rust-analyzer.runnables.bench.overrideCommand": null,
// Override the command used for doc-test runnables.
// The first element of the array should be the program to execute (for example, `cargo`).
//
// Use the placeholders:
// - `${package}`: package name.
// - `${target_arg}`: target option such as `--bin`, `--test`, `--lib`, etc.
// - `${target}`: target name (empty for `--lib`).
// - `${test_name}`: the test path filter, e.g. `module::func`.
// - `${exact}`: always empty for doc-tests.
// - `${include_ignored}`: always empty for doc-tests.
// - `${executable_args}`: all of the above binary args bundled together
// (includes `rust-analyzer.runnables.extraTestBinaryArgs`).
"rust-analyzer.runnables.doctest.overrideCommand": null,
// Override the command used for test runnables.
// The first element of the array should be the program to execute (for example, `cargo`).
//
// Available placeholders:
// - `${package}`: package name.
// - `${target_arg}`: target option such as `--bin`, `--test`, `--lib`, etc.
// - `${target}`: target name (empty for `--lib`).
// - `${test_name}`: the test path filter, e.g. `module::test_func`.
// - `${exact}`: `--exact` for single tests, empty for modules.
// - `${include_ignored}`: `--include-ignored` for single tests, empty otherwise.
// - `${executable_args}`: all of the above binary args bundled together
// (includes `rust-analyzer.runnables.extraTestBinaryArgs`).
"rust-analyzer.runnables.test.overrideCommand": null,All changes in the schema--- 2026-03-30
+++ 2026-04-27
@@ -31,6 +31,9 @@
"vscode": "^1.93.0"
},
"enabledApiProposals": [],
+ "extensionKind": [
+ "workspace"
+ ],
"scripts": {
"vscode:prepublish": "npm run build-base -- --minify",
"package": "vsce package -o rust-analyzer.vsix",
@@ -54,8 +57,8 @@
"vscode-languageclient": "^9.0.1"
},
"devDependencies": {
- "@eslint/js": "^9.21.0",
- "@stylistic/eslint-plugin": "^4.1.0",
+ "@eslint/js": "^10.0.1",
+ "@stylistic/eslint-plugin": "^5.10.0",
"@stylistic/eslint-plugin-js": "^4.1.0",
"@tsconfig/strictest": "^2.0.5",
"@types/lodash": "^4.17.20",
@@ -64,16 +67,16 @@
"@typescript-eslint/eslint-plugin": "^8.25.0",
"@typescript-eslint/parser": "^8.25.0",
"@vscode/test-electron": "^2.4.1",
- "@vscode/vsce": "^3.6.0",
+ "@vscode/vsce": "^3.7.1",
"esbuild": "^0.25.0",
- "eslint": "^9.21.0",
- "eslint-config-prettier": "^10.0.2",
+ "eslint": "^10.2.0",
+ "eslint-config-prettier": "^10.1.8",
"eslint-define-config": "^2.1.0",
- "ovsx": "0.10.1",
- "prettier": "^3.5.2",
+ "ovsx": "0.10.10",
+ "prettier": "^3.8.1",
"tslib": "^2.8.1",
- "typescript": "^5.7.3",
- "typescript-eslint": "^8.25.0"
+ "typescript": "^6.0.2",
+ "typescript-eslint": "^8.58.0"
},
"activationEvents": [
"workspaceContains:Cargo.toml",
@@ -987,6 +990,19 @@
}
}
]
+ }
+ }
+ },
+ {
+ "title": "Cargo",
+ "properties": {
+ "rust-analyzer.cargo.metadataExtraArgs": {
+ "markdownDescription": "Extra arguments passed only to `cargo metadata`, not to other cargo invocations.\nUseful for flags like `--config` that `cargo metadata` supports.",
+ "default": [],
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
}
},
@@ -1592,6 +1608,16 @@
}
},
{
+ "title": "rust-analyzer",
+ "properties": {
+ "rust-analyzer.disableFixtureSupport": {
+ "markdownDescription": "Disable support for `#[rust_analyzer::rust_fixture]` snippets.\n\nIf you are not working on rust-analyzer itself, you should ignore this config.",
+ "default": false,
+ "type": "boolean"
+ }
+ }
+ },
+ {
"title": "Document",
"properties": {
"rust-analyzer.document.symbol.search.excludeLocals": {
@@ -2498,6 +2524,24 @@
"markdownDescription": "Hide inlay type hints for constructors.",
"default": false,
"type": "boolean"
+ }
+ }
+ },
+ {
+ "title": "Inlay Hints",
+ "properties": {
+ "rust-analyzer.inlayHints.typeHints.location": {
+ "markdownDescription": "Where to render type hints relative to their binding pattern.",
+ "default": "inline",
+ "type": "string",
+ "enum": [
+ "inline",
+ "end_of_line"
+ ],
+ "enumDescriptions": [
+ "Render type hints directly after the binding identifier.",
+ "Render type hints after the end of the containing `let` statement when possible."
+ ]
}
}
},
@@ -2865,7 +2909,7 @@
"title": "Runnables",
"properties": {
"rust-analyzer.runnables.bench.overrideCommand": {
- "markdownDescription": "Override the command used for bench runnables.\nThe first element of the array should be the program to execute (for example, `cargo`).\n\nUse the placeholders `${package}`, `${target_arg}`, `${target}`, `${executable_args}` to dynamically\nreplace the package name, target option (such as `--bin` or `--example`), the target name and\nthe arguments passed to test binary args (includes `rust-analyzer.runnables.extraTestBinaryArgs`).",
+ "markdownDescription": "Override the command used for bench runnables.\nThe first element of the array should be the program to execute (for example, `cargo`).\n\nUse the placeholders:\n- `${package}`: package name.\n- `${target_arg}`: target option such as `--bin`, `--test`, `--lib`, etc.\n- `${target}`: target name (empty for `--lib`).\n- `${test_name}`: the test path filter, e.g. `module::bench_func`.\n- `${exact}`: `--exact` for single benchmarks, empty for modules.\n- `${include_ignored}`: always empty for benchmarks.\n- `${executable_args}`: all of the above binary args bundled together\n (includes `rust-analyzer.runnables.extraTestBinaryArgs`).",
"default": null,
"type": [
"null",
@@ -2894,7 +2938,7 @@
"title": "Runnables",
"properties": {
"rust-analyzer.runnables.doctest.overrideCommand": {
- "markdownDescription": "Override the command used for bench runnables.\nThe first element of the array should be the program to execute (for example, `cargo`).\n\nUse the placeholders `${package}`, `${target_arg}`, `${target}`, `${executable_args}` to dynamically\nreplace the package name, target option (such as `--bin` or `--example`), the target name and\nthe arguments passed to test binary args (includes `rust-analyzer.runnables.extraTestBinaryArgs`).",
+ "markdownDescription": "Override the command used for doc-test runnables.\nThe first element of the array should be the program to execute (for example, `cargo`).\n\nUse the placeholders:\n- `${package}`: package name.\n- `${target_arg}`: target option such as `--bin`, `--test`, `--lib`, etc.\n- `${target}`: target name (empty for `--lib`).\n- `${test_name}`: the test path filter, e.g. `module::func`.\n- `${exact}`: always empty for doc-tests.\n- `${include_ignored}`: always empty for doc-tests.\n- `${executable_args}`: all of the above binary args bundled together\n (includes `rust-analyzer.runnables.extraTestBinaryArgs`).",
"default": null,
"type": [
"null",
@@ -2948,7 +2992,7 @@
"title": "Runnables",
"properties": {
"rust-analyzer.runnables.test.overrideCommand": {
- "markdownDescription": "Override the command used for test runnables.\nThe first element of the array should be the program to execute (for example, `cargo`).\n\nUse the placeholders `${package}`, `${target_arg}`, `${target}`, `${executable_args}` to dynamically\nreplace the package name, target option (such as `--bin` or `--example`), the target name and\nthe arguments passed to test binary args (includes `rust-analyzer.runnables.extraTestBinaryArgs`).",
+ "markdownDescription": "Override the command used for test runnables.\nThe first element of the array should be the program to execute (for example, `cargo`).\n\nAvailable placeholders:\n- `${package}`: package name.\n- `${target_arg}`: target option such as `--bin`, `--test`, `--lib`, etc.\n- `${target}`: target name (empty for `--lib`).\n- `${test_name}`: the test path filter, e.g. `module::test_func`.\n- `${exact}`: `--exact` for single tests, empty for modules.\n- `${include_ignored}`: `--include-ignored` for single tests, empty otherwise.\n- `${executable_args}`: all of the above binary args bundled together\n (includes `rust-analyzer.runnables.extraTestBinaryArgs`).",
"default": null,
"type": [
"null",
@@ -3252,6 +3296,13 @@
}
],
"configurationDefaults": {
+ "[rust]": {
+ "editor.quickSuggestions": {
+ "other": true,
+ "comments": false,
+ "strings": true
+ }
+ },
"explorer.fileNesting.patterns": {
"Cargo.toml": "Cargo.lock"
}Full settings and schema JSONs are available as an artifact |
2b5f148 to
c830dfd
Compare
c830dfd to
3629fe2
Compare
3629fe2 to
6a834f6
Compare
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2026-03-30→2026-04-27Release Notes
rust-lang/rust-analyzer (rust-lang/rust-analyzer)
v2026-04-27Compare Source
Commit:
8954b66Release:
2026-04-27(v0.3.2878)New Features
#21979rename variables in constructors when renaming a field.Fixes
#22116(first contribution) mark enum variants as deprecated when parent enum is deprecated.#22101port call expression type checking and closure upvar inference fromrustc.#22107improve "Go to definition" on comparison operators.#22085reduce relevance of deprecated items.Internal Improvements
#22054(first contribution) de-duplicate lints.#22104don't check solver's cache validity on every access.#22105migratewrap_unwrap_cfg_attrassist toSyntaxEditorand replaceast::makewithSyntaxFactoryin few handlers.#22111group unstable features in a struct.See also the changelog post.
v2026-04-20Compare Source
Commit:
adef948Release:
2026-04-20(v0.3.2870)New Features
#21906exclude dependency and standard library results from reference search.#21740support#[rust_analyzer::prefer_underscore_import]to import traitsas _.Fixes
#22031(first contribution) demoteimplcompletions when an inherentimplblock already exists.#22083(first contribution) respect#[deprecated]when deciding if aModuleDefcompletion is deprecated.#22046(first contribution) add parser support for unstabletype constitems.#22022add parser support forimplandmutrestrictions.#22096useProofTreeVisitorfor unsized coercion.#22025don't add extra dereference after indexing inextract_function.#22044don't complete unstable items that are gated by an internal feature.#22003complete variants of hidden enums through public aliases.#21999fix ref-completion with keyword prefix.#22018enable completions inside strings in VS Code.#22032allow ambiguity in associated type shorthands if they resolve to the same associated type from a supertrait.#22087fix incorrect lifetime hints withself: Selfparameter.#22066recognize#[std::prelude::vX::test].#21487offerextract_variablein macro calls.#22067add parentheses on record literals inreplace_let_with_if_let.#22030fix MIR evaluation of sized &T with recursive const functions.#22073fix panic on empty comments inconvert_comment_block.#22077fix a panic inreplace_if_let_with_match.#22055fixes someupvars_mentionedissues.#22070handle name conflicts inextract_type_aliasa little better.Internal Improvements
#21835addhir::Type::{as_raw_ptr,is_mutable_raw_ptr}.#22092synchronize function call argument check fudging withrustc.#22048bumprustccrates.#22061bumpsalsa.#22050represent lower coroutines to closures.#22049,#22069store aSyntaxFactoryinsideSyntaxEditor.#22043,#22095,#22042,#22039replaceast::makewithSyntaxFactoryinraw_string,convert_range_for_to_while,expand_glob_importandgenerate_blanket_trait_impl.#22091,#22036migrategenerate_impl_textandIdentPat::set_pattoSyntaxEditor.#22081migrateconvert_iter_for_each_to_forassist toSyntaxEditor.#22037removeset_visibility.#22041removeGenericParamsOwnerEdit.#22057removeclone_for_updatefrommove_const_to_impl.#22063removeLineIndexDatabase.#22065fix new Clippy lints.#22084slim downMiniCoreDebugoutput.#22074supportRUSTFMT_TOOLCHAINforxtask codegen.#22029,#22028runrustdocGitHub action on PRs.See also the changelog post.
v2026-04-13Compare Source
Commit:
7b6e124Release:
2026-04-13(v0.3.2862)New Features
#21978(first contribution) enhance runnable command placeholders.#21964(first contribution) allow passing extra arguments tocargo metadata.#21012,#21982complete->in function return position.Fixes
#21995(first contribution) don't let Cargo[env]variables override the process ones.#21970,#21968(first contribution) load Markdown files into the VFS and watch for changes.#21704(first contribution) loadrust-analyzer.tomlin virtual workspaces.#21965improve handling of+#[cfg_attr]+and+#[cfg]+.#21973take path context into account inImportAssets.#21962fixSyntaxEditorupmapping of nodes with mapped ancestors that aren't mapped themselves.#21981emit diagnostic for#![cfg]ed out crates.#21977disable the fix formissing-fieldswhen the fields are private.#22009,#22012fix spurious import completions in qualified paths with type anchors.#21955add semicolon for postfixprint!-like completions.#21971check coercion, not unification, in "Fill struct fields".#21953improve type mismatch "AddSome" fix on block-like expressions.#21952improve type mismatch fixes inside macro calls.#21920improveadd_missing_match_armslabels.#21957improveonEnter.#22010fixrustfmtwith relative custom command.#21738fix stale diagnostics with customcheckcommand.#21969refrsh workspace when adding a Cargo config.Internal Improvements
#21988,#22011,#21998add workflow to update generated lints.#21996migrateextract_struct_from_enum_variantassist toSyntaxEditor.#21993replacemake::trait_withSyntaxFactoryingenerate_trait_from_impl.#21997replacemakeconstructors withSyntaxFactoryingenerate_single_field_struct_from.#21975handle token mutability inSyntaxEditor.#21960moveSyntaxEditorprecondition handling to its constructor.#21972remove some redundantclone_subtrees.#21967deriveClone, Copy, Hashforvfs::ChangeKind.#21963bump ESLint and TypeScript.#21986fixRecursiveMemoryLayoutNodefield names in the Code extension.#21985use official npm registry for the Code extension dependencies.See also the changelog post.
v2026-04-06Compare Source
Commit:
38fb8f9Release:
2026-04-06(v0.3.2854)Universal VSIX
This release adds a platform-independent VSIX that VS Code will install on platforms where rust-analyzer doesn't offer binaries.
On supported platforms, the extension should keep working as before, but a Code bug might cause it to fail to activate.
If that happens, you should uninstall and reintall the rust-analyzer extension.
New Features
#21928(first contribution) support macro expansion in#[doc = ...]attributes.#19956implement#[feature(more_qualified_paths)].#21322add option to put type hints at the end of the line.#19659add support for folding ranges in chained expressions.#21516publish universal VSIX without a built-in server binary, for unsupported platforms.Fixes
#21792(first contribution) makematching_bracework when cursor the cursor is not on a bracket.#21942(first contribution) silence type mismatch diagnostic when type is unknown.#21924(first contribution) update Neovim setup instructions.#21915fix a cycle in bounds lowering.#21935support#[cfg]on array elements.#21926handle empty expressions in parameter inlay hints.#21937wrap guard in parentheses inreplace_if_let_with_match.#21938fix indent inconvert_let_else_to_match.#21954handle emptyelseblock inconvert_let_else_to_match.#21951report "expected type, found{" in parser.#21695match trait item order intrait_impl_redundant_assoc_item.#21936handle comma at the end of argument inextract_variable.#21902supportenv!completions in nested macro calls.#21903handle negation inifpostfix completion.#20864fix naming ofselfparameter inextract_function.#21919support labels inconvert_to_guarded_return.#21912support tail expressions inconvert_to_guarded_return.#21940support multiple snippet placeholders in VS Code extension.#21921unconditionally pass--include-ignoredfor test runnables.#21922use the correct project root when there are multiple workspaces.#21844support file systems that don't sendCreateevents.#21881fix missing argument error messages forsched_getaffinityandgetenvshims.Internal Improvements
#21944removeRootQueryDb.#21931move node mutability handling toedit_algo.#21886replacemakeconstructors withSyntaxFactoryingen_trait_fn_body.#21930refactoradd_missing_impl_membersto use more ofSyntaxFactory.#21909allow disabling fixture support.#21933ensure tracing is configured in slow tests.#21806document when crate cycles can occur.#21923set VS Code extension kind explicitly.#21916bump@vscode/vsceandovsx.See also the changelog post.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.