Skip to content

Commit fa1e2af

Browse files
committed
Set SI to enabled in integration tests
1 parent 6162e45 commit fa1e2af

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

extensions/vscode-api-tests/src/singlefolder-tests/terminal.shellIntegration.test.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,23 @@
55

66
import { deepStrictEqual, notStrictEqual, ok, strictEqual } from 'assert';
77
import { platform } from 'os';
8-
import { env, TerminalShellExecutionCommandLineConfidence, UIKind, window, type Disposable, type Terminal, type TerminalShellExecution, type TerminalShellExecutionCommandLine, type TerminalShellExecutionEndEvent, type TerminalShellIntegration } from 'vscode';
8+
import { env, TerminalShellExecutionCommandLineConfidence, UIKind, window, workspace, type Disposable, type Terminal, type TerminalShellExecution, type TerminalShellExecutionCommandLine, type TerminalShellExecutionEndEvent, type TerminalShellIntegration } from 'vscode';
99
import { assertNoRpc } from '../utils';
1010

11-
// Disable terminal tests:
12-
// - Web https://github.com/microsoft/vscode/issues/92826
11+
// Terminal integration tests are disabled on web https://github.com/microsoft/vscode/issues/92826
1312
(env.uiKind === UIKind.Web ? suite.skip : suite)('vscode API - Terminal.shellIntegration', () => {
1413
const disposables: Disposable[] = [];
1514

15+
suiteSetup(async () => {
16+
const config = workspace.getConfiguration('terminal.integrated');
17+
await config.update('shellIntegration.enabled', true);
18+
});
19+
20+
suiteTeardown(async () => {
21+
const config = workspace.getConfiguration('terminal.integrated');
22+
await config.update('shellIntegration.enabled', undefined);
23+
});
24+
1625
teardown(async () => {
1726
assertNoRpc();
1827
disposables.forEach(d => d.dispose());

0 commit comments

Comments
 (0)