Expand description
Common utilities shared across watcher implementations. Common utilities shared across watcher implementations.
This module provides helper functions for parsing timestamps, roles, and UUIDs that are used by multiple watcher implementations. It also provides the platform-specific path to VS Code’s global storage directory.
Functions§
- parse_
role - Parses a role string into a MessageRole.
- parse_
timestamp_ millis - Parses a timestamp from milliseconds since Unix epoch.
- parse_
timestamp_ rfc3339 - Parses a timestamp from an RFC3339 formatted string.
- parse_
uuid_ or_ generate - Parses a string as a UUID, or generates a new one if parsing fails.
- vscode_
global_ storage - Returns the platform-specific path to VS Code’s global storage directory.