cherry-studio/docs/technical
fullex 2e77792042
fix[Logger]: in renderer worker (#8284)
* docs: enhance LoggerService documentation and usage guidelines

- Added details about `initWindowSource` method, emphasizing its return of the LoggerService instance for method chaining.
- Introduced a section on using LoggerService within `worker` threads, highlighting the need to call `initWindowSource` first.
- Updated both English and Chinese documentation files to reflect these changes, ensuring clarity in usage instructions for developers.

* docs: update LoggerService documentation and improve environment checks

- Enhanced documentation for using LoggerService in worker threads, clarifying logging support limitations in main and renderer processes.
- Added environment checks for development and production modes directly in the LoggerService.
- Removed the unused env utility file to streamline the codebase.

* refactor(ShikiStreamService): update highlighter management and improve test assertions

- Modified the highlighter management in ShikiStreamService to clear the reference instead of disposing it directly, as it is now managed by AsyncInitializer.
- Enhanced unit tests to verify the initialization of worker and main highlighters, ensuring that either one is active but not both, and updated assertions related to highlighter disposal.
2025-07-19 15:28:36 +08:00
..
db.settings.md refactor(translate): Language Type (#7727) 2025-07-07 22:08:56 +08:00
how-to-use-logger-en.md fix[Logger]: in renderer worker (#8284) 2025-07-19 15:28:36 +08:00
how-to-use-logger-zh.md fix[Logger]: in renderer worker (#8284) 2025-07-19 15:28:36 +08:00
how-to-use-messageBlock.md feat: 添加 messageBlock、messageThunk 和 useMessageOperations 使用指南文档 2025-04-29 15:14:55 +08:00
how-to-use-messageThunk.md feat: 添加 messageBlock、messageThunk 和 useMessageOperations 使用指南文档 2025-04-29 15:14:55 +08:00
how-to-use-useMessageOperations.md feat: 添加 messageBlock、messageThunk 和 useMessageOperations 使用指南文档 2025-04-29 15:14:55 +08:00
how-to-write-middlewares.md refactor[Logger]: replace console logging with logger service (#8271) 2025-07-18 16:01:03 +08:00
KnowledgeService.md docs: Add comprehensive documentation for KnowledgeService concurrent processing mechanism 2025-03-02 20:36:13 +08:00
message-lifecycle.png refactor: message block structure (#4660) 2025-04-29 14:12:07 +08:00
Message.md refactor: message block structure (#4660) 2025-04-29 14:12:07 +08:00