You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify Setup the Workspace by removing manual option when Python extension is installed (#2967)
* simplify setup by removing options when Python extension is installed
* refactor for readability
* remove select interpreter as option from discovery warnings
|`dvc.dvcPath`| Path or shell command to the DVC binary. Required unless Microsoft's [Python extension] is installed and the `dvc` package found in its environment. |
152
-
|`dvc.pythonPath`| Path to the desired Python interpreter to use with DVC. Required when using a virtual environment. |
153
-
|`dvc.experimentsTableHeadMaxHeight`| Maximum height of experiment table head rows. |
154
-
|`dvc.doNotShowWalkthroughAfterInstall`| Do not prompt to show the Get Started page after installing. Useful for pre-configured development environments |
155
-
|`dvc.doNotRecommendRedHatExtension`| Do not prompt to install the Red Hat YAML extension, which helps with DVC YAML schema validation (`dvc.yaml` and `.dvc` files). |
156
-
|`dvc.doNotShowCliUnavailable`| Do not warn when the workspace contains a DVC project but the DVC binary is unavailable. |
157
-
|`dvc.doNotShowUnableToFilter`| Do not warn before disabling auto-apply filters when these would result in too many experiments being selected. |
|`dvc.dvcPath`| Path or shell command to the DVC binary. Required unless Microsoft's [Python extension] is installed and the `dvc` package found in its environment. |
152
+
|`dvc.pythonPath`| Path to the desired Python interpreter to use with DVC. Should only be utilized when using a virtual environment without Microsoft's [Python extension].|
153
+
|`dvc.experimentsTableHeadMaxHeight`| Maximum height of experiment table head rows. |
154
+
|`dvc.doNotShowWalkthroughAfterInstall`| Do not prompt to show the Get Started page after installing. Useful for pre-configured development environments |
155
+
|`dvc.doNotRecommendRedHatExtension`| Do not prompt to install the Red Hat YAML extension, which helps with DVC YAML schema validation (`dvc.yaml` and `.dvc` files). |
156
+
|`dvc.doNotShowCliUnavailable`| Do not warn when the workspace contains a DVC project but the DVC binary is unavailable. |
157
+
|`dvc.doNotShowUnableToFilter`| Do not warn before disabling auto-apply filters when these would result in too many experiments being selected. |
158
158
159
159
> **Note** that the `Setup The Workspace` command helps you set up the basic
160
160
> ones at the [Workspace level] (saved to `.vscode/setting.json`).
it("should set the dvc path option to the entered value if there is a virtual environment that doesn't include a CLI and there is no global option",async()=>{
it("should set the dvc path option to the picked file's path if there is a virtual environment that doesn't include a CLI and there is no global option",async()=>{
it("should set the python and dvc path options to the picked file's path if there is a virtual environment that doesn't include a CLI and there is no global option",async()=>{
it('should try to select the python interpreter if the workspace contains a DVC project, the cli cannot be found and the user decides to select the python interpreter',async()=>{
`The extension is unable to initialize. The CLI was not located using the interpreter provided by the Python extension. ${belowMinVersion} is installed globally. For auto Python environment activation, ensure the correct interpreter is set. Active Python interpreter: ${mockedPythonPath}.`,
`The extension is unable to initialize. The CLI was not located using the interpreter provided by the Python extension. The CLI is also not installed globally. For auto Python environment activation, ensure the correct interpreter is set. Active Python interpreter: ${mockedPythonPath}.`,
0 commit comments