How can we render `ReactNode`s as output to Codemirror extensions?
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- react, typescript
调研方向
首先检查现有的 React–CodeMirror 集成,以及 linters、自动补全和工具提示所使用的 CodeMirror 输出 API。定义 ReactNode 输出所支持的渲染范围和验收标准;该 issue 未指明任何文件或测试,因此定位相关入口点也是工作的一部分。
由索引模型根据 Issue 内容生成。
描述
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:
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 162
- 平均合并
- 2 小时 41 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
uiwjs/react-codemirror 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
uiwjs/react-codemirror#766 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
uiwjs/react-codemirror#765 ·
-
难度 3/5 1-2 天 新手友好度 35/100
uiwjs/react-codemirror#772 ·
-
难度 4/5 3-5 天 新手友好度 48/100
uiwjs/react-codemirror#770 ·
-
难度 3/5 1-2 天 新手友好度 48/100
uiwjs/react-codemirror#767 · 2 条评论 ·
查看 uiwjs/react-codemirror 的全部 Issue
相似的 Issue
-
check:failed streams:edit
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复
-
package:ios ships XCFrameworks with absolute symlinks, which SwiftPM refuses to extract可能已有人在做 @cusnirvladislav 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
callstackincubator/rock#740 ·
-
S: triage
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 2 天内回复
-
area:workflow bug ready-for-human
难度 1/5 1 小时以内 新手友好度 78/100
fil-donadoni/tolaria#6108 ·
维护者通常 1 天内回复