gdscript-eglot: Add goto-char to 0 ,and kill the res file buffer

This commit is contained in:
xiliuya
2023-05-14 19:21:18 +08:00
parent 70a243278a
commit 3995a7b2ae

View File

@@ -61,6 +61,7 @@ https://lists.gnu.org/archive/html/bug-gnu-emacs/2023-04/msg01070.html."
cfg-dir)))
(port
(with-current-buffer cfg-buffer
(goto-char 0)
(and
(re-search-forward
(rx "network/language_server/remote_port"
@@ -68,6 +69,7 @@ https://lists.gnu.org/archive/html/bug-gnu-emacs/2023-04/msg01070.html."
(group (+ digit)))
nil t)
(string-to-number (match-string 1))))))
(kill-buffer cfg-buffer)
;; then return the host-port list when found
(and port (list "localhost" port)))))