microsoft / microsoft/vscode-pull-request-github

Comments attached to wrong lines

オープン
#8,374 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

info-needed
主要言語
TypeScript
スター
2.6k
フォーク
795
平均マージ
1日 4時間
マージ済み PR(30日)
46

説明

  • Extension version: 0.124.1
  • VSCode Version: 1.107.1
  • OS: Fedora 42
  • Repository Clone Configuration (single repository/fork of an upstream repository): fork of an upstream repo
  • GitHub Product (GitHub.com/GitHub Enterprise version x.x.x): GitHub.com

See here for the affected PR and the comment: https://github.com/scylladb/scylladb/pull/27386/files#r2643211612

When viewing with a browser, the comment is in the right place, right where there are 7 lines removed and the one below:
for shard in iterate_over_describe_stream(dynamodbstreams, arn, time.time() + 60):
is added instead.
In VS Code the comment is shown associated to the wrong lines - to the new lines starting from 1409, not the old lines starting from 1409.

Steps to Reproduce:

  1. Install the "GitHub Pull Requests" extension to VS Code.
  2. View the affected PR in VS Code.
  3. Search for a string from the comment to see it in VS Code

The right placement when viewed with Chromium:
Image

The wrong placement when viewed in VS Code:
Image

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

VS Code で PR #27386 を開き、コメントのテキストを検索して、GitHub Pull Requests 拡張機能でコメントが誤った位置に表示される問題を再現します。拡張機能での配置を Chromium ビューと比較し、コメントが 1409 から始まる新しい行ではなく、削除された行に紐付けられていれば issue は完了とみなします。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。