uiwjs / uiwjs/react-codemirror

How can we render `ReactNode`s as output to Codemirror extensions?

Open
#689 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
161
PR merge metrics
No merged PRs in 30d

Description

Since this package is dedicated to integration with React, I figured this would be a good place to ask instead of Codemirror.

How can we render ReactNodes in response to extension output? A few places this would be useful are linters, autocomplete, and tooltips.

Codemirror supports very basic output for each one of these - it mostly expects string parameters and then stubs it into the generated DOM elements. But it would be very nice to be able to supply replacement components or a renderCompletion etc. to apply custom icons, formatting, styling, images, etc. - similar to the more rich functionality that exists in something like VSCode:

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing React–CodeMirror integration and the CodeMirror output APIs used by linters, autocomplete, and tooltips. Define the supported rendering scope and acceptance criteria for ReactNode output; the issue names no files or tests, so locating the relevant entry points is part of the work.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.