mirror of
https://github.com/godotengine/emacs-gdscript-mode.git
synced 2026-01-05 22:10:05 +03:00
gdscript-eglot: Add goto-char to 0 ,and kill the res file buffer
This commit is contained in:
@@ -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)))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user