microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.19k stars 29.29k forks source link

Problems view with "Show Active File Only" filter needs tab switch to refresh #213990

Open rompe opened 5 months ago

rompe commented 5 months ago

Type: Bug

  1. Open two files, one with warnings, one without
  2. Switch to the tab without warnings
  3. Activate PROBLEMS view, click More filters, activate Show Active File Only
  4. Activate TERMINAL view
  5. Switch to editor tab containing warnings
  6. Activate PROBLEMS view -> No warnings are shown!
  7. Switch to other editor tab and back to the one with warnings -> Warnings are shown!

This happens on Linux and on Windows.

I'm doing this tab switch limbo several times a day, but I begin to think that this might be a bug and not a design decision.

VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:13:33.891Z) OS version: Windows_NT x64 10.0.22621 Modes: Remote OS version: Linux x64 4.18.0-513.24.1.el8_9.x86_64

System Info |Item|Value| |---|---| |CPUs|Intel(R) Xeon(R) w3-2423 (12 x 2112)| |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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.25GB (1.37GB free)| |Process Argv|--folder-uri file:///c%3A/Users/URP/local/src/tools| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|SSH: xyz| |OS|Linux x64 4.18.0-513.24.1.el8_9.x86_64| |CPUs|Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz (4 x 2992)| |Memory (System)|15.38GB (12.42GB free)| |VM|100%|
Extensions (58) Extension|Author (truncated)|Version ---|---|--- TabOut|alb|0.2.2 Bookmarks|ale|13.5.0 jump-to-test|bla|0.0.4 ruff|cha|2024.22.0 gitignore|cod|0.9.0 vscode-zonefile|Com|0.0.4 systemd-unit-file|coo|1.0.6 vscode-markdownlint|Dav|0.55.0 githistory|don|0.6.20 gitlens|eam|15.0.4 EditorConfig|Edi|0.16.4 vsc-material-theme|Equ|34.3.1 vsc-material-theme-icons|equ|3.6.0 gitlab-workflow|Git|4.14.0 vscode-peacock|joh|4.2.2 python-resource-monitor|kai|0.2.3 kubernetes-yaml-formatter|ken|1.1.0 vsc-python-indent|Kev|1.18.0 vscode-docker|ms-|1.29.1 vscode-kubernetes-tools|ms-|1.3.16 autopep8|ms-|2024.0.0 black-formatter|ms-|2024.2.0 debugpy|ms-|2024.7.11371017 flake8|ms-|2023.13.11511011 isort|ms-|2023.10.1 mypy-type-checker|ms-|2023.9.11501016 pylint|ms-|2023.11.13481007 python|ms-|2024.6.0 vscode-pylance|ms-|2024.5.1 jupyter|ms-|2024.4.0 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 vscode-jupyter-cell-tags|ms-|0.1.9 vscode-jupyter-slideshow|ms-|0.1.6 remote-containers|ms-|0.362.0 remote-ssh|ms-|0.110.1 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.88.2 cpptools|ms-|1.20.5 remote-explorer|ms-|0.4.3 vscode-print|pdc|0.11.28 material-icon-theme|PKi|5.3.0 ansible|red|24.5.2 vscode-commons|red|0.0.6 vscode-yaml|red|1.14.0 trailing-spaces|sha|0.4.1 markdown-preview-enhanced|shd|0.8.13 even-better-toml|tam|0.19.2 ayu|tea|1.0.5 python-docs-opener|Tho|1.1.1 nagios|tml|1.1.0 vscode-icons|vsc|12.7.0 jinja|who|0.0.8 ansible-vault-inline|wol|0.4.0 markdown-all-in-one|yzh|3.6.2 material-theme|zhu|3.17.2 vscode-open-in-github|ziy|1.3.6 (14 theme extensions excluded)
sandy081 commented 4 months ago

It seems to work for me. Can you please provide a sample set up that can show this problem?

Image