mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 05:53:45 +00:00
minor : Fix duplicate snippets showing up on hover.
With each `config::apply_change` duplicate configs were being added. Now we first drain the vec that holds these and then start adding.
This commit is contained in:
parent
2fd803cc13
commit
b68200ee6f
1 changed files with 3 additions and 0 deletions
|
@ -844,6 +844,9 @@ impl Config {
|
|||
config.source_root_parent_map = source_root_map;
|
||||
}
|
||||
|
||||
// IMPORTANT : This holds as long as ` completion_snippets_custom` is declared `client`.
|
||||
config.snippets = vec![];
|
||||
|
||||
let snips = self.completion_snippets_custom().to_owned();
|
||||
|
||||
for (name, def) in snips.iter() {
|
||||
|
|
Loading…
Reference in a new issue