Skip to content

Commit de25df7

Browse files
committed
Install ms-python.python for E2E/integration tests
Now that we use inspect() for useEnvironmentsExtension check, the default value from Python extension's package.json is ignored. This lets us safely install ms-python.python which bundles the pet binary needed for native Python environment discovery.
1 parent e465e3c commit de25df7

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.vscode-test.mjs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ export default defineConfig([
4141
`--user-data-dir=${userDataDir}`,
4242
'--disable-workspace-trust',
4343
],
44-
// NOTE: Do NOT install ms-python.python!
45-
// It defines python.useEnvironmentsExtension=false by default.
44+
// Install ms-python.python for the native Python tools (pet binary).
45+
// We use inspect() for useEnvironmentsExtension check, so defaults are ignored.
46+
installExtensions: ['ms-python.python'],
4647
},
4748
{
4849
label: 'integrationTests',
@@ -59,8 +60,9 @@ export default defineConfig([
5960
`--user-data-dir=${userDataDir}`,
6061
'--disable-workspace-trust',
6162
],
62-
// NOTE: Do NOT install ms-python.python!
63-
// It defines python.useEnvironmentsExtension=false by default.
63+
// Install ms-python.python for the native Python tools (pet binary).
64+
// We use inspect() for useEnvironmentsExtension check, so defaults are ignored.
65+
installExtensions: ['ms-python.python'],
6466
},
6567
{
6668
label: 'extensionTests',

0 commit comments

Comments
 (0)