@telorun/ide-support 0.7.9 → 0.7.10
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.
|
@@ -12,5 +12,5 @@ import type { DiagnosticContext } from "../types.js";
|
|
|
12
12
|
* instead of spreading across every line of the surrounding map.
|
|
13
13
|
* 4. Whole-line span at `sourceLine` when known.
|
|
14
14
|
* 5. `(0,0)-(0,0)` as a last resort. Never undefined. */
|
|
15
|
-
export declare function resolveRange(d: AnalysisDiagnostic, ctx: DiagnosticContext): Range;
|
|
15
|
+
export declare function resolveRange(d: AnalysisDiagnostic, ctx: Pick<DiagnosticContext, "positionIndex" | "sourceLine">): Range;
|
|
16
16
|
//# sourceMappingURL=range-resolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"range-resolver.d.ts","sourceRoot":"","sources":["../../src/diagnostics/range-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOrD;;;;;;;;;;;4DAW4D;AAC5D,wBAAgB,YAAY,
|
|
1
|
+
{"version":3,"file":"range-resolver.d.ts","sourceRoot":"","sources":["../../src/diagnostics/range-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOrD;;;;;;;;;;;4DAW4D;AAC5D,wBAAgB,YAAY,CAC1B,CAAC,EAAE,kBAAkB,EAIrB,GAAG,EAAE,IAAI,CAAC,iBAAiB,EAAE,eAAe,GAAG,YAAY,CAAC,GAC3D,KAAK,CAuBP"}
|
|
@@ -14,7 +14,11 @@ const ZERO_RANGE = {
|
|
|
14
14
|
* instead of spreading across every line of the surrounding map.
|
|
15
15
|
* 4. Whole-line span at `sourceLine` when known.
|
|
16
16
|
* 5. `(0,0)-(0,0)` as a last resort. Never undefined. */
|
|
17
|
-
export function resolveRange(d,
|
|
17
|
+
export function resolveRange(d,
|
|
18
|
+
// Only the position half of a `DiagnosticContext` — a full one still
|
|
19
|
+
// satisfies this, and a caller holding just a located file (the CLI) does not
|
|
20
|
+
// have to invent a registry to reuse the one resolution rule.
|
|
21
|
+
ctx) {
|
|
18
22
|
if (d.range)
|
|
19
23
|
return d.range;
|
|
20
24
|
const fieldPath = d.data?.path;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telorun/ide-support",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.10",
|
|
4
4
|
"description": "Editor-host-agnostic IDE support (completions, diagnostic normalization) for Telo manifests.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"telo",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"src/**"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@telorun/analyzer": "0.49.
|
|
39
|
+
"@telorun/analyzer": "0.49.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/node": "^20.0.0",
|
|
@@ -18,7 +18,13 @@ const ZERO_RANGE: Range = {
|
|
|
18
18
|
* instead of spreading across every line of the surrounding map.
|
|
19
19
|
* 4. Whole-line span at `sourceLine` when known.
|
|
20
20
|
* 5. `(0,0)-(0,0)` as a last resort. Never undefined. */
|
|
21
|
-
export function resolveRange(
|
|
21
|
+
export function resolveRange(
|
|
22
|
+
d: AnalysisDiagnostic,
|
|
23
|
+
// Only the position half of a `DiagnosticContext` — a full one still
|
|
24
|
+
// satisfies this, and a caller holding just a located file (the CLI) does not
|
|
25
|
+
// have to invent a registry to reuse the one resolution rule.
|
|
26
|
+
ctx: Pick<DiagnosticContext, "positionIndex" | "sourceLine">,
|
|
27
|
+
): Range {
|
|
22
28
|
if (d.range) return d.range;
|
|
23
29
|
|
|
24
30
|
const fieldPath = (d.data as { path?: string } | undefined)?.path;
|