mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-13 05:01:08 +01:00
Type Terminal.loadAddon
This commit is contained in:
Vendored
+6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user