a92e364e37
Clean up re-parse range identification logic
6d77862b78
Collapse process query match logic back into tree_sitter_code_index_update_process_query_match
30ac43ce66
Prevent re-parsing the whole file by identifying the node containing the edit, or the node immediately before and after the edit, and parsing only those. Fall back to root for empty file case
12322796c2
Incrementally re-parse notes and scope delimiters within the range of a single edit.
6d77862b78
Collapse process query match logic back into tree_sitter_code_index_update_process_query_match
30ac43ce66
Prevent re-parsing the whole file by identifying the node containing the edit, or the node immediately before and after the edit, and parsing only those. Fall back to root for empty file case
12322796c2
Incrementally re-parse notes and scope delimiters within the range of a single edit.
6d7f1281b2
Allocate Scope_Delims and Notes from free list before allocating in chunks
69dc4f8e04
Remove Code_Index_Note_Ptr_Array from the codebase, use Code_Index_Note_List instead
ee082e42d1
tree_sitter_parse_full_file_async no longer updates the code index
a072229d20
Removing unused function get_token_array_from_buffer_no_wait
a34a24f4e7
Passing the old and new ranges from buffer_edit_range to Buffer_Tree_Sitter_Data so it can be accessed in the tick for incremental code index updating
b56bd7caa8
Move code index updating to happen to modified buffers on the tick hook. This will unify the separate paths for updating the code index.
94991304b5
Temporarily move all tree-sitter operations to be synchronous
3f9b803c62
Move tree-sitter code index updating to an async process to unblock the ui while processing large files
ae7440aa0b
custom_render_buffer only requests the token array if it's being used for a feature the user actually requested since requesting the tokens needs to take the lock on the token array.
84b1b15fbb
Implement get_token_array_from_buffer_no_wait to return an empty array if the lex task is currently running
18428ec90d
Pull tree_sitter_code_index_update_single_buffer out as it's own routine, and use it in tree_sitter_parse_asyn__inner to avoid setting the buffer_modified flag
54b162faa4
Pull tree_sitter_code_index_update_single_buffer out as it's own routine, and use it in tree_sitter_parse_asyn__inner to avoid setting the buffer_modified flag
43fb4a757a
Implement Tree_Sitter_Language_Definition, handle registering languages by extension, and looking up the appropriate language definition for a buffer.