mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Revert "Implement proposed TerminalState.isShellIntegrationActivated"
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user