提交 9188559b 编写于 作者: D Daniel Imms

interactedWith -> isInteractedWith

Part of #127717
上级 b96a7f21
......@@ -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 {
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册