Skip to content

Commit 6b4569d

Browse files
Merge pull request #20553 from ChayimFriedman2/ns-highlight-attach
fix: Attach the db in one more place in highlighting
2 parents 968fc01 + 9f7dd01 commit 6b4569d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/ide/src/syntax_highlighting/inject.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ pub(super) fn ra_fixture(
2626
literal: &ast::String,
2727
expanded: &ast::String,
2828
) -> Option<()> {
29-
let active_parameter = ActiveParameter::at_token(sema, expanded.syntax().clone())?;
29+
let active_parameter =
30+
salsa::attach(sema.db, || ActiveParameter::at_token(sema, expanded.syntax().clone()))?;
3031
let has_rust_fixture_attr = active_parameter.attrs().is_some_and(|attrs| {
3132
attrs.filter_map(|attr| attr.as_simple_path()).any(|path| {
3233
path.segments()

0 commit comments

Comments
 (0)