Skip to content

Commit dc60708

Browse files
committed
Fix analyzer status performance
1 parent a490264 commit dc60708

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lsp-dart.el

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,17 @@ imported into the current file."
9292
"--client-id emacs.lsp-dart"
9393
,client-version))))
9494

95-
(lsp-defun lsp-dart--handle-analyzer-status (workspace (&AnalyzerStatusNotification :is-analyzing))
95+
(lsp-defun lsp-dart--handle-analyzer-status (_workspace (&AnalyzerStatusNotification :is-analyzing))
9696
"Handle analyzer status notification for WORKSPACE.
9797
PARAMS is the data sent from server."
98-
(when (and (not (lsp-dart-flutter-daemon--running-p))
99-
(lsp-dart--flutter-project-p))
100-
(lsp-dart-flutter-daemon-start))
10198
(if is-analyzing
102-
(lsp-dart-workspace-status "Analyzing project..." workspace)
103-
(lsp-dart-workspace-status nil workspace)))
99+
(lsp--spinner-start)
100+
(lsp--spinner-stop)))
104101

105102
(defun lsp-dart--activate-features ()
106103
"Activate lsp-dart features if enabled."
104+
(when (lsp-dart--flutter-project-p)
105+
(lsp-dart-flutter-daemon-start))
107106
(when lsp-dart-flutter-widget-guides
108107
(lsp-dart-flutter-widget-guides-mode 1))
109108
(when lsp-dart-flutter-fringe-colors

0 commit comments

Comments
 (0)