Skip to content

Commit 68486ff

Browse files
javier-godoypaodb
authored andcommitted
refactor: rename XTermConsoleMixin _addon property
1 parent 04ac96a commit 68486ff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/resources/META-INF/frontend/fc-xterm/xterm-console-mixin.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,16 +261,16 @@ type Constructor<T = {}> = new (...args: any[]) => T;
261261
export function XTermConsoleMixin<TBase extends Constructor<TerminalMixin>>(Base: TBase) {
262262
return class XTermConsoleMixin extends Base implements IConsoleMixin {
263263

264-
_addon? : ConsoleAddon;
264+
_consoleAddon? : ConsoleAddon;
265265
escapeEnabled: Boolean;
266266
prompt: string;
267267

268268
connectedCallback() {
269269
super.connectedCallback();
270270

271-
this._addon = new ConsoleAddon();
272-
this._addon.$=this;
273-
this.node.terminal.loadAddon(this._addon);
271+
this._consoleAddon = new ConsoleAddon();
272+
this._consoleAddon.$=this;
273+
this.node.terminal.loadAddon(this._consoleAddon);
274274
}
275275

276276
get insertMode(): Boolean {
@@ -286,12 +286,12 @@ export function XTermConsoleMixin<TBase extends Constructor<TerminalMixin>>(Base
286286
}
287287

288288
get currentLine() : string {
289-
return this._addon.currentLine;
289+
return this._consoleAddon.currentLine;
290290
}
291291

292292
writePrompt() {
293293
//execute writePrompt with blocking semantics
294-
this.node.terminal.write('', ()=>this._addon.writePrompt());
294+
this.node.terminal.write('', ()=>this._consoleAddon.writePrompt());
295295
}
296296

297297
}

0 commit comments

Comments
 (0)