File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -303,6 +303,17 @@ declare module 'vscode' {
303303 * Unique ID for the subagent invocation, used to group tool calls from the same subagent run together.
304304 */
305305 subAgentInvocationId ?: string ;
306+ /**
307+ * W3C trace context `traceparent` header value identifying the active distributed
308+ * tracing span. When provided to a tool implementation backed by an MCP server, this
309+ * value is forwarded as `_meta.traceparent` on the JSON-RPC `tools/call` request so
310+ * downstream servers can correlate their spans (MCP SEP-414).
311+ */
312+ traceparent ?: string ;
313+ /**
314+ * Optional W3C trace context `tracestate` header value paired with `traceparent`.
315+ */
316+ tracestate ?: string ;
306317 /**
307318 * Pre-tool-use hook result, if the hook was already executed by the caller.
308319 * When provided, the tools service will skip executing its own preToolUse hook
Original file line number Diff line number Diff line change @@ -909,13 +909,17 @@ export class GitHubRepository extends Disposable {
909909 } ) ;
910910 Logger . debug ( `Fetch issues with query - done` , this . id ) ;
911911
912- const issues : Issue [ ] = [ ] ;
912+ let issues : Issue [ ] = [ ] ;
913913 if ( data && data . search . edges ) {
914- await Promise . all ( data . search . edges . map ( async raw => {
914+ // Preserve the order returned by the server (e.g. sort:created-desc).
915+ // Using `Promise.all(map(async ... push))` would reorder results by completion time.
916+ const parsed = await Promise . all ( data . search . edges . map ( async raw => {
915917 if ( raw . node . id ) {
916- issues . push ( await parseGraphQLIssue ( raw . node , this ) ) ;
918+ return parseGraphQLIssue ( raw . node , this ) ;
917919 }
920+ return undefined ;
918921 } ) ) ;
922+ issues = parsed . filter ( ( issue ) : issue is Issue => issue !== undefined ) ;
919923 }
920924 return {
921925 items : issues ,
You can’t perform that action at this time.
0 commit comments