@elyracode/lsp-typescript 0.9.56 → 0.9.57
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.
- package/CHANGELOG.md +2 -0
- package/extensions/index.ts +5 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/extensions/index.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type EditToolDetails,
|
|
3
|
-
type EditToolInput,
|
|
4
|
-
type ExtensionAPI,
|
|
5
|
-
isEditToolResult,
|
|
6
|
-
} from "@elyracode/coding-agent";
|
|
7
1
|
import { type ChildProcess, execSync, spawn } from "node:child_process";
|
|
8
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
9
3
|
import { join, resolve } from "node:path";
|
|
4
|
+
import { type EditToolDetails, type EditToolInput, type ExtensionAPI, isEditToolResult } from "@elyracode/coding-agent";
|
|
10
5
|
import { Type } from "typebox";
|
|
11
6
|
|
|
12
7
|
// ── LSP Types ───────────────────────────────────────────────────────────────
|
|
@@ -426,7 +421,7 @@ export default function (elyra: ExtensionAPI): void {
|
|
|
426
421
|
const locations: LspLocation[] = Array.isArray(result) ? result : [result as LspLocation];
|
|
427
422
|
if (locations.length === 0) return "No results found.";
|
|
428
423
|
|
|
429
|
-
const prefix = workingDir
|
|
424
|
+
const prefix = `${workingDir}/`;
|
|
430
425
|
return locations
|
|
431
426
|
.map((loc) => {
|
|
432
427
|
const p = uriToPath(loc.uri);
|
|
@@ -732,7 +727,9 @@ export default function (elyra: ExtensionAPI): void {
|
|
|
732
727
|
if (diag) sections.push(`[Diagnostics \u2014 auto-checked via LSP]\n${diag}`);
|
|
733
728
|
if (blast) sections.push(`[Blast radius \u2014 auto-resolved via LSP]\n${blast}`);
|
|
734
729
|
if (related.length > 0) {
|
|
735
|
-
sections.push(
|
|
730
|
+
sections.push(
|
|
731
|
+
`[Related symbols \u2014 auto-resolved via LSP, no extra tool call needed]\n${related.join("\n")}`,
|
|
732
|
+
);
|
|
736
733
|
}
|
|
737
734
|
if (sections.length === 0) return undefined;
|
|
738
735
|
|