Revert "Implement proposed TerminalState.isShellIntegrationActivated"

This commit is contained in:
Daniel Imms
2024-03-12 10:06:36 -07:00
committed by GitHub
parent a5d5f358ad
commit 490db24926
6 changed files with 5 additions and 56 deletions

View File

@@ -233,10 +233,7 @@ import { assertNoRpc, poll } from '../utils';
test('onDidChangeTerminalState should fire after writing to a terminal', async () => {
const terminal = window.createTerminal();
deepStrictEqual(terminal.state, {
isInteractedWith: false,
isShellIntegrationActivated: false
});
deepStrictEqual(terminal.state, { isInteractedWith: false });
const eventState = await new Promise<TerminalState>(r => {
disposables.push(window.onDidChangeTerminalState(e => {
if (e === terminal) {
@@ -245,8 +242,8 @@ import { assertNoRpc, poll } from '../utils';
}));
terminal.sendText('test');
});
strictEqual(eventState.isInteractedWith, true);
strictEqual(terminal.state.isInteractedWith, true);
deepStrictEqual(eventState, { isInteractedWith: true });
deepStrictEqual(terminal.state, { isInteractedWith: true });
await new Promise<void>(r => {
disposables.push(window.onDidCloseTerminal(t => {
if (t === terminal) {