agentFeedbackServerTools.ts ×5

Frontier kind: Joint frontier

unlabeled · c_4e024264f662

1 test · 19643 LOC · 87 files · introduces 1 test · 28 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges28 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
1793 ranges19643 lines · 87 files · Browse complete extent
All tests (intent)
1 testBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 28 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/shared/agentFeedbackServerTools.ts 28 introduced LOC · 5 ranges

Open complete file

307 * or a manual accept) is excluded.
308 */
309 > function pendingRevealAnnotations(state: AnnotationsState): Annotation[] { agentFeedbackServerTools.ts
310 > return state.annotations.filter(annotation => {
311 > const meta = readMeta(annotation);
312 > if (!meta || !annotation.entries?.length) {
313 return false;
314 }
315 > return REVIEWABLE_FEEDBACK_KINDS.has(meta.kind) && meta.pendingAgentReveal === true; agentFeedbackServerTools.ts
316 > });
317 > }
318
319 /** Returns a copy of {@link annotation} with the {@link IFeedbackAnnotationMeta.pendingAgentReveal} flag cleared. */
320 > function clearPendingReveal(annotation: Annotation): Annotation { agentFeedbackServerTools.ts
321 > const meta = readMeta(annotation);
322 > if (!meta) {
323 return annotation;
324 }
325 > const nextMeta: IFeedbackAnnotationMeta = { ...meta, pendingAgentReveal: undefined }; agentFeedbackServerTools.ts
326 > return { ...annotation, _meta: { ...annotation._meta, [FEEDBACK_ANNOTATION_META_KEY]: nextMeta } };
327 > }
328
329 /**
426 }
427 case viewUnreviewedCommentsToolName: {
428 > // The confirmation gate runs before this body. When the user accepts agentFeedbackServerTools.ts
429 > // the confirmation, the client flags exactly the comments they chose
430 > // to reveal with `pendingAgentReveal` on the shared annotations
431 > // channel. Return those comments and clear the flag so a later
432 > // invocation does not re-return them; comments the user left
433 > // unchecked (and review comments accepted by other means) are not
434 > // flagged and so are excluded.
435 > const pending = pendingRevealAnnotations(state);
436 > const comments = pending.map(serializeComment);
437 > const actions: AnnotationsAction[] = pending.map(annotation => ({
438 > type: ActionType.AnnotationsSet,
439 > annotation: clearPendingReveal(annotation),
440 > }));
441 > return { actions, result: JSON.stringify({ comments }, undefined, 2) };
442 > }
443 case deleteCommentsToolName: {
444 const ids = getUniqueCommentIds((rawArgs as IDeleteCommentsArgs)?.commentIds, deleteCommentsToolName);