Fix timing invalidate status bar (#954)

This commit is contained in:
1024jp 2019-05-12 00:59:46 +09:00
parent 95661198ff
commit d870d64c0d
2 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,7 @@ Change Log
### Fixes
- Fix an issue where needless live document analysis performed even when the status bar and inspector are invisible.
- Fix an issue where needless live document analysis performed even when the status bar and inspector are invisible.
- Fix missing localization.

View File

@ -85,13 +85,14 @@ final class StatusBarController: NSViewController {
/// request analyzer to update editor info
override func viewDidAppear() {
override func viewWillAppear() {
super.viewDidAppear()
super.viewWillAppear()
assert(self.documentAnalyzer != nil)
self.documentAnalyzer?.needsUpdateStatusEditorInfo = true
self.documentAnalyzer?.invalidateEditorInfo()
}