Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"rs<space>dashmap" gives HashMap documentation rathern than DashMap #27

Closed
rich-murphey opened this issue Mar 24, 2020 · 3 comments
Closed

Comments

@rich-murphey
Copy link

First off, kudos for this extension. I'm using hourly pretty much anytime I'm coding these days. Thanks so much for writing it!

this seems weird.
upon entering "rsdashmap" the dropdown shows
"crate: dashmap v3.7.0...."
but pressing enter goes to:
https://doc.rust-lang.org/std/collections/struct.HashMap.html

@Folyd
Copy link
Member

Folyd commented Mar 24, 2020

Hi @rich-murphey. Glad you like it and thankful for the feedback.

The std docs search is based on the Levenshtein distance algorithm, which means the search result is approximately matched to the keyword the user input. Hence is why when you search dashmap, the dropdown shows hashmap.

Another caveat is we only support search std docs right now. Searching docs of the external crate is in our support plan. Please stay tuned!

Related issue: #20

@rich-murphey
Copy link
Author

rich-murphey commented Mar 25, 2020

It's strange. The first menu item says Dashmap, but selecting it doesn't go to Dashmap.

2020-03-25 00_11_58-Greenshot

The confusion is that selecting this menu item retrieves something different:

2020-03-25 00_12_03-Greenshot copy

Maybe this is a firefox issue. So closing this issue.

@Folyd
Copy link
Member

Folyd commented Mar 26, 2020

@rich-murphey Yes, this is a Firefox bug. See #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants