Merge branch 'master' of https://github.com/SuperAuguste/zls into separate_text_mem
This commit is contained in:
commit
6ac068a3c5
@ -140,8 +140,7 @@ pub const TextDocument = struct {
|
||||
text: String,
|
||||
// This holds the memory that we have actually allocated.
|
||||
mem: []u8,
|
||||
sane_text: ?String = "",
|
||||
// tree: ?*std.zig.ast.Tree = null,
|
||||
sane_text: ?String = null,
|
||||
|
||||
pub fn positionToIndex(self: *const TextDocument, position: Position) !usize {
|
||||
var split_iterator = std.mem.split(self.text, "\n");
|
||||
|
Loading…
Reference in New Issue
Block a user