Skip to content

Commit

Permalink
Declare writeBuffer/_innerWrite access in .d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Sep 3, 2019
1 parent 1de6941 commit 38d85b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ export interface XTermCore {
};
_onIntersectionChange: any;
};

// TODO: Remove below once a synchronous write API is added
// The below are only used in tests
writeBuffer: string[];
_innerWrite(): void;
}

export interface IEventEmitter<T> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,8 @@ import { CommandTrackerAddon } from 'vs/workbench/contrib/terminal/browser/addon
import { isWindows } from 'vs/base/common/platform';
import { XTermCore } from 'vs/workbench/contrib/terminal/browser/xterm-private';

interface TestTerminalCore extends XTermCore {
writeBuffer: string[];
_innerWrite(): void;
}

interface TestTerminal extends Terminal {
_core: TestTerminalCore;
_core: XTermCore;
}

function syncWrite(term: TestTerminal, data: string): void {
Expand Down

0 comments on commit 38d85b9

Please sign in to comment.