//! FIXME: write short doc here
use hir::ModuleSource;
-use ra_db::SourceDatabase;
+use ra_db::{SourceDatabase, SourceDatabaseExt};
use ra_syntax::{algo::find_node_at_offset, ast, AstNode, SyntaxNode};
use relative_path::{RelativePath, RelativePathBuf};
//! FIXME: write short doc here
use hir::{DefWithBody, HasSource, ModuleSource};
-use ra_db::{FileId, SourceDatabase};
+use ra_db::{FileId, SourceDatabase, SourceDatabaseExt};
use ra_syntax::{AstNode, TextRange};
use crate::db::RootDatabase;
Ok(Some(
refs.into_iter()
+ .filter(|r| r.file_id == file_id)
.map(|r| DocumentHighlight { range: r.range.conv_with(&line_index), kind: None })
.collect(),
))