INNER CODE UNIT · TypeScript
Notification
iamcco/coc-flutter · src/lib/notification/index.ts:10
class Notification extends Dispose {
private isSupportFloat = false;
// top to the viewpoint
private top = 1;
private maxWidth: number = messageMaxWidth;
private messages: Message[] = [];
private display: Message[] = [];
private timeGap: number = detectTimeGap;
private timer: NodeJS.Timer | undefined;
constructor() {
super();
this.init();
}
private async init() {
const { nvim } = workspace;
this.isSupportFloat = !!(await nvim.call('exists', '*nvim_open_win'));