Skip to content

Commit 79314bd

Browse files
authored
Don't show create env in diff editor (#20999)
For https://github.com/microsoft/vscode-python/issues/20992
1 parent b1b8316 commit 79314bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,12 +1693,12 @@
16931693
{
16941694
"group": "Python",
16951695
"command": "python.createEnvironment",
1696-
"when": "resourceLangId == pip-requirements && !virtualWorkspace && shellExecutionSupported"
1696+
"when": "resourceLangId == pip-requirements && !virtualWorkspace && shellExecutionSupported && !inDiffEditor"
16971697
},
16981698
{
16991699
"group": "Python",
17001700
"command": "python.createEnvironment",
1701-
"when": "resourceFilename == pyproject.toml && pipInstallableToml && !virtualWorkspace && shellExecutionSupported"
1701+
"when": "resourceFilename == pyproject.toml && pipInstallableToml && !virtualWorkspace && shellExecutionSupported && !inDiffEditor"
17021702
}
17031703
],
17041704
"editor/context": [

0 commit comments

Comments
 (0)