mirror of
https://github.com/open-webui/computer.git
synced 2026-11-05 01:17:24 +00:00
[GH-ISSUE #210] bug: C++ syntax highlighting is missing for common file extensions #125
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/computer#125
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @satouriko on GitHub (Aug 1, 2026).
Original GitHub issue: https://github.com/open-webui/computer/issues/210
Description
The workspace editor recognizes
.cppand.hppfiles as C++, but other common C++ extensions are not assigned a language. Files such as.cc,.cxx,.hh, and.hxxtherefore open without C++ syntax highlighting even though the frontend already supports thecpplanguage identifier.Steps to reproduce
.cc,.cxx,.hh, or.hxx.Expected behavior
These common C++ source and header extensions should use the existing C++ syntax highlighting support.
Proposed fix
Add
.cc,.cxx,.hh, and.hxxtoTEXT_EXTENSIONSand map them tocppin_detect_language.A minimal implementation based on the current
mainbranch is available here:github.com/satouriko/computer@1f8441c50aIt has been checked with:
ruff 0.15.16 format --check cptr/routers/workspace.pypython -m py_compile cptr/routers/workspace.pycpp@owui-terminator[bot] commented on GitHub (Aug 1, 2026):
⚠️ Missing Issue Title Prefix
@satouriko, your issue title is missing a categorising prefix (e.g.
bug:,feat:,docs:).Please update the title to lead with one of:
Example:
bug: Login fails when the password contains special characters@tjbck commented on GitHub (Aug 5, 2026):
Addressed!