Skip to content

Commit

Permalink
Start seq number at 1
Browse files Browse the repository at this point in the history
From the spec:

> Sequence number of the message (also known as message ID). The `seq` for
> the first message sent by a client or debug adapter is 1, and for each
> subsequent message is 1 greater than the previous message sent by that
> actor.
  • Loading branch information
mfussenegger committed Dec 2, 2023
1 parent 13ce59d commit 62b0bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dap/session.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ local function new_session(adapter, opts, handle)
message_callbacks = {};
message_requests = {};
initialized = false;
seq = 0;
seq = 1;
stopped_thread_id = nil;
current_frame = nil;
threads = {};
Expand Down

0 comments on commit 62b0bea

Please sign in to comment.