-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Terminal shell integration events not firing #248019
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
Comments
The command itself is executed just fine btw, it's just that the event that it did finish is not sent. |
Thanks for the info - If this is a confirmed regression, it would help to know which change caused it. We maintain a node.js based CLI tool Steps:
Thanks! |
|
Thanks, I'm suspicious of this a10f30d in that commit range |
which shell are you using? |
Oh, I see pwsh in your logs |
Yeah, powershell, I tried both with |
@roblourens this could explain some peoples' issues with the chat agent terminals not working as expected |
Works on insider's when I use:
|
I tried this on macOS, not sure why it would be different for windows, will try there too. |
Not sure why it doesn't reproduce on your end, but it definitely seems to be caused by a10f30d: I found that file locally at |
Did some debugging, looks like
false for me, thus $Global:__VSCodeIsInExecution is never set, and this
|
Not an expert in powershell, but if I just open it and check for
|
Nice debugging, unless you use a screen reader, that should be enabled by default. |
I don't, no idea why it behaves like that for me, or how widespread that might be for others. Gonna ask some colleagues with Windows to see how it works for them. |
Hah, actually, it does think I'm using a screen reader:
Never paid attention to that. Wonder why it thinks that. But definitely something on my side then. |
I had |
Type: Bug
The
onDidStartTerminalShellExecution
andonDidEndTerminalShellExecution
never fire at all in 1.99.3. It works fine in 1.98.2.Here's a basic Hello World extension executing a terminal command, based on the example from API docs (https://code.visualstudio.com/api/references/vscode-api#TerminalShellIntegration):
Based on the debug output, the start/end events never fire at all:
Same on insiders.
On 1.98.2 it works as expected:
VS Code version: Code 1.99.3 (17baf84, 2025-04-15T23:18:46.076Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
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
webnn: disabled_off
Extensions (10)
A/B Experiments
The text was updated successfully, but these errors were encountered: