qwen-code/packages/server/src
Taylor Mullen 968e09f0b5 fix: Ensure filename is available for diff rendering in write-file
This commit resolves a bug where the `write-file` operation could fail to render content due to a missing filename.

The fix involves:
- Ensuring `fileName` is consistently passed to `DiffRenderer.tsx` through `ToolConfirmationMessage.tsx`, `ToolMessage.tsx`, and `useGeminiStream.ts`.
- Modifying `edit.ts` and `write-file.ts` to include `fileName` in the `FileDiff` object.
- Expanding the `FileDiff` interface in `tools.ts` to include `fileName`.

Additionally, this commit enhances the diff rendering by:
- Adding syntax highlighting based on file extension in `DiffRenderer.tsx`.
- Adding more language mappings to `getLanguageFromExtension` in `DiffRenderer.tsx`.
- Added lots of tests for all the above.

Fixes https://b.corp.google.com/issues/418125982
2025-05-16 10:13:13 -07:00
..
config Add UI memory indicator. (#348) 2025-05-14 15:19:45 -07:00
core feat: Add support for Vertex AI and Vertex express mode (#380) 2025-05-16 08:06:43 -07:00
tools fix: Ensure filename is available for diff rendering in write-file 2025-05-16 10:13:13 -07:00
utils feat: Enhance replace tool reliability with multi-stage edit correction 2025-05-12 23:33:12 -07:00
index.test.ts add linter for checking license headers (and eslint --fix target to match, and fix missing license headers while we're here) (#62) 2025-04-20 17:16:25 -07:00
index.ts Remove terminal tool and dependencies. 2025-05-11 12:35:55 -07:00