@elyracode/lsp-rust 0.9.56 → 0.9.58
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 +4 -0
- package/extensions/index.ts +5 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/extensions/index.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
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 { homedir } from "node:os";
|
|
10
4
|
import { join, resolve } from "node:path";
|
|
5
|
+
import { type EditToolDetails, type EditToolInput, type ExtensionAPI, isEditToolResult } from "@elyracode/coding-agent";
|
|
11
6
|
import { Type } from "typebox";
|
|
12
7
|
|
|
13
8
|
// ── 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);
|
|
@@ -737,7 +732,9 @@ export default function (elyra: ExtensionAPI): void {
|
|
|
737
732
|
if (diag) sections.push(`[Diagnostics — auto-checked via LSP]\n${diag}`);
|
|
738
733
|
if (blast) sections.push(`[Blast radius — auto-resolved via LSP]\n${blast}`);
|
|
739
734
|
if (related.length > 0) {
|
|
740
|
-
sections.push(
|
|
735
|
+
sections.push(
|
|
736
|
+
`[Related symbols — auto-resolved via LSP, no extra tool call needed]\n${related.join("\n")}`,
|
|
737
|
+
);
|
|
741
738
|
}
|
|
742
739
|
if (sections.length === 0) return undefined;
|
|
743
740
|
|