Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quickDiff setting is ignored #4726

Closed
nathaniel-palmer-simplisafe opened this issue Apr 14, 2023 · 10 comments · Fixed by #4750
Closed

quickDiff setting is ignored #4726

nathaniel-palmer-simplisafe opened this issue Apr 14, 2023 · 10 comments · Fixed by #4750
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@nathaniel-palmer-simplisafe

Type: Bug

When githubPullRequests.quickDiff is disabled I still see the quick diff annotations in the gutter for PR changes even after reloading VSCode. Sometimes I have a PR checked out locally that I'm still working on and without this setting I can't use the gutter annotations to reliably tell what I've changed locally.

Extension version: 0.62.0
VS Code version: Code 1.77.3 (Universal) (704ed70d4fd1c6bd6342c436f1ede30d1cff4710, 2023-04-12T09:19:37.325Z)
OS version: Darwin x64 22.4.0
Modes:
Sandboxed: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 2, 3, 2
Memory (System) 32.00GB (0.96GB free)
Process Argv --crash-reporter-id ed50f89e-497f-43cd-86f3-a73119f730ed
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscorecescf:30445987
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vscaac:30438847
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
nodejswelcome1:30587005
282f8724:30602487
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
2i9eh265:30646982
defaultazurewalk:30687958
pythonms35:30701012
pythonfmttext:30710681
pythonclientmvcf:30713944

@alexr00
Copy link
Member

alexr00 commented Apr 19, 2023

@nathaniel-palmer-simplisafe did you reload after setting githubPullRequests.quickDiff to false? That setting requires a reload to change.

@alexr00 alexr00 added the info-needed Issue requires more information from poster label Apr 19, 2023
@nathaniel-palmer-simplisafe
Copy link
Author

@alexr00 Yes I did

@alexr00 alexr00 self-assigned this Apr 20, 2023
@alexr00 alexr00 added bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels Apr 20, 2023
@alexr00 alexr00 added this to the April 2023 milestone Apr 20, 2023
@alexr00
Copy link
Member

alexr00 commented Apr 20, 2023

I could also repro because I had the old setting githubPullRequests.experimental.quickDiff still set. As a fix, I've stopped reading that old setting in the extension.

@nathaniel-palmer-simplisafe
Copy link
Author

It would still be helpful to have a way to switch between PR and local changes globally rather than having to toggle between them when viewing individual changes although that would probably work better as a command rather than a setting. Would it make sense to open that as a feature request here or on the main VSCode repo?

@alexr00
Copy link
Member

alexr00 commented Apr 21, 2023

@nathaniel-palmer-simplisafe can you confirm that this is the flow you want?

  1. You're looking at a file that has quick diffs from multiple places (ex. git and pull request)
  2. You want to globally set only one of these to show in the gutter (ex. just pull request)
  3. You use the (currently non-existent feature) toggle active quick diff to only show one type of quick diff
  4. Now you want to see all quick diffs again, so use the feature to toggle all quick diffs back on

@nathaniel-palmer-simplisafe
Copy link
Author

@alexr00 Yes

@alexr00
Copy link
Member

alexr00 commented Apr 24, 2023

Opened microsoft/vscode#180691

@meganrogge
Copy link
Contributor

Where are the quickDiffs shown?

@meganrogge meganrogge added the verification-steps-needed Steps to verify are needed for verification label Apr 27, 2023
@alexr00
Copy link
Member

alexr00 commented Apr 28, 2023

This is a quick diff:
image

To verify:

  • Install the pre-release version of this extension
  • Open a GitHub repo in VS Code
  • Check out a pull request
  • Open a file from the pull request not in a diff editor
  • Make a change in the file so that you have git quick diffs
  • Set "githubPullRequests.quickDiff": false
  • Set "githubPullRequests.experimental.quickDiff": true
  • Verify that you only git quick diffs and no GitHub Pull Request quick diffs

@alexr00 alexr00 removed the verification-steps-needed Steps to verify are needed for verification label Apr 28, 2023
@ulugbekna ulugbekna added the verified Verification succeeded label Apr 28, 2023
@ulugbekna
Copy link

@alexr00 Just a heads up: the settings changes related to quickdiffs aren't picked up without reloading the vscode window

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants