fix: handle web console segment rotation

This commit is contained in:
2026-07-22 15:37:02 +09:00
parent b9f4c06c68
commit ad93047a25
5 changed files with 81 additions and 3 deletions
@@ -324,6 +324,8 @@
if (token.kind === "command") {
return localCommandCompletions(token.prefix);
}
const completionKind = token.kind;
const completionPrefix = token.prefix;
return new Promise((resolve, reject) => {
if (pendingCompletionRequest) {
rejectPendingCompletion(
@@ -339,7 +341,7 @@
try {
sendProtocolMethod({
method: "list_completions",
params: { kind: token.kind, prefix: token.prefix },
params: { kind: completionKind, prefix: completionPrefix },
});
} catch (error) {
rejectPendingCompletion(