microsoft / microsoft/vscode-pull-request-github

Selecting Revert Selected Ranges in Github pull request plane seems weird

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

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

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

説明

  • Extension version:0.42.0
  • VSCode Version: 1.67.2
  • OS: m1 mac pro

Seems like clicking 'Revert Selected Ranges' in github pull request plane works unexpectedly.

Steps to Reproduce:

  1. Check out my PR
  2. Go to Github Pull Request plane
  3. Select any file under 'CHANGES IN PULL REQUEST'; a diff view appears.
  4. Drag some changes, right click, select
    Unstage Selected Ranges -> no-op. I think it is reasonable since we didn't stage anything. However, when we select
    Revert Selected Ranges -> The file is messed up; some changes are duplicated and randomly placed.

At first, I expected Revert Selected Ranges to revert selected changes of the current file to what it looked like before the PR, but it didn't work. Is the behavior intended, or am I missing something?

If that is intended or not designed to use like this, is there a way to easily revert-some-selected-range-from-this-PR while staying on the 'diff' view? As a workaround, I manually git reset each file, revert the ranges that I don't want (in the diff view given by 'Source Control'), and re-stage the file.

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

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

はじめの一歩

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

調査の方向性

まず、記載された手順を使って GitHub Pull Request ペインで問題を再現し、その後 Revert Selected Ranges と Source Control の diff ワークフローを比較します。ペイロードにはソースファイルもテストも指定されていません。選択した範囲によって重複した変更やランダムに配置された変更が生成されなくなるか、その動作が意図されたものとして明確に文書化されれば完了です。

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

評価

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

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

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