MCPcopy Create free account
hub / github.com/codeaashu/claude-code / LSPResultSummary

Function LSPResultSummary

src/tools/LSPTool/UI.tsx:61–159  ·  view source on GitHub ↗

* Reusable component for LSP result summaries with collapsed/expanded views

(t0)

Source from the content-addressed store, hash-verified

59 * Reusable component for LSP result summaries with collapsed/expanded views
60 */
61function LSPResultSummary(t0) {
62 const $ = _c(24);
63 const {
64 operation,
65 resultCount,
66 fileCount,
67 content,
68 verbose
69 } = t0;
70 let t1;
71 if ($[0] !== operation) {
72 t1 = OPERATION_LABELS[operation] || {
73 singular: "result",
74 plural: "results"
75 };
76 $[0] = operation;
77 $[1] = t1;
78 } else {
79 t1 = $[1];
80 }
81 const labelConfig = t1;
82 const countLabel = resultCount === 1 ? labelConfig.singular : labelConfig.plural;
83 let t2;
84 if ($[2] !== countLabel || $[3] !== labelConfig.special || $[4] !== operation || $[5] !== resultCount) {
85 t2 = operation === "hover" && resultCount > 0 && labelConfig.special ? <Text>Hover info {labelConfig.special}</Text> : <Text>Found <Text bold={true}>{resultCount} </Text>{countLabel}</Text>;
86 $[2] = countLabel;
87 $[3] = labelConfig.special;
88 $[4] = operation;
89 $[5] = resultCount;
90 $[6] = t2;
91 } else {
92 t2 = $[6];
93 }
94 const primaryText = t2;
95 let t3;
96 if ($[7] !== fileCount) {
97 t3 = fileCount > 1 ? <Text>{" "}across <Text bold={true}>{fileCount} </Text>files</Text> : null;
98 $[7] = fileCount;
99 $[8] = t3;
100 } else {
101 t3 = $[8];
102 }
103 const secondaryText = t3;
104 if (verbose) {
105 let t4;
106 if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
107 t4 = <Text dimColor={true}>  ⎿  </Text>;
108 $[9] = t4;
109 } else {
110 t4 = $[9];
111 }
112 let t5;
113 if ($[10] !== primaryText || $[11] !== secondaryText) {
114 t5 = <Box flexDirection="row"><Text>{t4}{primaryText}{secondaryText}</Text></Box>;
115 $[10] = primaryText;
116 $[11] = secondaryText;
117 $[12] = t5;
118 } else {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected