Skip to content

Commit d07ca9b

Browse files
committed
fix wasm
1 parent ea0ea75 commit d07ca9b

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

build.zig.zon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.name = .superhtml,
33
.version = "0.4.0",
44
.fingerprint = 0xc5e9aede3c1db363,
5-
.minimum_zig_version = "0.15.0-dev.1222+5fb36d260",
5+
.minimum_zig_version = "0.15.0-dev.1413+fcb088cb6",
66
.dependencies = .{
77
.afl_kit = .{
88
.url = "git+https://github.com/kristoff-it/zig-afl-kit#8ef04d1db48650345dca68da1e1b8f2615125c40",
@@ -18,8 +18,8 @@
1818
.hash = "tracy-0.0.0-4Xw-1pwwAABTfMgoDP1unCbZDZhJEfict7XCBGF6IdIn",
1919
},
2020
.lsp_kit = .{
21-
.url = "git+https://github.com/zigtools/lsp-kit#4835b9d3d3cf732fe1830189d81f331c68fb3e77",
22-
.hash = "lsp_kit-0.1.0-bi_PL18tCgAMyrZ0tgn_0PXnGEvxGWeNkkRygfe9pX9u",
21+
.url = "git+https://github.com/zigtools/lsp-kit#33f2563aba7b49b9747ee272de3f1143b90f1e64",
22+
.hash = "lsp_kit-0.1.0-bi_PLwouCgASnviwDjnUABTBF4NTymYi2QT1wopygXNw",
2323
},
2424
.scripty = .{
2525
.url = "git+https://github.com/kristoff-it/scripty#76581b7e442f98e2a73769125fa68f07d2a7841b",

src/cli/lsp.zig

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,10 +525,12 @@ pub fn @"textDocument/completion"(
525525
self.offset_encoding,
526526
);
527527

528-
const completions = doc.html.completions(arena, @intCast(offset));
528+
_ = offset;
529+
_ = arena;
530+
return null;
531+
// const completions = doc.html.completions(arena, @intCast(offset));
529532

530-
_ = completions;
531-
@panic("TODO");
533+
// _ = completions;
532534
}
533535

534536
pub fn onResponse(

src/cli/lsp/logic.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const Handler = lsp_namespace.Handler;
66
const getRange = Handler.getRange;
77
const Document = @import("Document.zig");
88

9-
const log = std.log.scoped(.ziggy_lsp);
9+
const log = std.log.scoped(.logic);
1010

1111
pub fn loadFile(
1212
self: *Handler,

src/html/Ast.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ pub fn completions(ast: Ast, gpa: Allocator, offset: u32) []const []const u8 {
10381038
_ = ast;
10391039
_ = gpa;
10401040
_ = offset;
1041-
@panic("TODOv");
1041+
return &.{};
10421042
}
10431043

10441044
fn at(ast: Ast, idx: u32) ?Node {

0 commit comments

Comments
 (0)