branch: elpa/dart-mode
commit 4feac341db7d2b80841fedcf1798dee9070d68bf
Author: Natalie Weizenbaum <[email protected]>
Commit: Natalie Weizenbaum <[email protected]>

    Make sure to provide the full buffer in dart-add-analysis-overlay
---
 dart-mode.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dart-mode.el b/dart-mode.el
index 3bee663..832d241 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -837,7 +837,9 @@ errors for the current contents of the buffer, not whatever 
is saved to disk."
    "analysis.updateContent"
    `((files .
             ((,buffer-file-name . ((type . "add")
-                                   (content . ,(buffer-string)))))))))
+                                   (content . ,(save-restriction
+                                                 (widen)
+                                                 (buffer-string))))))))))
 
 (defun dart-change-analysis-overlay
     (change-begin change-end change-before-length)

Reply via email to