fix
This commit is contained in:
parent
1725278be1
commit
6b099f8c6d
@ -138,7 +138,6 @@ pub const TextDocument = struct {
|
|||||||
uri: DocumentUri,
|
uri: DocumentUri,
|
||||||
text: String,
|
text: String,
|
||||||
sane_text: ?String = "",
|
sane_text: ?String = "",
|
||||||
// tree: ?*std.zig.ast.Tree = 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");
|
||||||
|
Loading…
Reference in New Issue
Block a user