mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Update hover message since we do support globs
This commit is contained in:
parent
198de68117
commit
d0efa77e0e
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ impl HoverResult {
|
||||||
/// for displaying in a UI
|
/// for displaying in a UI
|
||||||
pub fn to_markup(&self) -> String {
|
pub fn to_markup(&self) -> String {
|
||||||
let mut markup = if !self.exact {
|
let mut markup = if !self.exact {
|
||||||
let mut msg = String::from("Failed to exactly resolve the symbol. This is probably because rust_analyzer does not yet support glob imports or traits.");
|
let mut msg = String::from("Failed to exactly resolve the symbol. This is probably because rust_analyzer does not yet support traits.");
|
||||||
if !self.results.is_empty() {
|
if !self.results.is_empty() {
|
||||||
msg.push_str(" \nThese items were found instead:");
|
msg.push_str(" \nThese items were found instead:");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue