Skip to content

Commit 4a2a5d0

Browse files
committed
stop complaining about unknown import
1 parent 12f7b3e commit 4a2a5d0

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

src/test/smokeTest.ts

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// Must always be on top to setup expected env.
77
process.env.VSC_PYTHON_SMOKE_TEST = '1';
8-
import * as vscode from 'vscode';
8+
import { workspace, ConfigurationTarget } from 'vscode';
99
import { spawn } from 'child_process';
1010
import * as fs from '../client/common/platform/fs-paths';
1111
import * as glob from 'glob';
@@ -47,18 +47,10 @@ class TestRunner {
4747
);
4848
}
4949
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);
6254

6355
console.log('Launch tests in test runner');
6456
await new Promise<void>((resolve, reject) => {

0 commit comments

Comments
 (0)