Skip to content

Trigger workspace trust prompt when running commands in an untrusted workspace #20153

@luabud

Description

@luabud

These are the commands that we think should invoke the "trust this workspace" prompt:

  • Run and debug python file from the top-right icon/play button
  • Python: Select Interpreter
  • Python: Run Linting
  • Python: Create Environment *currently creates but does not select
  • Python: Report Issue*
  • Python: Enable/Disable Linting
  • Python: Sort Imports
  • Python: Configure Tests
  • Python: Create Terminal
  • Python: Debug Python File (should be covered by the icon)
  • Python: Launch Tensorboard
  • Python: Start REPL
  • Python: Run Selection/Line in Python Terminal
  • Python: Select Linter
  • Refresh in Test Explorer (issue needed from VS Code side)

Commands to hide in untrusted:

  • Python Run Selection/Line in Django Shell
  • Python: Clear Cache and Reload Window
  • Python Clear Workspace and Interpreter Setting
  • Python: Enable Source Map Support for Extension Debugging
  • Show all automatic debug configurations --> Python (we are not offering anything in untrusted mode)

Commands that should work under untrusted mode:

  • Python: Show Output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-editor-*User-facing catch-alldebtCovers everything internal: CI, testing, refactoring of the codebase, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions