Closed lambdalisue closed 2 months ago
The recent changes introduce a new mechanism for handling delayed messages in the file autoload/denops/_internal/echo.vim
. Constants and variables have been added to support this delayed messaging system. Echo functions have been refactored to utilize the new mechanism, ensuring messages can be managed more efficiently.
Files | Change Summary |
---|---|
autoload/denops/_internal/echo.vim |
Added constants and variables for delayed messages; refactored echo functions. |
sequenceDiagram
participant User
participant Vim
participant EchoMsg as s:echomsg
participant EchoMsgDelay as s:echomsg_delay
participant EchoMsgBatch as s:echomsg_batch
User->>Vim: Input command triggering message
Vim->>EchoMsg: Call s:echomsg(hl, msg)
EchoMsg->>EchoMsgDelay: Check if delay is needed
alt Delayed message
EchoMsgDelay-->>EchoMsgBatch: Store message for batch processing
else Immediate message
EchoMsg->>Vim: Display message
end
In the realm of Vim's swift text, A new message system to buffer the next. Delays are managed with grace and care, Echoes refined, as weโre happy to share. A batch of changes from Denops sublime, Making our coding dance in perfect rhyme.
- ๐ CodeRabbit
(\(\
( -.-)
o_(")(")
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 90.20%. Comparing base (
b1a21ac
) to head (28414d1
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Users may not realize that there are info/warn/error messages in the message history. This commit forcibly shows the messages to the user when the messages are posted with
console.info/warn/error
functions in Denops side.With this change, for example Denops plugin loading issue is shown on the Vim start-up like below (tested with https://github.com/vim-denops/denops-issue358.vim)
https://github.com/vim-denops/denops.vim/assets/546312/f1c82de7-73f6-4546-9914-4a8fb1ec798d
Summary by CodeRabbit