Skip to content

Commit 6afa17c

Browse files
authored
chore: allow debugging vscode tests (#4731)
1 parent 660be25 commit 6afa17c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

tooling/vscode/settings.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,15 @@
1313
"vscode/react/dist": true
1414
},
1515
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
16-
"typescript.tsc.autoDetect": "off"
16+
"typescript.tsc.autoDetect": "off",
17+
// Playwright configuration
18+
// Python configuration to ensure consistent environment
19+
"python.defaultInterpreterPath": "${env:VIRTUAL_ENV}/bin/python",
20+
"python.terminal.activateEnvironment": true,
21+
"terminal.integrated.env.osx": {
22+
"PATH": "${env:VIRTUAL_ENV}/bin:${env:PATH}"
23+
},
24+
"terminal.integrated.env.linux": {
25+
"PATH": "${env:VIRTUAL_ENV}/bin:${env:PATH}"
26+
}
1727
}

vscode/extension/tests/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { _electron as electron, Page } from '@playwright/test'
55

66
// Absolute path to the VS Code executable you downloaded in step 1.
77
export const VS_CODE_EXE = fs.readJsonSync(
8-
'.vscode-test/paths.json',
8+
path.join(__dirname, '..', '.vscode-test', 'paths.json'),
99
).executablePath
1010
// Where your extension lives on disk
1111
export const EXT_PATH = path.resolve(__dirname, '..')

0 commit comments

Comments
 (0)