@telorun/ide-support 0.18.2 → 0.19.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../src/diagnostics/normalize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAI3E;;;;;;;;;;iDAUiD;AACjD,wBAAgB,mBAAmB,CACjC,CAAC,EAAE,kBAAkB,EACrB,GAAG,EAAE,iBAAiB,GACrB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../src/diagnostics/normalize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAI3E;;;;;;;;;;iDAUiD;AACjD,wBAAgB,mBAAmB,CACjC,CAAC,EAAE,kBAAkB,EACrB,GAAG,EAAE,iBAAiB,GACrB,oBAAoB,CAiBtB"}
|
|
@@ -22,6 +22,10 @@ export function normalizeDiagnostic(d, ctx) {
|
|
|
22
22
|
source: d.source ?? "telo",
|
|
23
23
|
message: d.message,
|
|
24
24
|
...(suggestions ? { suggestions } : {}),
|
|
25
|
+
// Carried through, never derived from the code: which diagnostics are
|
|
26
|
+
// deprecations is the analyzer's to say, and a code list here would be a
|
|
27
|
+
// second place to remember every time one is added.
|
|
28
|
+
...(d.tags?.length ? { tags: [...d.tags] } : {}),
|
|
25
29
|
...(d.data !== undefined ? { data: d.data } : {}),
|
|
26
30
|
};
|
|
27
31
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { AnalysisRegistry, DiagnosticSeverity } from "@telorun/analyzer";
|
|
1
|
+
export { AnalysisRegistry, DiagnosticSeverity, DiagnosticTag } from "@telorun/analyzer";
|
|
2
2
|
export type { Position, Range, AnalysisDiagnostic, PositionIndex, } from "@telorun/analyzer";
|
|
3
|
-
import type { AnalysisRegistry, DiagnosticSeverity, Position, PositionIndex, Range } from "@telorun/analyzer";
|
|
3
|
+
import type { AnalysisRegistry, DiagnosticSeverity, DiagnosticTag, Position, PositionIndex, Range } from "@telorun/analyzer";
|
|
4
4
|
export type CompletionKind = "class" | "enumMember" | "property" | "folder" | "module" | "value";
|
|
5
5
|
/** A source span the host replaces wholesale when a completion is accepted. */
|
|
6
6
|
export interface ReplaceRange {
|
|
@@ -123,6 +123,10 @@ export interface NormalizedDiagnostic {
|
|
|
123
123
|
kind: "replace";
|
|
124
124
|
replacement: string;
|
|
125
125
|
}>;
|
|
126
|
+
/** LSP diagnostic tags, carried through verbatim. Orthogonal to `severity`:
|
|
127
|
+
* they say what KIND of thing the range is (deprecated, unnecessary), which
|
|
128
|
+
* is what a host renders as strikethrough or fading rather than as a colour. */
|
|
129
|
+
tags?: DiagnosticTag[];
|
|
126
130
|
/** Preserved verbatim from the source `AnalysisDiagnostic`. Carries
|
|
127
131
|
* resource/path stamps that downstream UIs (popovers, "at <path>" hints,
|
|
128
132
|
* CodeAction wiring) read after normalization. Opaque on purpose so this
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGxF,YAAY,EACV,QAAQ,EAC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B;IAChC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
package/dist/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Runtime values (classes, enums) — consumers who need `new AnalysisRegistry()`
|
|
2
2
|
// or `DiagnosticSeverity.Error` import from here.
|
|
3
|
-
export { AnalysisRegistry, DiagnosticSeverity } from "@telorun/analyzer";
|
|
3
|
+
export { AnalysisRegistry, DiagnosticSeverity, DiagnosticTag } from "@telorun/analyzer";
|
|
4
4
|
/** The legend a host registers before mapping `buildSemanticTokens` output. The
|
|
5
5
|
* numeric token-type of each `SemanticToken` is its index in this array, and a
|
|
6
6
|
* host registers it once at activation — so new types are APPENDED, never
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telorun/ide-support",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
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.
|
|
39
|
+
"@telorun/analyzer": "0.72.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/node": "^20.0.0",
|
|
@@ -28,6 +28,10 @@ export function normalizeDiagnostic(
|
|
|
28
28
|
source: d.source ?? "telo",
|
|
29
29
|
message: d.message,
|
|
30
30
|
...(suggestions ? { suggestions } : {}),
|
|
31
|
+
// Carried through, never derived from the code: which diagnostics are
|
|
32
|
+
// deprecations is the analyzer's to say, and a code list here would be a
|
|
33
|
+
// second place to remember every time one is added.
|
|
34
|
+
...(d.tags?.length ? { tags: [...d.tags] } : {}),
|
|
31
35
|
...(d.data !== undefined ? { data: d.data } : {}),
|
|
32
36
|
};
|
|
33
37
|
}
|
package/src/types.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Runtime values (classes, enums) — consumers who need `new AnalysisRegistry()`
|
|
2
2
|
// or `DiagnosticSeverity.Error` import from here.
|
|
3
|
-
export { AnalysisRegistry, DiagnosticSeverity } from "@telorun/analyzer";
|
|
3
|
+
export { AnalysisRegistry, DiagnosticSeverity, DiagnosticTag } from "@telorun/analyzer";
|
|
4
4
|
|
|
5
5
|
// Pure types.
|
|
6
6
|
export type {
|
|
@@ -13,6 +13,7 @@ export type {
|
|
|
13
13
|
import type {
|
|
14
14
|
AnalysisRegistry,
|
|
15
15
|
DiagnosticSeverity,
|
|
16
|
+
DiagnosticTag,
|
|
16
17
|
Position,
|
|
17
18
|
PositionIndex,
|
|
18
19
|
Range,
|
|
@@ -168,6 +169,10 @@ export interface NormalizedDiagnostic {
|
|
|
168
169
|
/** Mechanically applicable repairs. `replacement` is the whole corrected
|
|
169
170
|
* value at the diagnostic's range — apply it by replacing that range. */
|
|
170
171
|
suggestions?: Array<{ kind: "replace"; replacement: string }>;
|
|
172
|
+
/** LSP diagnostic tags, carried through verbatim. Orthogonal to `severity`:
|
|
173
|
+
* they say what KIND of thing the range is (deprecated, unnecessary), which
|
|
174
|
+
* is what a host renders as strikethrough or fading rather than as a colour. */
|
|
175
|
+
tags?: DiagnosticTag[];
|
|
171
176
|
/** Preserved verbatim from the source `AnalysisDiagnostic`. Carries
|
|
172
177
|
* resource/path stamps that downstream UIs (popovers, "at <path>" hints,
|
|
173
178
|
* CodeAction wiring) read after normalization. Opaque on purpose so this
|