Skip to content

Commit

Permalink
stop complaining about unknown import
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonykim1 committed Oct 31, 2024
1 parent 12f7b3e commit 4a2a5d0
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions src/test/smokeTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

// Must always be on top to setup expected env.
process.env.VSC_PYTHON_SMOKE_TEST = '1';
import * as vscode from 'vscode';
import { workspace, ConfigurationTarget } from 'vscode';
import { spawn } from 'child_process';
import * as fs from '../client/common/platform/fs-paths';
import * as glob from 'glob';
Expand Down Expand Up @@ -47,18 +47,10 @@ class TestRunner {
);
}
private async launchTest(customEnvVars: Record<string, {}>) {
const configurationTerminal = vscode.workspace.getConfiguration('terminal');
await configurationTerminal.update('integrated.defaultProfile.osx', 'pwsh', vscode.ConfigurationTarget.Global);
await configurationTerminal.update(
'integrated.defaultProfile.linux',
'pwsh',
vscode.ConfigurationTarget.Global,
);
await configurationTerminal.update(
'integrated.defaultProfile.windows',
'pwsh',
vscode.ConfigurationTarget.Global,
);
const configurationTerminal = workspace.getConfiguration('terminal');
await configurationTerminal.update('integrated.defaultProfile.osx', 'pwsh', ConfigurationTarget.Global);
await configurationTerminal.update('integrated.defaultProfile.linux', 'pwsh', ConfigurationTarget.Global);
await configurationTerminal.update('integrated.defaultProfile.windows', 'pwsh', ConfigurationTarget.Global);

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

0 comments on commit 4a2a5d0

Please sign in to comment.