提交 38d85b98 编写于 作者: D Daniel Imms

Declare writeBuffer/_innerWrite access in .d.ts

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