Browse Source

Fix parsing JS buffers when debugging

* indium-debugger.el (indium-debugger-setup-buffer): Instead of looking if the
  buffer is dirty to reparse, call `js2-reparse` which handles parsing
  interruptions.
workspaces
Nicolas Petton 4 years ago
parent
commit
4769ab443e
Signed by: nico GPG Key ID: 233587A47C207910
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      indium-debugger.el

+ 2
- 3
indium-debugger.el View File

@ -397,9 +397,8 @@ frame."
(eq major-mode indium-debugger-major-mode))
(funcall indium-debugger-major-mode))
(indium-debugger-mode 1)
(when (and (eq major-mode 'js2-mode)
js2-mode-buffer-dirty-p)
(js2-parse))
(when (eq major-mode 'js2-mode)
(js2-reparse))
(read-only-mode)))
(defun indium-debugger-unset-current-buffer ()


Loading…
Cancel
Save