Make jump to code a standard event
还没有人认领这个 Issue。
评估
调研方向
首先阅读 Dart-Code 的 src/extension/commands/debug.ts 中第 559 行附近以及 src/extension/commands/edit.ts 中第 21 行附近当前对自定义事件的使用。将这些 payload 与拟议的 CodePointerEvent 形状进行比较,然后定义协议更改,并验证文档化的事件涵盖文件、行和可选列目标。
由索引模型根据 Issue 内容生成。
描述
Within the Dart extension, we use a custom event to indicate to the IDE client that we would like to jump to a specific spot in code. Our current use case for this is allowing developers to run a mobile application and click on an element in the application to move to the code that corresponds to the UI element (see https://github.com/Dart-Code/Dart-Code/blob/master/src/extension/commands/debug.ts#L559 and https://github.com/Dart-Code/Dart-Code/blob/master/src/extension/commands/edit.ts#L21). We could also see this type of event being helpful for performance tooling where data could be associated with a point in code.
interface CodePointerEvent extends Event {
event: 'codePointer';
body: {
/** The file requested. */
uri: string;
/** The line requested. */
line: number;
/** The column requested, optionally. */
column?: number;
};
}
- 主要语言
- HTML
- 星标
- 1.8k
- 派生
- 173
- 平均合并
- 7 天 7 小时
- 30 天内合并 PR
- 2
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/debug-adapter-protocol 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 5/5 一周以上 新手友好度 35/100
microsoft/debug-adapter-protocol#633 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 42/100
-
难度 5/5 一周以上 新手友好度 35/100
microsoft/debug-adapter-protocol#599 · 8 个 reaction ·
-
under-discussion
难度 2/5 1-3 小时 新手友好度 48/100
microsoft/debug-adapter-protocol#596 · 9 条评论 ·
查看 microsoft/debug-adapter-protocol 的全部 Issue
相似的 Issue
-
pydanty:is-working
难度 2/5 1-3 小时 新手友好度 78/100
pydantic/pydantic-ai#8843 ·
维护者通常 1 天内回复
-
breaking change enhancement server
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
openhab/openhab-core#5847 ·
维护者通常 1 天内回复
-
bug P2 reliability
难度 2/5 1-3 小时 新手友好度 88/100
afreidah/s3-orchestrator#1564 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
paperclipai/paperclip#14173 ·
维护者通常 1 天内回复