@@ -433,7 +433,7 @@ You can change the installed version with `M-x copilot-reinstall-server` or remo
433433 " Login to Copilot."
434434 (interactive )
435435 (copilot--dbind
436- (: status : user :userCode user-code :verificationUri verification-uri)
436+ (status user (( :userCode user-code)) (( :verificationUri verification-uri)) )
437437 (copilot--request 'signInInitiate '(:dummy " signInInitiate" ))
438438 (when (string-equal status " AlreadySignedIn" )
439439 (user-error " Already signed in as %s" user))
@@ -452,7 +452,7 @@ automatically, browse to %s." user-code verification-uri))
452452 (copilot--request 'signInConfirm (list :userCode user-code))
453453 (jsonrpc-error
454454 (user-error " Authentication failure: %s" (alist-get 'jsonrpc-error-message (cddr err)))))
455- (copilot--dbind (: user ) (copilot--request 'checkStatus '(:dummy " checkStatus" ))
455+ (copilot--dbind (user) (copilot--request 'checkStatus '(:dummy " checkStatus" ))
456456 (copilot--log 'info " Authenticated as GitHub user %s." user))))
457457
458458(defun copilot-logout ()
@@ -706,7 +706,7 @@ automatically, browse to %s." user-code verification-uri))
706706(defun copilot--handle-notification (_ method msg )
707707 " Handle MSG of type METHOD."
708708 (when (eql method 'PanelSolution )
709- (copilot--dbind (:completionText completion-text :score completion-score) msg
709+ (copilot--dbind ((( :completionText completion-text)) (( :score completion-score)) ) msg
710710 (with-current-buffer " *copilot-panel*"
711711 (unless (member (secure-hash 'sha256 completion-text)
712712 (org-map-entries (lambda () (org-entry-get nil " SHA" ))))
@@ -915,15 +915,16 @@ provided."
915915 " Show COMPLETION-DATA."
916916 (when (copilot--satisfy-display-predicates)
917917 (copilot--dbind
918- (:text :uuid :docVersion doc-version
919- :range (:start (:line :character start-char)
920- :end (:character end-char)))
918+ (text uuid ((:docVersion doc-version)) range)
921919 completion-data
922920 (when (= doc-version copilot--doc-version)
923921 (save-excursion
924922 (save-restriction
925923 (widen )
926924 (let* ((p (point ))
925+ (line (map-nested-elt range '(:start :line )))
926+ (start-char (map-nested-elt range '(:start :character )))
927+ (end-char (map-nested-elt range '(:end :character )))
927928 (goto-line! (lambda ()
928929 (goto-char (point-min ))
929930 (forward-line (1- (+ line copilot--line-bias)))))
0 commit comments