Skip to content

Commit

Permalink
interactedWith -> isInteractedWith
Browse files Browse the repository at this point in the history
Part of #127717
  • Loading branch information
Tyriar committed Sep 17, 2021
1 parent b96a7f2 commit 9188559
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/vs/vscode.proposed.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions src/vs/workbench/api/common/extHostTerminalService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 9188559

Please sign in to comment.