profile
viewpoint

Ask questionsConsidering dropping "Sort Imports" from the right-click context menu in favour of "Source Action"

Issue Type: <b>Bug</b>

When I right click the editor on a python file, this is what I get: Snipaste_2019-11-03_17-16-53

"Format Document" and "Format Document with..." seems like they can be configured to do the exact same thing. Stretching out a little bit, so can "Format Selection" when the whole file is selected.

When clicking "source actions", I get another menu open with "Sort Imports" image

However, Sort Imports is already present in the context menu. Dos this option do anything else other than "provide another way to sort imports" as of right now?

The "Run Current Test file" does not work, as I do not have any test file configured. The "Run python file in terminal" is another option which might be frustrating, and could have the same behavior as "Run Selection/Line in terminal".

Extension version: 2019.10.44104 VS Code version: Code 1.39.2 (6ab598523be7a800d7f3eb4d92d7ab9a66069390, 2019-10-15T15:35:18.241Z) OS version: Windows_NT x64 10.0.18362

<details> <summary>System Info</summary>

Item Value
CPUs Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1800)
GPU Status 2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>native_gpu_memory_buffers: disabled_software<br>oop_rasterization: disabled_off<br>protected_video_decode: enabled<br>rasterization: enabled<br>skia_deferred_display_list: disabled_off<br>skia_renderer: disabled_off<br>surface_synchronization: enabled_on<br>video_decode: enabled<br>viz_display_compositor: disabled_off<br>webgl: enabled<br>webgl2: enabled
Load (avg) undefined
Memory (System) 7.89GB (1.81GB free)
Process Argv C:\xxx_lab_07.py
Screen Reader no
VM 0%

</details> <!-- generated by issue reporter -->

microsoft/vscode-python

Answer questions karrtikr

Closing in favor of https://github.com/microsoft/vscode-python/issues/10337

useful!

Related questions

Auto Scroll in the Jupyter output hot 3
Workspace contains pipfile but pipenv --venv failed hot 2
Can you turn off the Microsoft Python Language Server? hot 2
Unable to debug Python tests (duplicate entries in &#34;env&#34;) hot 2
Jupyter server crashed. Unable to connect. Cannot assign requested address hot 2
Auto Scroll in the Jupyter output hot 2
Unable to run launch targets with newest VS Code Python extension hot 2
Unable to start jupyter python interactive window hot 1
HBox output is not shown correctly in the interactive window hot 1
Debug -> Add Debug Configuration 'Cannot read property openConfigFile' hot 1
VSCode cannot connect to jupyter server; with browser this works fine hot 1
Linux arm64/aarch64 support hot 1
Add setting to disable icon for "Run Python File In Terminal" hot 1
Extension Host keeps crashing hot 1
Activate environment before debugging tests hot 1
Github User Rank List