@floydous/pi-agent-kernel 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -533,9 +533,11 @@ export function registerLspTool(pi: ExtensionAPI, deps?: SessionDeps): void {
533
533
  let refs = await client.findReferences(absPath, line0, col0);
534
534
  if (refs.length > 0) {
535
535
  refs = filterRefs(refs);
536
- return {
537
- content: [{ type: "text", text: formatReferences(refs, ctx.cwd) }],
538
- };
536
+ if (refs.length > 0) {
537
+ return {
538
+ content: [{ type: "text", text: formatReferences(refs, ctx.cwd) }],
539
+ };
540
+ }
539
541
  }
540
542
  const ext = path.extname(absPath).toLowerCase();
541
543
  const nonCodeExts = [".md", ".markdown", ".json", ".jsonc", ".yaml", ".yml", ".toml", ".proto", ".txt"];
Binary file