Skip to content

Add built-in workspace code viewer#4

Merged
BunsDev merged 1 commit into
mainfrom
okcode/custom-code-editor
Mar 27, 2026
Merged

Add built-in workspace code viewer#4
BunsDev merged 1 commit into
mainfrom
okcode/custom-code-editor

Conversation

@BunsDev
Copy link
Copy Markdown
Member

@BunsDev BunsDev commented Mar 27, 2026

Summary

  • Added a built-in code viewer for workspace files with CodeMirror-based syntax highlighting, read-only rendering, and theme-aware styling.
  • Wired the file tree so normal clicks open files in the in-app viewer, while Cmd/Ctrl-click still opens the file in the external editor.
  • Added file-read support to the server and shared WS/native contracts, including size and binary-file guards for safer display.
  • Introduced route/store state for viewer tabs and integrated the viewer into both inline sidebar and sheet layouts.

Testing

  • Not run.
  • Expected checks before merge: bun fmt.
  • Expected checks before merge: bun lint.
  • Expected checks before merge: bun typecheck.

- Add a CodeMirror-backed file viewer in the web app
- Wire workspace file clicks to open tabs in the viewer
- Add server file-read support with size and binary checks
@github-actions github-actions Bot added size:XL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Mar 27, 2026
@BunsDev BunsDev merged commit 4a7fe84 into main Mar 27, 2026
6 of 7 checks passed
@BunsDev BunsDev deleted the okcode/custom-code-editor branch March 28, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant