Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Make jump to code a standard event

未关闭
#399 0 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
dart
领域
api

调研方向

首先阅读 Dart-Code 的 src/extension/commands/debug.ts 中第 559 行附近以及 src/extension/commands/edit.ts 中第 21 行附近当前对自定义事件的使用。将这些 payload 与拟议的 CodePointerEvent 形状进行比较,然后定义协议更改,并验证文档化的事件涵盖文件、行和可选列目标。

由索引模型根据 Issue 内容生成。

描述

feature-request

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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/debug-adapter-protocol 的其他 Issue

查看 microsoft/debug-adapter-protocol 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。