INNER CODE UNIT · TypeScript

detect

iamcco/coc-flutter · src/lib/notification/index.ts:32

  private async detect() {
    if (this.timer) {
      clearTimeout(this.timer);
    }
    const { timeGap, display } = this;
    let { top } = this;
    this.display = [];
    for (const message of display) {
      if (!message.isInvalid) {
        await message.update(timeGap, top);
        top += message.height;
        this.display.push(message);
      } else {
        message.dispose();
      }
    }
    const { nvim } = workspace;
    const screenHeight = ((await nvim.getOption('lines')) as number) - 1; // 1 is statusline height

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…