We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 968fc01 + 9f7dd01 commit 6b4569dCopy full SHA for 6b4569d
crates/ide/src/syntax_highlighting/inject.rs
@@ -26,7 +26,8 @@ pub(super) fn ra_fixture(
26
literal: &ast::String,
27
expanded: &ast::String,
28
) -> Option<()> {
29
- let active_parameter = ActiveParameter::at_token(sema, expanded.syntax().clone())?;
+ let active_parameter =
30
+ salsa::attach(sema.db, || ActiveParameter::at_token(sema, expanded.syntax().clone()))?;
31
let has_rust_fixture_attr = active_parameter.attrs().is_some_and(|attrs| {
32
attrs.filter_map(|attr| attr.as_simple_path()).any(|path| {
33
path.segments()
0 commit comments