[PR #86] [MERGED] fix: using language props to add editor extensions #108

Closed
opened 2026-02-16 03:15:11 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/chat-ui/pull/86
Author: @thucpn
Created: 5/13/2025
Status: Merged
Merged: 5/14/2025
Merged by: @thucpn

Base: mainHead: tp/using-language-props-to-add-language-extension


📝 Commits (4)

📊 Changes

6 files changed (+450 additions, -5 deletions)

View changed files

.changeset/rich-feet-drive.md (+5 -0)
apps/web/app/examples/code-editor/data.ts (+335 -0)
apps/web/app/examples/code-editor/page.tsx (+66 -0)
📝 packages/chat-ui/src/chat/canvas/artifacts/code.tsx (+6 -1)
📝 packages/chat-ui/src/widgets/code-editor.tsx (+37 -3)
📝 packages/chat-ui/src/widgets/index.tsx (+1 -1)

📄 Description

CodeMirror cannot automatically apply the correct language extension based on the code content. That’s why we need to explicitly provide a language prop to set up the appropriate language extension.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/chat-ui/pull/86 **Author:** [@thucpn](https://github.com/thucpn) **Created:** 5/13/2025 **Status:** ✅ Merged **Merged:** 5/14/2025 **Merged by:** [@thucpn](https://github.com/thucpn) **Base:** `main` ← **Head:** `tp/using-language-props-to-add-language-extension` --- ### 📝 Commits (4) - [`7de78e7`](https://github.com/run-llama/chat-ui/commit/7de78e76a056f1d9e75db06b44269ad625043158) fix: using language props to add editor extensions - [`07f5d20`](https://github.com/run-llama/chat-ui/commit/07f5d202436558b56321b6126c8ceadd193e67b0) Create rich-feet-drive.md - [`8bba796`](https://github.com/run-llama/chat-ui/commit/8bba7964851dc16d08ebe95fafca40999eb76d19) fix: format - [`b094d98`](https://github.com/run-llama/chat-ui/commit/b094d98d5df52694d070a4b46e1ad15747226c14) testing fallback ### 📊 Changes **6 files changed** (+450 additions, -5 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/rich-feet-drive.md` (+5 -0) ➕ `apps/web/app/examples/code-editor/data.ts` (+335 -0) ➕ `apps/web/app/examples/code-editor/page.tsx` (+66 -0) 📝 `packages/chat-ui/src/chat/canvas/artifacts/code.tsx` (+6 -1) 📝 `packages/chat-ui/src/widgets/code-editor.tsx` (+37 -3) 📝 `packages/chat-ui/src/widgets/index.tsx` (+1 -1) </details> ### 📄 Description CodeMirror cannot automatically apply the correct language extension based on the code content. That’s why we need to explicitly provide a language prop to set up the appropriate language extension. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 03:15:11 -05:00
yindo closed this issue 2026-02-16 03:15:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/chat-ui#108