Skip to content

Commit

Permalink
Reword manual-sync variable to manual-setup for clarity
Browse files Browse the repository at this point in the history
Synchronization of buffers was already done manually, in
`tide-sync-buffer-contents`.
  • Loading branch information
robbert-vdh committed Nov 21, 2017
1 parent 0874c32 commit ef8716a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tide.el
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ above."
(tide-def-permanent-buffer-local tide-buffer-dirty nil)
(tide-def-permanent-buffer-local tide-buffer-tmp-file nil)
(tide-def-permanent-buffer-local tide-active-buffer-file-name nil)
(tide-def-permanent-buffer-local tide-require-manual-sync nil)
(tide-def-permanent-buffer-local tide-require-manual-setup nil)

(defvar tide-servers (make-hash-table :test 'equal))
(defvar tide-response-callbacks (make-hash-table :test 'equal))
Expand Down Expand Up @@ -645,7 +645,7 @@ If TIDE-TSSERVER-EXECUTABLE is set by the user use it. Otherwise check in the n

(defun tide-command:openfile ()
(tide-send-command "open"
(if tide-require-manual-sync
(if tide-require-manual-setup
`(:file
,(tide-buffer-file-name)
:scriptKindName ,tide-default-mode
Expand Down Expand Up @@ -1601,7 +1601,7 @@ code-analysis."
;; case we should either add an ignore list or don't do anything at all when
;; there are more than a certain amount of snippets.
(unless (stringp buffer-file-name)
(setq tide-require-manual-sync t))
(setq tide-require-manual-setup t))

(tide-start-server-if-required)
(tide-mode 1)
Expand All @@ -1617,7 +1617,7 @@ code-analysis."
;; tsconfig.json, otherwise the file will be loaded as part of an 'inferred
;; project'. This won't be necessary anymore after TypeScript allows defining
;; custom file extensions. https://github.com/Microsoft/TypeScript/issues/8328
(when (and tide-require-manual-sync (tide-buffer-file-name))
(when (and tide-require-manual-setup (tide-buffer-file-name))
(tide-command:projectInfo
(lambda (response)
(tide-on-response-success response nil
Expand Down

0 comments on commit ef8716a

Please sign in to comment.