Vscode.TextDocumentval fileName : t -> stringval isUntitled : t -> boolval languageId : t -> stringval version : t -> intval isDirty : t -> boolval isClosed : t -> boolval save : t -> bool Promise.tval eol : t -> EndOfLine.tval lineCount : t -> intval lineAt : t -> line:int -> TextLine.tval lineAtPosition : t -> position:Position.t -> TextLine.tval offsetAt : t -> position:Position.t -> intval positionAt : t -> offset:int -> Position.tval getWordRangeAtPosition : 
  t ->
  position:Position.t ->
  ?regex:Js_of_ocaml.Regexp.regexp ->
  unit ->
  Range.t optionval validatePosition : t -> position:Position.t -> Position.t