-
Notifications
You must be signed in to change notification settings - Fork 30k
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
onDidExecuteTerminalCommand
does not fire events for hidden terminal
#199611
Comments
@Tyriar @meganrogge Any idea where the issue could be here? We require this to start leveraging #145234. |
This is by design according to this: vscode/src/vs/platform/terminal/node/terminalEnvironment.ts Lines 120 to 122 in 08159ae
We tweaked the condition in #206543 to work properly on remotes, and tried to force shell integration for debug terminals here: vscode/src/vs/workbench/api/node/extHostDebugService.ts Lines 111 to 113 in 08159ae
I don't see an issue with changing hidden terminals from having shell integration, we just need to watch the incoming issues for problems. |
If we have shell integration in hidden terminals is conflicts with #197187 (comment) but I think the thinking was changed in #194819 (comment)? If you don't want env collections you must pass |
I still repro this with the following minimum repro: import * as vscode from 'vscode';
export async function activate(context: vscode.ExtensionContext) {
const terminal = vscode.window.createTerminal({
hideFromUser: true,
shellPath: '/bin/bash',
});
vscode.window.onDidExecuteTerminalCommand(e=> {
// Does not fire
vscode.window.showInformationMessage(e.commandLine ?? '');
});
terminal.sendText('echo "hello"');
} Changing to Or maybe there are other steps that should be taken? |
Reopening as your steps seem correct @TylerLeonhardt |
possible that the hidden terminal isn't yet a part of
Yes, seems like it vscode/src/vs/workbench/contrib/terminal/browser/terminalService.ts Lines 368 to 373 in 864554b
|
We should include |
Friendly ping! Looks like this issue requires some further steps to be verified. Please provide us with the steps necessary to verify this issue. |
@eleanorjboyd these steps are good |
Does this issue occur when all extensions are disabled?: Yes/No
For proposed API: #145234
Version: 1.85.0-insider (user setup)
OS: Windows_NT x64 10.0.22518
Steps to Reproduce:
hideFromUser
totrue
Same is not the case if
hideFromUser
is set tofalse
.cc/ @Tyriar
The text was updated successfully, but these errors were encountered: