branch: elpa/graphql-mode
commit 04e56ae6266d50eb0e18e905a3a10b99a0b7223a
Author: David Vázquez Púa <[email protected]>
Commit: David Vázquez Púa <[email protected]>
Disable json-mode for response temporarily
---
graphql-mode.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/graphql-mode.el b/graphql-mode.el
index b85c0e7e86..27c857e36f 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -168,7 +168,14 @@ of the variables used in the query."
"*GraphQL*" 'display-buffer-pop-up-window nil
(erase-buffer)
(when (fboundp 'json-mode)
- (json-mode))
+ ;; TODO: This line has been disabled temporarily as
+ ;; json-mode does not support enabling the mode for buffers
+ ;; without files at this point:
+ ;;
+ ;; https://github.com/joshwnj/json-mode/issues/55
+ ;;
+ ;; (json-mode)
+ )
(insert response)
(json-pretty-print-buffer))))
;; If the query was successful, then save the value of graphql-url