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

onDidChangeTerminalShellIntegration fired twice on terminal creation without reason property #226891

Open
meganrogge opened this issue Aug 27, 2024 · 1 comment
Assignees
Labels
api bug Issue identified by VS Code Team member as probable bug terminal-shell-integration Shell integration infrastructure, command decorations, etc.
Milestone

Comments

@meganrogge
Copy link
Contributor

Testing #226655

Set a breakpoint in the terminal-shell-integration sample here:

vscode.window.onDidChangeTerminalShellIntegration(e => {
// breakpoint
}

See that it's hit twice. I'd expect it to only be hit once. I read the documentation, which indicates this is fired when any property changes. I wonder if we should have a reason on the event to make this clear?

twice.mov
@legomushroom
Copy link
Member

Was able to re-confirm the behaviour today on stable 1.96.0 so the issue is still relevant. I agree that the reason or some other property to rely on would be a great addition 👍

@legomushroom legomushroom added feature-request Request for new features or functionality polish Cleanup and polish issue terminal-shell-integration Shell integration infrastructure, command decorations, etc. labels Dec 16, 2024
@legomushroom legomushroom added this to the Backlog milestone Dec 16, 2024
@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug api and removed feature-request Request for new features or functionality polish Cleanup and polish issue labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api bug Issue identified by VS Code Team member as probable bug terminal-shell-integration Shell integration infrastructure, command decorations, etc.
Projects
None yet
Development

No branches or pull requests

3 participants