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:
Marshall Bowers 2025-04-18 08:11:54 -04:00 committed by GitHub
parent 3538acec7c
commit 269f6403dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 12 deletions

View file

@ -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;
};