Skip to content

Commit 124aa57

Browse files
committed
Move protocol definition to a separated file
1 parent 9097f70 commit 124aa57

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

lsp-dart-outline.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
(require 'lsp-treemacs)
2323

24+
(require 'lsp-dart-protocol)
2425
(require 'lsp-dart-utils)
2526
(require 'lsp-dart-code-lens)
2627
(require 'lsp-dart-flutter-widget-guide)
@@ -60,8 +61,6 @@ Defaults to side following treemacs default."
6061

6162
;;; Internal
6263

63-
(lsp-interface (OutlineNotification (:uri :outline) nil))
64-
6564
(defun lsp-dart-outline--set-metadata (workspace params key-prefix)
6665
"Save in WORKSPACE the PARAMS metadata with KEY-PREFIX.
6766
The key is composed of the KEY-PREFIX with PARAMS uri path."

lsp-dart-protocol.el

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
;;; lsp-dart-protocol.el --- lsp-dart custom protocol -*- lexical-binding: t; -*-
2+
;;
3+
; This program is free software; you can redistribute it and/or modify
4+
;; it under the terms of the GNU General Public License as published by
5+
;; the Free Software Foundation, either version 3 of the License, or
6+
;; (at your option) any later version.
7+
8+
;; This program is distributed in the hope that it will be useful,
9+
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
;; GNU General Public License for more details.
12+
13+
;; You should have received a copy of the GNU General Public License
14+
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
15+
;;
16+
;; This file is not part of GNU Emacs.
17+
;;
18+
;;; Commentary:
19+
;;
20+
;; lsp-dart custom protocol
21+
;;
22+
;;; Code:
23+
24+
(require 'lsp-protocol)
25+
26+
(lsp-interface (OutlineNotification (:uri :outline) nil))
27+
28+
(provide 'lsp-dart-protocol)
29+
;;; lsp-dart-protocol.el ends here

0 commit comments

Comments
 (0)