fix(http-client): show the request in the tool window while it is sent (#2966)

The HTTP Client tool window opened only once a response arrived, so slow requests looked unanswered. It now opens as the request is sent, and the response pane shows the request line, a progress indicator and Stop Request until the response replaces it.

Fixes #2937
This commit is contained in:
l0ng-ai
2026-11-12 20:40:59 +08:00
committed by GitHub
parent abe6285629
commit e5cc1ed712
3 changed files with 52 additions and 2 deletions
@@ -186,3 +186,24 @@
align-items: center;
justify-content: center;
}
/* The request being sent, in place of a response. */
.pending {
display: flex;
flex-direction: column;
gap: 10px;
padding: 12px;
}
.pendingLine {
display: flex;
align-items: center;
gap: 8px;
color: var(--fg-secondary);
}
.pendingRequest {
font-family: var(--font-mono);
overflow-wrap: anywhere;
}
.pendingMethod {
font-weight: 600;
}