scanText parses the full document line-by-line on the GUI thread on every save. Split it so parsing runs in a worker on the text snapshot, producing plain data (headings, tags, counts) merged into the index structures on the main thread. Best folded into the planned index/outline refactor.
Part of #2923.
scanTextparses the full document line-by-line on the GUI thread on every save. Split it so parsing runs in a worker on the text snapshot, producing plain data (headings, tags, counts) merged into the index structures on the main thread. Best folded into the planned index/outline refactor.Part of #2923.