fix init error

This commit is contained in:
SuperAuguste 2020-05-07 12:47:39 -04:00
parent 6b099f8c6d
commit 447d52dd1c

View File

@ -137,7 +137,7 @@ pub const PublishDiagnosticsParams = struct {
pub const TextDocument = struct { pub const TextDocument = struct {
uri: DocumentUri, uri: DocumentUri,
text: String, text: String,
sane_text: ?String = "", sane_text: ?String = null,
pub fn positionToIndex(self: *const TextDocument, position: Position) !usize { pub fn positionToIndex(self: *const TextDocument, position: Position) !usize {
var split_iterator = std.mem.split(self.text, "\n"); var split_iterator = std.mem.split(self.text, "\n");