@pydantic/logfire-sqlls 0.1.0 → 0.3.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.
- package/logfire_sqlls_wasm.d.ts +32 -0
- package/logfire_sqlls_wasm.js +101 -0
- package/logfire_sqlls_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/logfire_sqlls_wasm.d.ts
CHANGED
|
@@ -34,6 +34,29 @@ export class Diagnostic {
|
|
|
34
34
|
span: Span;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
export class Hover {
|
|
38
|
+
private constructor();
|
|
39
|
+
free(): void;
|
|
40
|
+
[Symbol.dispose](): void;
|
|
41
|
+
/**
|
|
42
|
+
* The contents of this hover.
|
|
43
|
+
* Note: we always assume it is markdown.
|
|
44
|
+
*/
|
|
45
|
+
contents: string[];
|
|
46
|
+
/**
|
|
47
|
+
* The range to which this hover applies. When missing, the
|
|
48
|
+
* editor will use the range at the current position or the
|
|
49
|
+
* current position itself.
|
|
50
|
+
*/
|
|
51
|
+
get span(): Span | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* The range to which this hover applies. When missing, the
|
|
54
|
+
* editor will use the range at the current position or the
|
|
55
|
+
* current position itself.
|
|
56
|
+
*/
|
|
57
|
+
set span(value: Span | null | undefined);
|
|
58
|
+
}
|
|
59
|
+
|
|
37
60
|
export class Location {
|
|
38
61
|
free(): void;
|
|
39
62
|
[Symbol.dispose](): void;
|
|
@@ -80,6 +103,8 @@ export class Workspace {
|
|
|
80
103
|
[Symbol.dispose](): void;
|
|
81
104
|
checkQuery(query: string): Diagnostic[];
|
|
82
105
|
getCompletions(query: string, location: Location): Completion[];
|
|
106
|
+
getDefinitions(query: string, location: Location): Span[];
|
|
107
|
+
getHover(query: string, location: Location): Hover | undefined;
|
|
83
108
|
constructor(options: any);
|
|
84
109
|
}
|
|
85
110
|
|
|
@@ -98,11 +123,14 @@ export interface InitOutput {
|
|
|
98
123
|
readonly __wbg_get_diagnostic_related_information: (a: number) => [number, number];
|
|
99
124
|
readonly __wbg_get_diagnostic_severity: (a: number) => number;
|
|
100
125
|
readonly __wbg_get_diagnostic_span: (a: number) => number;
|
|
126
|
+
readonly __wbg_get_hover_contents: (a: number) => [number, number];
|
|
127
|
+
readonly __wbg_get_hover_span: (a: number) => number;
|
|
101
128
|
readonly __wbg_get_location_column: (a: number) => number;
|
|
102
129
|
readonly __wbg_get_location_line: (a: number) => number;
|
|
103
130
|
readonly __wbg_get_relatedinformation_span: (a: number) => number;
|
|
104
131
|
readonly __wbg_get_span_end: (a: number) => number;
|
|
105
132
|
readonly __wbg_get_span_start: (a: number) => number;
|
|
133
|
+
readonly __wbg_hover_free: (a: number, b: number) => void;
|
|
106
134
|
readonly __wbg_location_free: (a: number, b: number) => void;
|
|
107
135
|
readonly __wbg_relatedinformation_free: (a: number, b: number) => void;
|
|
108
136
|
readonly __wbg_set_completion_detail: (a: number, b: number, c: number) => void;
|
|
@@ -114,6 +142,8 @@ export interface InitOutput {
|
|
|
114
142
|
readonly __wbg_set_diagnostic_related_information: (a: number, b: number, c: number) => void;
|
|
115
143
|
readonly __wbg_set_diagnostic_severity: (a: number, b: number) => void;
|
|
116
144
|
readonly __wbg_set_diagnostic_span: (a: number, b: number) => void;
|
|
145
|
+
readonly __wbg_set_hover_contents: (a: number, b: number, c: number) => void;
|
|
146
|
+
readonly __wbg_set_hover_span: (a: number, b: number) => void;
|
|
117
147
|
readonly __wbg_set_location_column: (a: number, b: number) => void;
|
|
118
148
|
readonly __wbg_set_location_line: (a: number, b: number) => void;
|
|
119
149
|
readonly __wbg_set_relatedinformation_span: (a: number, b: number) => void;
|
|
@@ -128,6 +158,8 @@ export interface InitOutput {
|
|
|
128
158
|
readonly __wbg_workspace_free: (a: number, b: number) => void;
|
|
129
159
|
readonly workspace_checkQuery: (a: number, b: number, c: number) => [number, number];
|
|
130
160
|
readonly workspace_getCompletions: (a: number, b: number, c: number, d: number) => [number, number];
|
|
161
|
+
readonly workspace_getDefinitions: (a: number, b: number, c: number, d: number) => [number, number];
|
|
162
|
+
readonly workspace_getHover: (a: number, b: number, c: number, d: number) => number;
|
|
131
163
|
readonly workspace_new: (a: any) => [number, number, number];
|
|
132
164
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
133
165
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
package/logfire_sqlls_wasm.js
CHANGED
|
@@ -234,6 +234,72 @@ export class Diagnostic {
|
|
|
234
234
|
}
|
|
235
235
|
if (Symbol.dispose) Diagnostic.prototype[Symbol.dispose] = Diagnostic.prototype.free;
|
|
236
236
|
|
|
237
|
+
export class Hover {
|
|
238
|
+
static __wrap(ptr) {
|
|
239
|
+
ptr = ptr >>> 0;
|
|
240
|
+
const obj = Object.create(Hover.prototype);
|
|
241
|
+
obj.__wbg_ptr = ptr;
|
|
242
|
+
HoverFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
243
|
+
return obj;
|
|
244
|
+
}
|
|
245
|
+
__destroy_into_raw() {
|
|
246
|
+
const ptr = this.__wbg_ptr;
|
|
247
|
+
this.__wbg_ptr = 0;
|
|
248
|
+
HoverFinalization.unregister(this);
|
|
249
|
+
return ptr;
|
|
250
|
+
}
|
|
251
|
+
free() {
|
|
252
|
+
const ptr = this.__destroy_into_raw();
|
|
253
|
+
wasm.__wbg_hover_free(ptr, 0);
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* The contents of this hover.
|
|
257
|
+
* Note: we always assume it is markdown.
|
|
258
|
+
* @returns {string[]}
|
|
259
|
+
*/
|
|
260
|
+
get contents() {
|
|
261
|
+
const ret = wasm.__wbg_get_hover_contents(this.__wbg_ptr);
|
|
262
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
263
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
264
|
+
return v1;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* The range to which this hover applies. When missing, the
|
|
268
|
+
* editor will use the range at the current position or the
|
|
269
|
+
* current position itself.
|
|
270
|
+
* @returns {Span | undefined}
|
|
271
|
+
*/
|
|
272
|
+
get span() {
|
|
273
|
+
const ret = wasm.__wbg_get_hover_span(this.__wbg_ptr);
|
|
274
|
+
return ret === 0 ? undefined : Span.__wrap(ret);
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* The contents of this hover.
|
|
278
|
+
* Note: we always assume it is markdown.
|
|
279
|
+
* @param {string[]} arg0
|
|
280
|
+
*/
|
|
281
|
+
set contents(arg0) {
|
|
282
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
283
|
+
const len0 = WASM_VECTOR_LEN;
|
|
284
|
+
wasm.__wbg_set_hover_contents(this.__wbg_ptr, ptr0, len0);
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* The range to which this hover applies. When missing, the
|
|
288
|
+
* editor will use the range at the current position or the
|
|
289
|
+
* current position itself.
|
|
290
|
+
* @param {Span | null} [arg0]
|
|
291
|
+
*/
|
|
292
|
+
set span(arg0) {
|
|
293
|
+
let ptr0 = 0;
|
|
294
|
+
if (!isLikeNone(arg0)) {
|
|
295
|
+
_assertClass(arg0, Span);
|
|
296
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
297
|
+
}
|
|
298
|
+
wasm.__wbg_set_hover_span(this.__wbg_ptr, ptr0);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
if (Symbol.dispose) Hover.prototype[Symbol.dispose] = Hover.prototype.free;
|
|
302
|
+
|
|
237
303
|
export class Location {
|
|
238
304
|
static __wrap(ptr) {
|
|
239
305
|
ptr = ptr >>> 0;
|
|
@@ -467,6 +533,34 @@ export class Workspace {
|
|
|
467
533
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
468
534
|
return v3;
|
|
469
535
|
}
|
|
536
|
+
/**
|
|
537
|
+
* @param {string} query
|
|
538
|
+
* @param {Location} location
|
|
539
|
+
* @returns {Span[]}
|
|
540
|
+
*/
|
|
541
|
+
getDefinitions(query, location) {
|
|
542
|
+
const ptr0 = passStringToWasm0(query, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
543
|
+
const len0 = WASM_VECTOR_LEN;
|
|
544
|
+
_assertClass(location, Location);
|
|
545
|
+
var ptr1 = location.__destroy_into_raw();
|
|
546
|
+
const ret = wasm.workspace_getDefinitions(this.__wbg_ptr, ptr0, len0, ptr1);
|
|
547
|
+
var v3 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
548
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
549
|
+
return v3;
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* @param {string} query
|
|
553
|
+
* @param {Location} location
|
|
554
|
+
* @returns {Hover | undefined}
|
|
555
|
+
*/
|
|
556
|
+
getHover(query, location) {
|
|
557
|
+
const ptr0 = passStringToWasm0(query, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
558
|
+
const len0 = WASM_VECTOR_LEN;
|
|
559
|
+
_assertClass(location, Location);
|
|
560
|
+
var ptr1 = location.__destroy_into_raw();
|
|
561
|
+
const ret = wasm.workspace_getHover(this.__wbg_ptr, ptr0, len0, ptr1);
|
|
562
|
+
return ret === 0 ? undefined : Hover.__wrap(ret);
|
|
563
|
+
}
|
|
470
564
|
/**
|
|
471
565
|
* @param {any} options
|
|
472
566
|
*/
|
|
@@ -664,6 +758,10 @@ function __wbg_get_imports() {
|
|
|
664
758
|
const ret = RelatedInformation.__unwrap(arg0);
|
|
665
759
|
return ret;
|
|
666
760
|
},
|
|
761
|
+
__wbg_span_new: function(arg0) {
|
|
762
|
+
const ret = Span.__wrap(arg0);
|
|
763
|
+
return ret;
|
|
764
|
+
},
|
|
667
765
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
668
766
|
const ret = arg1.stack;
|
|
669
767
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -702,6 +800,9 @@ const CompletionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
702
800
|
const DiagnosticFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
703
801
|
? { register: () => {}, unregister: () => {} }
|
|
704
802
|
: new FinalizationRegistry(ptr => wasm.__wbg_diagnostic_free(ptr >>> 0, 1));
|
|
803
|
+
const HoverFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
804
|
+
? { register: () => {}, unregister: () => {} }
|
|
805
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_hover_free(ptr >>> 0, 1));
|
|
705
806
|
const LocationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
706
807
|
? { register: () => {}, unregister: () => {} }
|
|
707
808
|
: new FinalizationRegistry(ptr => wasm.__wbg_location_free(ptr >>> 0, 1));
|
|
Binary file
|