From 9188559bd74d29cb035fcd20fcef4c9db567b58e Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Fri, 17 Sep 2021 05:56:50 -0700 Subject: [PATCH] interactedWith -> isInteractedWith Part of #127717 --- src/vs/vscode.proposed.d.ts | 3 +-- src/vs/workbench/api/common/extHostTerminalService.ts | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/vs/vscode.proposed.d.ts b/src/vs/vscode.proposed.d.ts index 89f26ec30bfb8..833699fb89005 100644 --- a/src/vs/vscode.proposed.d.ts +++ b/src/vs/vscode.proposed.d.ts @@ -926,8 +926,7 @@ declare module 'vscode' { * For more information on events that can send data see "DEC Private Mode Set (DECSET)" on * https://invisible-island.net/xterm/ctlseqs/ctlseqs.html */ - // todo@API Maybe, isInteractedWith to align with other isXYZ - readonly interactedWith: boolean; + readonly isInteractedWith: boolean; } export interface Terminal { diff --git a/src/vs/workbench/api/common/extHostTerminalService.ts b/src/vs/workbench/api/common/extHostTerminalService.ts index 94d494594cc6a..ed1cb82337d76 100644 --- a/src/vs/workbench/api/common/extHostTerminalService.ts +++ b/src/vs/workbench/api/common/extHostTerminalService.ts @@ -68,7 +68,7 @@ export class ExtHostTerminal { private _pidPromiseComplete: ((value: number | undefined) => any) | undefined; private _rows: number | undefined; private _exitStatus: vscode.TerminalExitStatus | undefined; - private _state: vscode.TerminalState = { interactedWith: false }; + private _state: vscode.TerminalState = { isInteractedWith: false }; public isOpen: boolean = false; @@ -218,8 +218,8 @@ export class ExtHostTerminal { } public setInteractedWith(): boolean { - if (!this._state.interactedWith) { - this._state = { interactedWith: true }; + if (!this._state.isInteractedWith) { + this._state = { isInteractedWith: true }; return true; } return false;