-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Preventing Terminal Trust prompt #24770
Comments
we are using the |
To reproduce, create a workspace that is not trusted. With an external file manager, create a file inside that workspace that requests a terminal to be spawned - in my case that is a Python file, but that is likely due to something the Python extension does. When that file is opened in VSCode, the above popup always appears and no setting I have tried can silence it. |
Just following up on this briefly; is this recognized as an issue and reproducible? Do you need anything else from my end? |
What is the file that is causing the terminal to show automatically on startup? How can I reproduce that? |
You can reproduce this as follows. Create a folder that is not trusted by VSCode, I will assume this location:
Install the Python and Pylance extensions, and add the following to your VSCode settings: "extensions.supportUntrustedWorkspaces": {
"ms-python.python": {
"supported": true,
},
"ms-python.vscode-pylance": {
"supported": true,
},
} Create a file named
Open the folder in VSCode. Inside VSCode, open the file |
Ah, I see, you force override the Python extensions to run in an untrusted workspace. While we support you doing this, it is not a supported flow. This is a feature request on the python extensions to support untrusted workspaces and live with some features disabled. @luabud @karthiknadig |
@sbatten Python extension already supports running in untrusted workspace to provide completions, features like code execution, Testing, REPL, etc are disabled in this mode. I think the user ask here is about the popups and notifications from core when opening untrusted workspaces. |
That is correct. |
Just checking in, are there any updates here? Should I do something? |
@karthiknadig if you support running in an untrusted mode, then I don't think you should be auto-triggering any actions which require workspace trust. That seems to be the cause of the dialogs. |
Dear @karthiknadig, as explained here, this happens as soon as I open a Python file. |
I apologize for missing that. Moving this to Python repo for further investigation. |
System
Description
When I open some files in an untrusted workspace, the following banner pops up:
Transcribed for searchability:
I would like to request the ability to disable this pop-up. To clarify, I very much want to keep the workspace untrusted and I very much want to prevent the creation of a terminal session, I just don't want to be prompted about it. I have the following settings enabled already:
but neither achieves the desired result.
In a recent session, this banner actually became a potential security risk; as I had assumed to be rid of the banner, I started typing immediately after opening the file. I happened to press Space in the exact moment that this banner popped up, confirming the default selection to trust the workspace, which was absolutely not what I intended.
The text was updated successfully, but these errors were encountered: