File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 3939(depends-on "markdown-mode")
4040(depends-on "lv")
4141(depends-on "eldoc")
42+ (depends-on "uuidgen")
4243
4344(development
4445 (depends-on "flycheck")
Original file line number Diff line number Diff line change 2525; ; LSP client for the Copilot Language Server:
2626; ; https://www.npmjs.com/package/@github/copilot-language-server
2727
28- ; ; Package-Requires: (lsp-mode secrets s compile dash cl-lib request company )
28+ ; ; Package-Requires: (lsp-mode secrets s compile dash cl-lib request uuidgen )
2929
3030; ; Code:
3131
3232(require 'dash )
3333(require 'lsp-mode )
3434(require 's )
35+ (require 'uuidgen )
36+ (require 'lsp-inline-completion )
3537
3638(defgroup lsp-copilot ()
3739 " Copilot LSP configuration"
@@ -94,6 +96,11 @@ The input are the file name and the major mode of the buffer."
9496
9597; ;; Panel Completion
9698
99+ (declare-function company--active-p " ext:company" )
100+ (declare-function company-cancel " ext:company" (&optional result))
101+ (declare-function org-forward-heading-same-level " ext:org" (arg &optional invisible-ok))
102+ (declare-function org-backward-heading-same-level " ext:org" (arg &optional invisible-ok))
103+ (declare-function org-down-element " ext:org" )
97104(defvar-local lsp-copilot-panel-completion-items nil
98105 " A list of completion items returned by the Panel Completion call" )
99106
@@ -249,7 +256,7 @@ The input are the file name and the major mode of the buffer."
249256 (lsp-copilot--panel-display-buffer (buffer-name ) lsp-copilot-panel-completion-items lsp-copilot-panel-modification-tick)
250257 (lsp--error " No completions to display" )))
251258
252- (defun lsp-copilot--panel-completions-progress-handler (workspace params )
259+ (defun lsp-copilot--panel-completions-progress-handler (_ params )
253260 (-let* (((&ProgressParams :token :value ) params)
254261 ((action completing-buffer-name panel-completion-token) (string-split token " /// " )))
255262 (pcase action
You can’t perform that action at this time.
0 commit comments