mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-30 23:27:24 +00:00
Attach the db in one more place in highlighting
This commit is contained in:
parent
968fc01fa6
commit
9f7dd01bef
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ pub(super) fn ra_fixture(
|
|||
literal: &ast::String,
|
||||
expanded: &ast::String,
|
||||
) -> Option<()> {
|
||||
let active_parameter = ActiveParameter::at_token(sema, expanded.syntax().clone())?;
|
||||
let active_parameter =
|
||||
salsa::attach(sema.db, || ActiveParameter::at_token(sema, expanded.syntax().clone()))?;
|
||||
let has_rust_fixture_attr = active_parameter.attrs().is_some_and(|attrs| {
|
||||
attrs.filter_map(|attr| attr.as_simple_path()).any(|path| {
|
||||
path.segments()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue