snippet_provider: Use proper casing of VsCode
in identifiers (#29038)
This PR renames some identifiers in the `snippet_provider` to use the correct casing of `VsCode`. Release Notes: - N/A
This commit is contained in:
parent
3538acec7c
commit
269f6403dd
4 changed files with 12 additions and 12 deletions
|
@ -10,7 +10,7 @@ use std::{
|
|||
|
||||
use anyhow::Result;
|
||||
use collections::{BTreeMap, BTreeSet, HashMap};
|
||||
use format::VSSnippetsFile;
|
||||
use format::VsSnippetsFile;
|
||||
use fs::Fs;
|
||||
use futures::stream::StreamExt;
|
||||
use gpui::{App, AppContext as _, AsyncApp, Context, Entity, Task, WeakEntity};
|
||||
|
@ -32,7 +32,7 @@ fn file_stem_to_key(stem: &str) -> SnippetKind {
|
|||
}
|
||||
}
|
||||
|
||||
fn file_to_snippets(file_contents: VSSnippetsFile) -> Vec<Arc<Snippet>> {
|
||||
fn file_to_snippets(file_contents: VsSnippetsFile) -> Vec<Arc<Snippet>> {
|
||||
let mut snippets = vec![];
|
||||
for (prefix, snippet) in file_contents.snippets {
|
||||
let prefixes = snippet
|
||||
|
@ -98,7 +98,7 @@ async fn process_updates(
|
|||
let Some(file_contents) = contents else {
|
||||
return;
|
||||
};
|
||||
let Ok(as_json) = serde_json_lenient::from_str::<VSSnippetsFile>(&file_contents)
|
||||
let Ok(as_json) = serde_json_lenient::from_str::<VsSnippetsFile>(&file_contents)
|
||||
else {
|
||||
return;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue