snippets: Add icons and file names to snippet scope selector (#30212)
I added the language icons to the snippet scope selector so that it matches the language selector. The file names are displayed for each scope where there is a existing snippets file since it wasn't clear if a scope had a file already or not. | Before | After | | - | - | | |  | Release Notes: - Added language icons and file names to snippet scope selector --------- Co-authored-by: Kirill Bulatov <kirill@zed.dev>
This commit is contained in:
@@ -1023,7 +1023,7 @@ impl Project {
|
||||
let (tx, rx) = mpsc::unbounded();
|
||||
cx.spawn(async move |this, cx| Self::send_buffer_ordered_messages(this, rx, cx).await)
|
||||
.detach();
|
||||
let global_snippets_dir = paths::config_dir().join("snippets");
|
||||
let global_snippets_dir = paths::snippets_dir().to_owned();
|
||||
let snippets =
|
||||
SnippetProvider::new(fs.clone(), BTreeSet::from_iter([global_snippets_dir]), cx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user