fix(messages): always assign msg_id to msg_show events #37671

Problem:  Internal messages do not have an ID, which is unexpected and
          undocumented.
Solution: Always assign a msg_id to msg_show events, simplifying
          logic/expectations for UIs.
This commit is contained in:
luukvbaal
2026-02-03 13:52:03 +01:00
committed by GitHub
parent d594407735
commit c85313bac7
2 changed files with 13 additions and 12 deletions

View File

@@ -3608,12 +3608,14 @@ describe('progress-message', function()
)
eq('str-id', id7)
-- internal messages are also assigned an ID (and thus advance the next progress ID)
feed('Q')
local id8 = api.nvim_echo(
{ { 'test-message 30' } },
true,
{ kind = 'progress', title = 'TestSuit', percent = 30, status = 'running' }
)
eq(12, id8)
eq(13, id8)
end)
it('supports string ids', function()