zed/crates/snippet_provider
Oscar Vargas Torres 0ff0390f27
Improve snippet parse error context (#46277)
Release Notes:

- N/A


Description:
E.g. Instead of saying:
2026-01-07T09:08:42-06:00 ERROR [crates/snippet_provider/src/lib.rs:46]
failed to parse snippet
  Caused by:
      expected an integer

Now the logs give more valuable information like:
2026-01-07T10:47:39-06:00 ERROR [crates/snippet_provider/src/lib.rs:48]
invalid snippet in /Users/oscarvarto/Library/Application
Support/Zed/extensions/installed/django-snippets/./snippets/python.json
(re_path)
2026-01-11 15:08:34 +02:00
..
src Improve snippet parse error context (#46277) 2026-01-11 15:08:34 +02:00
Cargo.toml Improve snippet parse error context (#46277) 2026-01-11 15:08:34 +02:00
LICENSE-GPL Snippets: Move snippets into the core of editor (#13937) 2024-07-09 14:02:36 +02:00