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

Do not show activation notification for tasks or debug terminal #22195

Closed
roblourens opened this issue Oct 10, 2023 · 13 comments · Fixed by #22275
Closed

Do not show activation notification for tasks or debug terminal #22195

roblourens opened this issue Oct 10, 2023 · 13 comments · Fixed by #22275
Assignees
Labels
area-terminal experimenting Feature is part of an experiment feature-request Request for new features or functionality verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@roblourens
Copy link
Member

I just started seeing this randomly. I could click "don't show again" but I don't think it should be showing in my scenario. This is in my multiroot workspace that includes vscode and an extension. I'm not doing anything with python or python files. I sometimes see this when I start debugging (the "VS Code" launch config) or when I open a new terminal. If I reload the window, it stops happening, but then comes back later at some point.

image
@roblourens roblourens added the feature-request Request for new features or functionality label Oct 10, 2023
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Oct 10, 2023
@karrtikr
Copy link

We activate Python extension in the following scenarios:

image

Does any of it match with your workspace?

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Oct 11, 2023
@karrtikr
Copy link

If so, I'm not sure what can be done here, as for a Python related workspace, (Python) users expect us to activate all terminals if a virtual or conda env is selected.

@roblourens
Copy link
Member Author

I don't think the debug initial configurations one would have triggered. I will check why the extension got activated.

But when is that supposed to be shown, is it working by design if it shows up every time I start a terminal?

I noticed that it shows up when I run a task, that is probably why it showed up when I started debugging earlier. Not sure if it should show for terminal tasks? That makes it especially noisy.

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Oct 11, 2023
@karrtikr
Copy link

karrtikr commented Oct 11, 2023

Right now it is meant to be a one time informational prompt which we show everytime window.onDidOpenTerminal is fired.

We can definitely clean this up to not show up on unrelated terminals (like tasks), just let us know which of the terminals we should skip based on the Terminal object: link cc/ @Tyriar

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Oct 11, 2023
@Tyriar
Copy link
Member

Tyriar commented Oct 12, 2023

Not sure how we can target debug or task terminals, but it shouldn't be showing for terminals that don't get the collection applied which should match this if statement:

https://github.com/microsoft/vscode/blob/443f8cc0861e6a4eadd04a65d722af2c45ac3eca/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.ts#L438

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Oct 12, 2023
@karrtikr
Copy link

If we had access to tab description string:
image

we could filter task terminals using the "Tasks -" keyword:

image

@karrtikr
Copy link

I'm also happy with just showing that notification for terminals with the default profile name (like bash, zsh or other profile names), if we can access that.

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Oct 12, 2023
@roblourens
Copy link
Member Author

Right now it is meant to be a one time informational prompt

Is it supposed to show up just once per session? I've definitely seen it multiple times

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Oct 13, 2023
@karrtikr
Copy link

No, we show it every time a new terminal is created, unless "Don't show again" is clicked.

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Oct 13, 2023
@karrtikr karrtikr removed the info-needed Issue requires more information from poster label Oct 18, 2023
@karrtikr
Copy link

I've investigated and it seems like terminal.creationOptions.name is set for tasks or debug terminals, hence we can avoid showing it in those cases.

I can also change it to only show once per session in case it is still bothersome.

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Oct 21, 2023
@karrtikr karrtikr added experimenting Feature is part of an experiment area-terminal needs PR Ready to be worked on and removed info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team labels Oct 21, 2023
@karrtikr karrtikr added this to the October 2023 milestone Oct 21, 2023
@karrtikr karrtikr added the verification-needed Verification of issue is requested label Oct 21, 2023
@karrtikr karrtikr changed the title "automatically activates all terminals using the selected environment..." popup keeps showing up Do not show activation notification for tasks or debug terminal Oct 21, 2023
@github-actions github-actions bot removed the needs PR Ready to be worked on label Oct 21, 2023
@karrtikr
Copy link

karrtikr commented Oct 23, 2023

Verification steps:

  • Use pre-release
  • Use Python: Clear cache and reload window command
  • Open an empty folder, create a venv:
python -m venv .venv
  • Select it using Python: Select Interpreter
  • Select powershell or fish as default terminal
  • Opening a new terminal should display:
    image
  • Create a simple task
  • Ensure running task does not display the notification

@DonJayamanne
Copy link

DonJayamanne commented Oct 25, 2023

I'm unable to verify this as I never get the prompt.

I've tried Python: Clera cache and reload window a number of times, and other steps as well
But I never get the prompt the Selected Python env... may not be present.

Btw, I have opted into all Python experiments.
Screenshot 2023-10-25 at 13 06 39

@karrtikr
Copy link

karrtikr commented Oct 25, 2023

Apologies, try using powershell or fish as default profile and the prompt should show up when opening a new terminal. I've amended the original instructions with the same.

@dbaeumer dbaeumer added the verified Verification succeeded label Oct 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-terminal experimenting Feature is part of an experiment feature-request Request for new features or functionality verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants