MCPcopy
hub / github.com/codeaashu/claude-code / _checkLinkProviderResult

Method _checkLinkProviderResult

src/server/web/public/terminal.js:278–296  ·  view source on GitHub ↗
(e3, t3, i3)

Source from the content-addressed store, hash-verified

276 }
277 }
278 _checkLinkProviderResult(e3, t3, i3) {
279 var _a;
280 if (!this._activeProviderReplies) return i3;
281 const s3 = this._activeProviderReplies.get(e3);
282 let r2 = false;
283 for (let t4 = 0; t4 < e3; t4++) this._activeProviderReplies.has(t4) && !this._activeProviderReplies.get(t4) || (r2 = true);
284 if (!r2 && s3) {
285 const e4 = s3.find(((e5) => this._linkAtPosition(e5.link, t3)));
286 e4 && (i3 = true, this._handleNewLink(e4));
287 }
288 if (this._activeProviderReplies.size === this._linkProviderService.linkProviders.length && !i3) for (let e4 = 0; e4 < this._activeProviderReplies.size; e4++) {
289 const s4 = (_a = this._activeProviderReplies.get(e4)) == null ? void 0 : _a.find(((e5) => this._linkAtPosition(e5.link, t3)));
290 if (s4) {
291 i3 = true, this._handleNewLink(s4);
292 break;
293 }
294 }
295 return i3;
296 }
297 _handleMouseDown() {
298 this._mouseDownLink = this._currentLink;
299 }

Callers 1

_askForLinkMethod · 0.80

Calls 4

_linkAtPositionMethod · 0.80
_handleNewLinkMethod · 0.80
getMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected