Type Terminal.loadAddon

This commit is contained in:
Daniel Imms
2017-07-13 11:19:57 -07:00
parent 885f4088ad
commit d12e8cf4da
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -185,6 +185,12 @@ declare module 'xterm' {
* @param end The row to end at (between start and this.rows - 1).
*/
refresh(start: number, end: number): void;
/**
* Loads an addon, attaching it to the Terminal prototype.
* @param addon The addon to load.
*/
static loadAddon(addon: string): void;
}
export = Terminal;
@@ -40,7 +40,7 @@ import pkg from 'vs/platform/node/package';
const LAUNCHING_DURATION = 500;
// Enable search functionality in xterm.js instance
(<any>XTermTerminal).loadAddon('search');
XTermTerminal.loadAddon('search');
class StandardTerminalProcessFactory implements ITerminalProcessFactory {
public create(env: { [key: string]: string }): cp.ChildProcess {