We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05414e2 commit 7e733beCopy full SHA for 7e733be
1 file changed
extensions/github-copilot/connection-bound-ids.live.test.ts
@@ -133,11 +133,16 @@ function extractText(response: unknown): string {
133
if (!Array.isArray(content)) {
134
return "";
135
}
136
- return content
137
- .filter((block) => block.type === "text")
138
- .map((block) => block.text?.trim() ?? "")
139
- .filter(Boolean)
140
- .join(" ");
+ const text: string[] = [];
+ for (const block of content) {
+ if (block.type === "text") {
+ const trimmed = block.text?.trim() ?? "";
+ if (trimmed.length > 0) {
141
+ text.push(trimmed);
142
+ }
143
144
145
+ return text.join(" ");
146
147
148
describeLive("github-copilot connection-bound Responses IDs live", () => {
0 commit comments