patch 9.2.0062: Using the wrong field with DAP channel mode

Problem:  Using the wrong field with DAP channel mode
          (after v9.2.0060)
Solution: Use request_seq instead of seq when handing DAP response
          (Foxe Chen).

closes: #19511

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Foxe Chen
2026-02-25 21:43:06 +00:00
committed by Christian Brabandt
parent 1c0d468d72
commit cb031178c2
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -3015,7 +3015,7 @@ may_invoke_callback(channel_T *channel, ch_part_T part)
if (ch_mode == CH_MODE_LSP)
di = dict_find(d, (char_u *)"id", -1);
else
di = dict_find(d, (char_u *)"seq", -1);
di = dict_find(d, (char_u *)"request_seq", -1);
if (di != NULL && di->di_tv.v_type == VAR_NUMBER)
seq_nr = di->di_tv.vval.v_number;
}
+2
View File
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
62,
/**/
61,
/**/