-
Notifications
You must be signed in to change notification settings - Fork 24
/
lsp-dart-protocol.el
73 lines (61 loc) · 2.75 KB
/
lsp-dart-protocol.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
;;; lsp-dart-protocol.el --- lsp-dart custom protocol definitions -*- lexical-binding: t; -*-
;;
;; Copyright (C) 2022 Eric Dallo
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;
;;; Commentary:
;;
;; lsp-dart custom protocol definitions
;;
;;; Code:
(require 'lsp-protocol)
(lsp-interface
(DartConfiguration nil (:dart.enableSdkFormatter :dart.lineLength)))
(lsp-interface
(AnalyzerStatusNotification (:isAnalyzing) nil))
(lsp-interface
(ClosingLabelsNotification (:uri :labels) nil)
(ClosingLabel (:label :range) nil))
(lsp-interface
(OutlineNotification (:uri :outline) nil)
(Outline (:element :range :codeRange :children) nil)
(Element (:name :range :kind) (:parameters :typeParameters :returnType)))
(lsp-interface
(FlutterOutlineNotification (:uri :outline) nil)
(FlutterOutline (:range :codeRange :children :kind) (:dartElement :label :className :variableName :attributes))
(FlutterOutlineAttribute (:name :label) nil))
(lsp-interface
(FlutterWidgetGuide ()))
(lsp-interface
(FlutterDaemonCommand (:id :method) (:params))
(FlutterDaemonResponse (:id) (:result :event :params))
(FlutterDaemonResponseParams nil (:level :message))
(FlutterDaemonDevice (:id :name :platform :category :platformType :ephemeral :emulator) (:isDevice :emulatorId))
(FlutterDaemonEmulatorLaunch (:emulatorId)))
(lsp-interface
(StartNotification (:type :time :protocolVersion) (:runnerVersion))
(AllSuitesNotification (:type :time :count) nil)
(SuiteNotification (:type :time :suite) nil)
(Suite (:id :platform :path) nil)
(Test (:id :suiteID :groupIDs) (:name :line :column :url :root_line :root_column :root_url))
(TestNotification (:type :time :test) nil)
(GroupMetadata (:skip) nil)
(Group (:id :suiteID :testCount) (:parentID :name :url :line :column :metadata))
(GroupNotification (:type :time :group) nil)
(TestStartNotification (:type :time :test) nil)
(TestDoneNotification (:type :time :testID :result :skipped :hidden) nil)
(DoneNotification (:type :time :success) nil)
(PrintNotification (:type :time :testID :messageType :message) nil)
(ErrorNotification (:type :time :testID :error :stackTrace :isFailure) nil))
(provide 'lsp-dart-protocol)
;;; lsp-dart-protocol.el ends here