snippets: Fix snippets not updating while containing comments (#23755)
Closes #23699 Release Notes: - Fixed issue where snippets would not update when a snippets file contained comments.
This commit is contained in:
parent
bb59e7f217
commit
b99159c59b
5 changed files with 8 additions and 6 deletions
|
@ -98,7 +98,8 @@ async fn process_updates(
|
|||
let Some(file_contents) = contents else {
|
||||
return;
|
||||
};
|
||||
let Ok(as_json) = serde_json::from_str::<VSSnippetsFile>(&file_contents) else {
|
||||
let Ok(as_json) = serde_json_lenient::from_str::<VSSnippetsFile>(&file_contents)
|
||||
else {
|
||||
return;
|
||||
};
|
||||
let snippets = file_to_snippets(as_json);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue