Skip to content

Commit ad38dab

Browse files
authored
lsp-copilot: Replace LSP server with the official GitHub one (#4710)
1 parent d3a44da commit ad38dab

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

clients/lsp-copilot.el

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"Copilot LSP configuration"
3737
:group 'lsp-mode
3838
:tag "Copilot LSP"
39-
:link '(url-link "https://www.npmjs.com/package/copilot-node-server"))
39+
:link '(url-link "https://www.npmjs.com/package/@github/copilot-language-server"))
4040

4141
(defcustom lsp-copilot-enabled nil
4242
"Whether the server should be started to provide completions."
@@ -48,7 +48,7 @@
4848
:type '(repeat string)
4949
:group 'lsp-copilot)
5050

51-
(defcustom lsp-copilot-executable "copilot-lsp"
51+
(defcustom lsp-copilot-executable "copilot-language-server"
5252
"The system-wise executable of lsp-copilot.
5353
When this executable is not found, you can stil use
5454
lsp-install-server to fetch an emacs-local version of the LSP."
@@ -71,16 +71,16 @@ The input are the file name and the major mode of the buffer."
7171
:type 'boolean
7272
:group 'lsp-copilot)
7373

74-
(defcustom lsp-copilot-version "1.41.0"
74+
(defcustom lsp-copilot-version "1.270.0"
7575
"Copilot version."
7676
:type '(choice (const :tag "Latest" nil)
7777
(string :tag "Specific Version"))
7878
:group 'lsp-copilot)
7979

8080
(lsp-dependency 'copilot-ls
8181
`(:system ,lsp-copilot-executable)
82-
'(:npm :package "copilot-node-server"
83-
:path "copilot-node-server"
82+
'(:npm :package "@github/copilot-language-server"
83+
:path "copilot-language-server"
8484
:version lsp-copilot-version))
8585

8686
(defun lsp-copilot--find-active-workspaces ()
@@ -211,6 +211,7 @@ automatically, browse to %s." user-code verification-uri))
211211
("$/progress" (lambda (&rest args) (lsp-message "$/progress with %S" args)))
212212
("featureFlagsNotification" #'ignore)
213213
("statusNotification" #'ignore)
214+
("didChangeStatus" #'ignore)
214215
("window/logMessage" #'lsp--window-log-message)
215216
("conversation/preconditionsNotification" #'ignore))))
216217

0 commit comments

Comments
 (0)