Skip to content

Commit 1b5139f

Browse files
committed
Migrate flutter fringe colors
1 parent 7ced474 commit 1b5139f

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

lsp-dart-flutter-fringe.el renamed to lsp-dart-flutter-fringe-colors.el

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; lsp-dart-flutter-fringe.el --- Dart fringe tools -*- lexical-binding: t; -*-
1+
;;; lsp-dart-flutter-fringe-colors.el --- Flutter fringe colors -*- lexical-binding: t; -*-
22
;;
33
;; This program is free software; you can redistribute it and/or modify
44
;; it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
1515

1616
;;; Commentary:
1717

18-
;; LSP dart support for fringe
18+
;; Flutter support for fringe colors
1919

2020
;;; Code:
2121

@@ -102,11 +102,5 @@
102102
(remove-overlays (point-min) (point-max) 'lsp-dart-flutter-fringe-colors t)
103103
(remove-hook 'lsp-on-change-hook #'lsp-dart-flutter-fringe--update-colors t)))))
104104

105-
(when lsp-dart-flutter-fringe-colors
106-
(add-hook 'lsp-after-open-hook
107-
(lambda ()
108-
(when (lsp-find-workspace 'dart_analysis_server nil)
109-
(lsp-dart-flutter-fringe-colors-mode)))))
110-
111-
(provide 'lsp-dart-flutter-fringe)
112-
;;; lsp-dart-flutter-fringe.el ends here
105+
(provide 'lsp-dart-flutter-fringe-colors)
106+
;;; lsp-dart-flutter-fringe-colors.el ends here

lsp-dart.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
(require 'lsp-dart-flutter-daemon)
3434
(require 'lsp-dart-closing-labels)
3535
(require 'lsp-dart-outline)
36-
(require 'lsp-dart-flutter-fringe)
36+
(require 'lsp-dart-flutter-fringe-colors)
3737
(require 'lsp-dart-flutter-widget-guide)
3838

3939
(defgroup lsp-dart nil
@@ -104,7 +104,9 @@ PARAMS is the data sent from server."
104104
(defun lsp-dart--activate-features ()
105105
"Activate lsp-dart features if enabled."
106106
(when lsp-dart-flutter-widget-guides
107-
(lsp-dart-flutter-widget-guides-mode 1)))
107+
(lsp-dart-flutter-widget-guides-mode 1))
108+
(when lsp-dart-flutter-fringe-colors
109+
(lsp-dart-flutter-fringe-colors-mode 1)))
108110

109111
(lsp-register-client
110112
(make-lsp-client :new-connection

0 commit comments

Comments
 (0)