Repository: vscode
Issue: Code action not working even though command is invoked
Labels: bug,editor-code-actions

Type: <b>Bug</b>

Even though this problem happens with our Python related extensions, I don't think it's something related to them control as the commands seem to be triggered properly 🤔

Repro steps:

1. Install the pre-release versions of our Python, Pylint and isort extensions
1. Create a new Python file with `import os, sys` and save it (e.g. `hello.py`)
1. When all the extensions activate, you will see a few warnings over that line and quick fixes:
![image](https://user-images.githubusercontent.com/45497113/217356234-867d6cba-21fb-4417-a728-0b258b84a12c.png)
1. Select `Pylint: Run organize imports`

Nothing happens. Now if you run the Organize Imports command from the command palette, it works as expected. The problem is the Pylint extension seems to be triggering the right command, if you open the Developer Tools it shows the right command was triggered:

![image](https://user-images.githubusercontent.com/45497113/217357493-512ba61a-5f9a-4626-bbd7-14643e2af6ff.png)


These are the logs for when the organize imports command is run:

![image](https://user-images.githubusercontent.com/45497113/217358111-f051c41e-1dfe-4ab9-a5e7-9fb54e87defa.png)



VS Code version: Code - Insiders 1.76.0-insider (25514d899f4bd877803defb213719f8af3d997d3, 2023-02-07T05:22:19.428Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: Yes

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 2995)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|undefined|
|Memory (System)|31.71GB (15.09GB free)|
|Process Argv|--user-data-dir nonexisting3232 --extensions-dir nonexisting3232/extfolder --crash-reporter-id 11494669-52ca-4f2c-aa0e-29172189cc8e|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (10)</summary>

Extension|Author (truncated)|Version
---|---|---
isort|ms-|2023.9.10371012
pylint|ms-|2023.1.10381730
python|ms-|2023.3.10381854
vscode-pylance|ms-|2023.2.13
jupyter|ms-|2023.2.1000391021
jupyter-keymap|ms-|1.0.0
jupyter-renderers|ms-|1.0.14
vscode-jupyter-cell-tags|ms-|0.1.6
vscode-jupyter-slideshow|ms-|0.1.5
cpptools|ms-|1.14.1


</details><details>
<summary>A/B Experiments</summary>

```
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30422396
pythontb:30258533
vsc_aa:30263845
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscod805:30301674
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30404738
cppdebug:30492333
vsclangdf:30492506
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30618038
pylantcb52:30590116
pyindex848:30611229
nodejswelcome1:30587009
pyind779:30611226
pythonsymbol12:30651887
2i9eh265:30646982
showlangstatbar:30657381

```

</details>

<!-- generated by issue reporter -->