Skip to content

Success/Fail Test Checkmark Reference wrong after Command-Z is used. #23385

Open

Description

@justin-noyo

Type: Bug

  1. Add a python test
  2. run tests
  3. See Checkmark
  4. Delete code
  5. Run tests
  6. put code back with cmd-z (undo command)
  7. Notce green/red checkmark test reference is wrong

VS Code version: Code 1.88.1 (e170252f762678dec6ca2cc69aba1570769a5d39, 2024-04-10T17:43:08.196Z)
OS version: Darwin arm64 23.1.0
Modes:
Connection to 'dev-container+7b22686f737450617468223a222f55736572732f6a757374696e7a6f6c6c6172732f6861636b2f66756c66696c6c6d656e742d706970656c696e65222c226c6f63616c446f636b6572223a66616c73652c2273657474696e6773223a7b22636f6e74657874223a226465736b746f702d6c696e7578227d2c22636f6e66696746696c65223a7b22246d6964223a312c22667350617468223a222f55736572732f6a757374696e7a6f6c6c6172732f6861636b2f66756c66696c6c6d656e742d706970656c696e652f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c2265787465726e616c223a2266696c653a2f2f2f55736572732f6a757374696e7a6f6c6c6172732f6861636b2f66756c66696c6c6d656e742d706970656c696e652f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c2270617468223a222f55736572732f6a757374696e7a6f6c6c6172732f6861636b2f66756c66696c6c6d656e742d706970656c696e652f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c22736368656d65223a2266696c65227d7d' could not be established
Remote OS version: Linux arm64 6.6.16-linuxkit

System Info
Item Value
CPUs Apple M3 Pro (11 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 3, 3, 3
Memory (System) 36.00GB (0.21GB free)
Process Argv --crash-reporter-id 525be2f3-acf6-47fd-9a40-9c99141ca277
Screen Reader no
VM 0%

Connection to 'dev-container+7b22686f737450617468223a222f55736572732f6a757374696e7a6f6c6c6172732f6861636b2f66756c66696c6c6d656e742d706970656c696e65222c226c6f63616c446f636b6572223a66616c73652c2273657474696e6773223a7b22636f6e74657874223a226465736b746f702d6c696e7578227d2c22636f6e66696746696c65223a7b22246d6964223a312c22667350617468223a222f55736572732f6a757374696e7a6f6c6c6172732f6861636b2f66756c66696c6c6d656e742d706970656c696e652f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c2265787465726e616c223a2266696c653a2f2f2f55736572732f6a757374696e7a6f6c6c6172732f6861636b2f66756c66696c6c6d656e742d706970656c696e652f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c2270617468223a222f55736572732f6a757374696e7a6f6c6c6172732f6861636b2f66756c66696c6c6d656e742d706970656c696e652f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c22736368656d65223a2266696c65227d7d' could not be established

Item Value
Remote Dev Container: fulfillment @ desktop-linux
OS Linux arm64 6.6.16-linuxkit
CPUs unknown (8 x 0)
Memory (System) 17.54GB (7.34GB free)
VM 0%
Extensions (9)
Extension Author (truncated) Version
remote-containers ms- 0.362.0
gitlens eam 14.9.1
vscode-docker ms- 1.29.1
black-formatter ms- 2024.2.0
debugpy ms- 2024.6.0
flake8 ms- 2023.10.0
python ms- 2024.4.1
vscode-pylance ms- 2024.5.1
reveal smu 1.2.7
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:31000449
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
ccp1r6:30993540
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
bdiig495:31013172
fchga941:31038042
dwnewjupytercf:31039676

Activity

  1. vscodenpa commented on May 7, 2024

    @vscodenpa

    Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.89.0. Please try upgrading to the latest version and checking whether this issue remains.

    Happy Coding!

  2. eleanorjboyd commented on May 8, 2024

    @eleanorjboyd
    Member

    will take a look at this soon- thanks for the bug report!

  3. justin-noyo commented on May 8, 2024

    @justin-noyo
    Author

    Screenshot 2024-05-08 at 11 12 27 AM

    Thanks and for reference thats what I see.

  4. eleanorjboyd commented on Jun 26, 2024

    @eleanorjboyd
    Member

    Connor Peet (@connor4312) do you have an idea on this? Not sure if core handles the Control+Z flow

  5. connor4312 commented on Jun 26, 2024

    @connor4312
    Member

    Decorations are tracked using the default editor logic which is best-effort. It's expected though that extensions update the location and presence of their tests eventually which will reset the decoration positions based on what the extension tells us. I would expect the Python extension would do that after modifications to the file.

  6. eleanorjboyd commented on Sep 23, 2026

    @eleanorjboyd
    Member

    🤖 Thanks for the report and screenshot. Could you confirm whether this still reproduces with the latest VS Code and Python extension, and whether saving the file after undo and waiting for test discovery to finish corrects the checkmark? If it remains, please include a minimal test file, the exact save/run sequence, and the Python output-channel logs covering discovery after the undo. This issue will automatically close after 30 days if no additional information is provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-testingbugIssue identified by VS Code Team member as probable bugconfirmation pendingThe issue needs to be confirmed through a maintainer reproducing the bug.info-neededIssue requires more information from poster

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions