Skip to content

Playground: real markdown rendering, Safari tooltip fix, full screen, named files - #200

Merged
omdxp merged 4 commits into
mainfrom
playground-hover-md-and-fixes
Oct 6, 2026
Merged

omdxp merged 4 commits into
mainfrom
playground-hover-md-and-fixes

Conversation

@omdxp

@omdxp omdxp commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • fls hover/completion docs now render as real markdown (headings, lists, code blocks, clickable See-also links that jump in-editor) instead of raw text with literal syntax showing.
  • Fixed a real, severe pre-existing bug: switching away from a file and back silently discarded all unsaved edits in that file (the cached CodeMirror state was never updated after a live edit).
  • Fixed the hover/completion tooltip rendering clipped/hidden in Safari specifically - it uses absolute positioning there (unlike fixed everywhere else), and a redundant overflow:auto on the editor host was clipping it. Also raised the tooltip z-index well above the Playground's own overlays (full screen mode) so it can never render behind them in any browser.
  • Fixed .pg-tree-btn (the entry/delete buttons in the file tree) not being theme-aware in light mode.
  • Added a "Full screen" toggle for the editor pane (Esc to exit).
  • "+ New" now asks for a filename (nested paths like lib/helpers.fn work) instead of auto-naming file1.fn/file2.fn.
  • Added a small discoverability hint above the editor (goto-definition gesture, hover-for-docs, completions).

Test plan

  • npx tsc --noEmit clean
  • Production build (vite build) clean
  • Verified directly via Playwright across Chromium and WebKit (Safari engine): markdown rendering, See-also link navigation + cursor focus restoration, file-switch content persistence, full screen toggle (including Escape to exit), named file creation (including nested paths and Escape-cancels-without-creating), light/dark theme parity, and the Safari-specific tooltip clipping fix (confirmed broken before the fix, confirmed fixed after, in the real WebKit engine)

omdxp added 4 commits October 7, 2026 00:41
Fenced code, headings, lists, and See-also links (clickable, jump
in-editor) now render properly instead of showing literal syntax.
The cached EditorState per file was never updated after a live edit,
so leaving a file and coming back reverted to its pre-edit content.
Safari falls back to absolute tooltip positioning (vs fixed elsewhere),
and an unrelated overflow:auto on the editor host was clipping it.
…hint

+New now asks for a filename (nested paths like lib/helpers.fn work)
instead of auto-naming file1.fn/file2.fn.
@omdxp
omdxp merged commit 5eab469 into main Oct 6, 2026
4 checks passed
@omdxp
omdxp deleted the playground-hover-md-and-fixes branch October 6, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant