         
         self.document?.analyzer.invalidateEditorInfo()
         self.document?.incompatibleCharacterScanner.invalidate()
-        self.syntaxParser?.invalidateOutline()
+        self.outlineParseTask.schedule()
         
         // -> Perform in the next run loop to give layoutManagers time to update their values.
         DispatchQueue.main.async { [weak self] in

    private var opacityObserver: UserDefaultsObservation?
    private var sheetAvailabilityObservers: Set<AnyCancellable> = []
    private var themeChangeObserver: AnyCancellable?
    private weak var syntaxHighlightProgress: Progress?
    
    @IBOutlet private weak var splitViewItem: NSSplitViewItem?

            self.setup(editorViewController: editorViewController, baseViewController: nil)
            
            // start parcing syntax for highlighting and outline menu
            self.outlineParseTask.perform()
            self.invalidateSyntaxHighlight()
            
            // detect indent style
