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

Testing side bar loses focus when running tests #18913

Closed
brettcannon opened this issue Apr 12, 2022 · 5 comments
Closed

Testing side bar loses focus when running tests #18913

brettcannon opened this issue Apr 12, 2022 · 5 comments
Assignees
Labels
area-testing bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team

Comments

@brettcannon
Copy link
Member

brettcannon commented Apr 12, 2022

Issue Type: Bug

Behaviour

screen-capture

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.10
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Pylance
User Settings


defaultLS: {"defaultLSType":"Pylance"}

downloadLanguageServer: true

envFile: "<placeholder>"

venvPath: "<placeholder>"

venvFolders: "<placeholder>"

condaPath: "<placeholder>"

pipenvPath: "<placeholder>"

poetryPath: "<placeholder>"

languageServer: "Pylance"

linting
• enabled: true
• cwd: "<placeholder>"
• Flake8Args: "<placeholder>"
• flake8Enabled: false
• flake8Path: "<placeholder>"
• lintOnSave: true
• banditArgs: "<placeholder>"
• banditEnabled: false
• banditPath: "<placeholder>"
• mypyArgs: "<placeholder>"
• mypyEnabled: false
• mypyPath: "<placeholder>"
• pycodestyleArgs: "<placeholder>"
• pycodestyleEnabled: false
• pycodestylePath: "<placeholder>"
• prospectorArgs: "<placeholder>"
• prospectorEnabled: false
• prospectorPath: "<placeholder>"
• pydocstyleArgs: "<placeholder>"
• pydocstyleEnabled: false
• pydocstylePath: "<placeholder>"
• pylamaArgs: "<placeholder>"
• pylamaEnabled: false
• pylamaPath: "<placeholder>"
• pylintArgs: "<placeholder>"
• pylintPath: "<placeholder>"

sortImports
• args: "<placeholder>"
• path: "<placeholder>"

formatting
• autopep8Args: "<placeholder>"
• autopep8Path: "<placeholder>"
• provider: "black"
• blackArgs: "<placeholder>"
• blackPath: "<placeholder>"
• yapfArgs: "<placeholder>"
• yapfPath: "<placeholder>"

testing
• cwd: "<placeholder>"
• debugPort: 3000
• nosetestArgs: "<placeholder>"
• nosetestsEnabled: undefined
• nosetestPath: "<placeholder>"
• promptToConfigure: true
• pytestArgs: "<placeholder>"
• pytestEnabled: true
• pytestPath: "<placeholder>"
• unittestArgs: "<placeholder>"
• unittestEnabled: false
• autoTestDiscoverOnSaveEnabled: true

terminal
• activateEnvironment: true
• executeInFileDir: "<placeholder>"
• launchArgs: "<placeholder>"

experiments
• enabled: true
• optInto: []
• optOutFrom: []

tensorBoard
• logDirectory: "<placeholder>"

Extension version: 2022.5.11021002
VS Code version: Code 1.66.0 (e18005f0f1b33c29e81d732535d8c0e47cafb0b5, 2022-03-30T05:50:14.623Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No
Remote OS version: Linux x64 5.4.0-1074-azure

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz (8 x 2112)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
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
Load (avg) undefined
Memory (System) 15.75GB (3.76GB free)
Process Argv --open-url --crash-reporter-id 19743aef-efc8-4a9b-8cc2-b4f978f2e564 -- vscode://github.codespaces/connect?name=brettcannon-wwbd-97vr992g55
Screen Reader no
VM 0%
Item Value
Remote Codespaces
OS Linux x64 5.4.0-1074-azure
CPUs Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz (4 x 2593)
Memory (System) 7.77GB (0.33GB free)
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
pythonvspyl392:30443607
pythontb:30283811
pythonvspyt551:30345470
pythonptprofiler:30281270
vsdfh931:30280409
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
pythonvsnew555:30457759
vscscmwlcmt:30465135
vscaat:30438848
pynewfile477:30463512

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Apr 12, 2022
@BlackZork
Copy link

BlackZork commented Apr 13, 2022

In my case "Testing" icon was gone after upgrade and I have manually drag "Test explorer" from "Explorer" panel onto sidebar.
After that, side bar was automatically switching to Explorer panel when running tests from icon near line number or from test tree - exactly as reported.

I resolved this problem by right clicking on "Testing" sidebar icon, and then selecting "Reset location".

I had this problem upgrading from 1.58.0 to 1.66.0 (and removing Test Explorer UI extension with python adapter), but not when upgrading from 1.63.2 to 1.66.0

@karthiknadig karthiknadig added bug Issue identified by VS Code Team member as probable bug area-testing triage and removed triage-needed Needs assignment to the proper sub-team labels Apr 13, 2022
@kimadeline kimadeline removed their assignment Apr 13, 2022
@karthiknadig karthiknadig added triage-needed Needs assignment to the proper sub-team and removed triage labels May 4, 2022
@gilesknap
Copy link

I had this problem on upgrade to 1.68 from 1.64. The file explorer took the focus when starting tests from test explorer.

I can confirm that @BlackZork 's fix using Reset Location worked for me too.

@karthiknadig
Copy link
Member

This doesn't seem to be happening in the latest builds of VS Code, the behavior itself was likely an issue in the Test UI in core. Please let us know if this happens again.

@nortakales
Copy link

nortakales commented Sep 22, 2022

This is still happening in VSCode 1.71.2 with Test Runner for Java v0.37.1.

However, the solution above ("reset location") does fix the issue.

@karthiknadig
Copy link
Member

@nortakales If this is happening on Java please file it on the Jave extension. the issue with the UI itself should be filed on VS Code.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

6 participants