diff --git a/README.md b/README.md index 814b6da9..eb45c06f 100644 --- a/README.md +++ b/README.md @@ -69,25 +69,7 @@ Tools that may rely on these APIs in their own extensions include: ### API Dependency The relationship between these extensions can be represented as follows: -```mermaid -graph TD - subgraph Language Features - B[Python Extension] - E[Pylance] - end - - subgraph Code Execution - A[Python Environments] <-. Optional .-> B - C["Linters, Formatters, Debugger"] - E -. Optional .-> B - A --> C - A <--> P - - subgraph Environment Extensions - P["Pixi, Pyenv, etc"] - end - end -``` + Users who do not need to execute code or work in **Virtual Workspaces** can use the Python extension to access language features like hover, completion, and go-to definition. However, executing code (e.g., running a debugger, linter, or formatter), creating/modifying environments, or managing packages requires the Python Environments extension to enable these functionalities. @@ -97,24 +79,7 @@ VS Code supports trust management, allowing extensions to function in either **t The relationship is illustrated below: -```mermaid -graph TD - - subgraph Handles Untrusted Code - B[Python Extension] - E[Pylance] -. Optional .-> B - end - - subgraph Only Trusted Code - A[Python Environments] <-. Optional .-> B - C["Linters, Formatters, Debugger"] - A --> C - A <--> P - subgraph Environment Extensions - P["Pixi, Pyenv, etc"] - end - end -``` + In **trusted mode**, the Python Environments extension supports tasks like managing environments, installing/removing packages, and running tools. In **untrusted mode**, functionality is limited to language features, ensuring a secure and restricted environment. diff --git a/images/extension_relationships.png b/images/extension_relationships.png new file mode 100644 index 00000000..f90ea732 Binary files /dev/null and b/images/extension_relationships.png differ diff --git a/images/trust_relationships.png b/images/trust_relationships.png new file mode 100644 index 00000000..3c98b7e4 Binary files /dev/null and b/images/trust_relationships.png differ