Phase 1: Kerebron Markdown webview editor#7
Open
horner wants to merge 1 commit into
Open
Conversation
- Register CustomTextEditorProvider for .ededit files (Markdown content, avoids clashing with the built-in .md editor) - Bundle Kerebron editor + extension-markdown into a Vite-built webview with a locked-down CSP (nonce + wasm-unsafe-eval for tree-sitter) - Sync document <-> ProseMirror via WorkspaceEdit with an echo guard to break the edit loop - Add deno workspace members, import map, and vite build task - Add .ededit language contribution and language-configuration.json - Add sample back-pain-encounter.md; ignore media/ build output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Phase 1 of the plan: embedding the Kerebron editor as a Markdown
custom editor inside VS Code.
Changes
MarkdownEditorProvidernow serves a real webview instead of a placeholder<pre>. It:.ededitfiles (Markdown content, so it no longer clashes with the built-in.mdeditor) atdefaultpriority.nonce+wasm-unsafe-eval/unsafe-evalrequired by the tree-sitter emscripten glue).WorkspaceEdit, with alastSyncedTextecho guard to break the edit loop.build:webviewtask (deno run -A npm:vite build) wired intobuild/vscode:prepublish;media/build output is gitignored.nodeModulesDir: auto, andraw-imports.ededitlanguage +language-configuration.json.samples/back-pain-encounter.md.Plan status
Phase 1 checklist items are now checked off in
plan.md.Testing
.ededitfile, edit in the webview, confirm the document updates and external edits reflect back.