lsp+flycheck+texlab 在latex模式下100% cpu占用率,持续10分钟

新打开一个tex文件,就会持续飙cpu10分钟左右。搜了一下,这个issue有同样的问题,但是一直没有解决。https://github.com/emacs-lsp/lsp-mode/issues/2417. emacs是28.05 native-comp

关掉flycheck之后立刻正常,开启就会持续100%占用. 用了一下profile report,结果如下

 6939  40% - #<compiled 0x12c6506f84782810>
    6706  38%  - lsp--parser-on-message
    5866  33%   - lsp--on-request
    4657  26%    - lsp--send-request-response
    4609  26%     - lsp--send-no-wait
       5   0%      + lsp--flush-delayed-changes
    1202   6%    + lsp--build-workspace-configuration-response
     762   4%   + lsp--on-notification
      38   0%   + #<compiled 0x80d8f7d278a4dd8>
       5   0%     lsp--get-message-type
       2   0%     lsp:json-response-id
       1   0%     lsp:json-response-result
      37   0%  + mapcar
       7   0%    apply
    4944  28% - redisplay_internal (C function)
    4845  27%  - eval
    3691  21%   + doom-modeline-segment--buffer-info
     889   5%   + doom-modeline-format--main
      42   0%     doom-modeline-segment--major-mode
      41   0%   + doom-modeline-segment--process
      36   0%   + doom-modeline-segment--window-number
      33   0%     doom-modeline-segment--buffer-position
      12   0%     doom-modeline-segment--buffer-encoding
      11   0%   + doom-modeline-segment--matches
       8   0%   + doom-modeline-segment--minor-modes
       5   0%     doom-modeline-segment--checker
       2   0%     doom-modeline-segment--input-method
       1   0%     doom-modeline-segment--modals
       1   0%     doom-modeline-segment--lsp
      62   0%  + #<compiled 0x1936704cc879be35>
       8   0%  + mode-line-default-help-echo
       7   0%  + #<compiled 0x8155b5ff8dd81ee>
       1   0%  + which-key--hide-popup-on-frame-size-change
       1   0%    undo-tree-update-menu-bar
    4368  25% - timer-event-handler
    4368  25%  - apply
    4312  24%   - lsp--on-idle
    3706  21%    - lsp-headerline--check-breadcrumb
    3697  21%     - lsp-headerline--build-string
    3695  21%      - #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_23>
    3672  21%       + lsp-headerline--build-path-up-to-project-string
      18   0%       + lsp-headerline--build-symbol-string
       1   0%       + lsp-headerline--build-file-string
     352   2%    + lsp--document-links
     252   1%    + lsp-diagnostics--flycheck-buffer
      21   0%   + auto-revert-buffers
      11   0%   + amx-idle-update
      11   0%   + savehist-autosave
       5   0%   + bibtex-parse-buffers-stealthily
       3   0%     #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_10>
       1   0%     #<compiled 0x172b81583152efa6>
       1   0%     persistent-scratch-save
     891   5% - ...
     891   5%    Automatic GC
     175   1% + command-execute
       7   0%   flyspell-post-command-hook
       1   0%   posframe-run-hidehandler