|
5 | 5 |
|
6 | 6 | // Must always be on top to setup expected env. |
7 | 7 | process.env.VSC_PYTHON_SMOKE_TEST = '1'; |
8 | | -import * as vscode from 'vscode'; |
| 8 | +import { workspace, ConfigurationTarget } from 'vscode'; |
9 | 9 | import { spawn } from 'child_process'; |
10 | 10 | import * as fs from '../client/common/platform/fs-paths'; |
11 | 11 | import * as glob from 'glob'; |
@@ -47,18 +47,10 @@ class TestRunner { |
47 | 47 | ); |
48 | 48 | } |
49 | 49 | private async launchTest(customEnvVars: Record<string, {}>) { |
50 | | - const configurationTerminal = vscode.workspace.getConfiguration('terminal'); |
51 | | - await configurationTerminal.update('integrated.defaultProfile.osx', 'pwsh', vscode.ConfigurationTarget.Global); |
52 | | - await configurationTerminal.update( |
53 | | - 'integrated.defaultProfile.linux', |
54 | | - 'pwsh', |
55 | | - vscode.ConfigurationTarget.Global, |
56 | | - ); |
57 | | - await configurationTerminal.update( |
58 | | - 'integrated.defaultProfile.windows', |
59 | | - 'pwsh', |
60 | | - vscode.ConfigurationTarget.Global, |
61 | | - ); |
| 50 | + const configurationTerminal = workspace.getConfiguration('terminal'); |
| 51 | + await configurationTerminal.update('integrated.defaultProfile.osx', 'pwsh', ConfigurationTarget.Global); |
| 52 | + await configurationTerminal.update('integrated.defaultProfile.linux', 'pwsh', ConfigurationTarget.Global); |
| 53 | + await configurationTerminal.update('integrated.defaultProfile.windows', 'pwsh', ConfigurationTarget.Global); |
62 | 54 |
|
63 | 55 | console.log('Launch tests in test runner'); |
64 | 56 | await new Promise<void>((resolve, reject) => { |
|
0 commit comments