From 6b099f8c6d77d3219b804d8719f6ed628cf4c7f5 Mon Sep 17 00:00:00 2001 From: SuperAuguste Date: Thu, 7 May 2020 12:25:37 -0400 Subject: [PATCH 1/2] fix --- src/types.zig | 1 - 1 file changed, 1 deletion(-) diff --git a/src/types.zig b/src/types.zig index 510e59d..9dc0f99 100644 --- a/src/types.zig +++ b/src/types.zig @@ -138,7 +138,6 @@ pub const TextDocument = struct { uri: DocumentUri, text: String, sane_text: ?String = "", - // tree: ?*std.zig.ast.Tree = null, pub fn positionToIndex(self: *const TextDocument, position: Position) !usize { var split_iterator = std.mem.split(self.text, "\n"); From 447d52dd1c588e65f3ebcae33317663c873c96d7 Mon Sep 17 00:00:00 2001 From: SuperAuguste Date: Thu, 7 May 2020 12:47:39 -0400 Subject: [PATCH 2/2] fix init error --- src/types.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.zig b/src/types.zig index 9dc0f99..bdf97d0 100644 --- a/src/types.zig +++ b/src/types.zig @@ -137,7 +137,7 @@ pub const PublishDiagnosticsParams = struct { pub const TextDocument = struct { uri: DocumentUri, text: String, - sane_text: ?String = "", + sane_text: ?String = null, pub fn positionToIndex(self: *const TextDocument, position: Position) !usize { var split_iterator = std.mem.split(self.text, "\n");