File tree Expand file tree Collapse file tree 6 files changed +310
-41
lines changed Expand file tree Collapse file tree 6 files changed +310
-41
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ lsp-dart supports running Flutter and Dart commands as following:
184184|  ` lsp-dart-flutter-outline-position-params `        |  The Flutter outline tree position params                                                                                                                                             |  Left side         | 
185185|  ` lsp-dart-flutter-fringe-colors `                  |  Enable the Flutter colors on fringe.                                                                                                                                                 |  ` t `                | 
186186|  ` lsp-dart-flutter-widget-guides `                  |  Enable the Flutter widget guide lines from parent to child widgets                                                                                                                   |  ` t `                | 
187+ |  ` lsp-dart-test-pop-to-buffer-on-run `              |  Whether to pop to tests buffer on run, only display or do nothing.                                                                                                                   |  ` display-only `     | 
187188|  ` lsp-dart-main-code-lens `                         |  Enable the ` Run\|Debug `  code lens on main methods.                                                                                                                                   |  ` t `                | 
188189|  ` lsp-dart-test-code-lens `                         |  Enable the ` Run\|Debug `  code lens on tests.                                                                                                                                          |  ` t `                | 
189190|  ` lsp-dart-dap-extension-version `                  |  The debugger extension version.                                                                                                                                                      |  3.10.1            | 
Original file line number Diff line number Diff line change @@ -141,10 +141,10 @@ RANGE is the overlay range to build."
141141                           (line-beginning-position )))
142142          (spaces (make-string  beg-position ?\s ))
143143          (overlay (make-overlay  beg-line end buffer))
144-           (test (make-lsp-dart-test :file-name  (buffer-file-name  buffer)
145-                                     :names  names
146-                                     :position  beg
147-                                     :kind  kind))
144+           (test (make-lsp-dart-test-len  :file-name  (buffer-file-name  buffer)
145+                                          :names  names
146+                                          :position  beg
147+                                          :kind  kind))
148148          (separator (propertize  "  "   'font-lock-face  'lsp-dart-code-lens-separator )))
149149    (overlay-put  overlay 'lsp-dart-test-code-lens  t )
150150    (overlay-put  overlay 'lsp-dart-test  test)
Original file line number Diff line number Diff line change 5959      (make-comint-in-buffer  lsp-dart-flutter-daemon-name buffer (lsp-dart-flutter-command) nil  " daemon"  )
6060      (with-current-buffer  buffer
6161        (unless  (derived-mode-p  'lsp-dart-flutter-daemon-mode )
62-           (lsp-dart-flutter-daemon-mode)))
63-       (remove-hook  'comint-output-filter-functions  #'lsp-dart-flutter-daemon--handle-responses  )
64-       (remove-hook  'dap-terminated-hook  #'lsp-dart-flutter-daemon--reset-current-device  )
65-       (add-hook  'comint-output-filter-functions  #'lsp-dart-flutter-daemon--handle-responses  )
66-       (add-hook  'dap-terminated-hook  #'lsp-dart-flutter-daemon--reset-current-device  )
62+           (lsp-dart-flutter-daemon-mode))
63+         (remove-hook  'dap-terminated-hook  #'lsp-dart-flutter-daemon--reset-current-device   t )
64+         (add-hook  'dap-terminated-hook  #'lsp-dart-flutter-daemon--reset-current-device   nil  t )
65+         (setq-local  comint-output-filter-functions #'lsp-dart-flutter-daemon--handle-responses  ))
6766      (lsp-dart-flutter-daemon--send " device.enable"  ))))
6867
6968(defun  lsp-dart-flutter-daemon--build-command  (id  method  &optional  params )
Original file line number Diff line number Diff line change 5353 (FlutterDaemonDevice (:id  :name  :platform  :category  :platformType  :ephemeral  :emulator ) (:isDevice ))
5454 (FlutterDaemonEmulatorLaunch (:emulatorId )))
5555
56+ (lsp-interface
57+  (Notification (:type  :time ) nil )
58+  (StartNotification (:type  :time  :protocolVersion ) (:runnerVersion ))
59+  (AllSuitesNotification (:type  :time  :count ) nil )
60+  (SuiteNotification (:type  :time  :suite ) nil )
61+  (Suite (:id  :platform  :path ) nil )
62+  (Test (:id  :suiteID  :groupIDs ) (:name  :line  :column  :url  :root_line  :root_column  :root_url ))
63+  (TestNotification (:type  :time  :test ) nil )
64+  (Group (:testCount ) (:parentID ))
65+  (GroupNotification (:type  :time  :group ) nil )
66+  (TestStartNotification (:type  :time  :test ) nil )
67+  (TestDoneNotification (:type  :time  :testID  :result  :skipped  :hidden ) nil )
68+  (DoneNotification (:type  :time  :success ) nil )
69+  (PrintNotification (:type  :time  :testID  :messageType  :message ) nil )
70+  (ErrorNotification (:type  :time  :testID  :error  :stackTrace  :isFailure ) nil ))
71+ 
5672(provide  'lsp-dart-protocol )
5773; ;; lsp-dart-protocol.el ends here
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments