emacs-lsp-proxy 0.6.1 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +75 -5
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -15,6 +15,7 @@ The features it supports are:
15
15
  - inlay hints (triggered by `lsp-proxy-inlay-hints-mode`)
16
16
  - documentHighlight/signature (baesd on `eldoc`)
17
17
  - documentSymbols (triggered by `imenu`)
18
+ - GitHub Copilot integration with authentication management and AI-powered code suggestions
18
19
 
19
20
  ![Demo](images/show.gif)
20
21
 
@@ -433,6 +434,8 @@ language-servers = [
433
434
  - Open `*lsp-proxy-log*`
434
435
 
435
436
  ## Commands
437
+
438
+ ### Navigation & Code Intelligence
436
439
  - `lsp-proxy-find-definition`
437
440
  - `lsp-proxy-find-references`
438
441
  - `lsp-proxy-find-declaration`
@@ -445,11 +448,16 @@ language-servers = [
445
448
  - `lsp-proxy-describe-thing-at-point`
446
449
  - `lsp-proxy-show-project-diagnostics`
447
450
 
448
- -----
449
- - lsp-proxy-open-log-file
450
- - lsp-proxy-open-config-file
451
- - lsp-proxy-restart: Restart the server
452
- - lsp-proxy-workspace-restart: Restart the LSP server for the current project
451
+ ### GitHub Copilot Integration
452
+ - `lsp-proxy-copilot-sign-in`: Sign in to GitHub Copilot
453
+ - `lsp-proxy-copilot-sign-out`: Sign out from GitHub Copilot
454
+ - `lsp-proxy-copilot-status`: Check current Copilot authentication status
455
+
456
+ ### Server Management
457
+ - `lsp-proxy-open-log-file`: Open the server log file
458
+ - `lsp-proxy-open-config-file`: Open the language configuration file
459
+ - `lsp-proxy-restart`: Restart the server
460
+ - `lsp-proxy-workspace-restart`: Restart the LSP server for the current project
453
461
 
454
462
  ## Customization
455
463
 
@@ -568,6 +576,68 @@ Flycheck enabled default if flycheck-mode is installed. You can also select *fly
568
576
  (setq lsp-proxy-diagnostics-provider :flymake)
569
577
  ```
570
578
 
579
+ ## GitHub Copilot Integration
580
+
581
+ LSP-Proxy includes built-in support for GitHub Copilot through the `lsp-proxy-copilot.el` module, providing seamless integration with GitHub Copilot's AI-powered code suggestions.
582
+
583
+ ### Features
584
+
585
+ - **Authentication Management**: Sign in and out of GitHub Copilot directly from Emacs
586
+ - **Status Monitoring**: Check your current Copilot authentication status
587
+ - **Browser Integration**: Automatic browser launch for device authentication flow
588
+ - **Cross-platform Support**: Works in both GUI and console modes
589
+
590
+ ### Configuration
591
+
592
+ First, install the GitHub Copilot Language Server globally using npm:
593
+
594
+ ``` bash
595
+ npm i @github/copilot-language-server -g
596
+ ```
597
+
598
+ To enable GitHub Copilot integration, you need to configure the Copilot language server in your `languages.toml` file:
599
+
600
+
601
+ ```toml
602
+ # this is already included in the built-in languages.toml
603
+ [language-server.copilot]
604
+ command = "copilot-langauge-server"
605
+ args = ["--stdio"]
606
+
607
+
608
+ [[language]]
609
+ name = "markdown"
610
+ language-id = "markdown"
611
+ file-types = ["md"]
612
+ language-servers = [{ name = "copilot", support-workspace = true }]
613
+ ```
614
+
615
+ ### Available Commands
616
+
617
+ #### Authentication Commands
618
+
619
+ - **`M-x lsp-proxy-copilot-sign-in`**: Sign in to GitHub Copilot
620
+ - Displays a device code for authentication
621
+ - Opens your browser automatically (in GUI mode)
622
+ - Guides you through the authentication process
623
+
624
+ - **`M-x lsp-proxy-copilot-sign-out`**: Sign out from GitHub Copilot
625
+ - Clears your authentication session
626
+
627
+ - **`M-x lsp-proxy-copilot-status`**: Check current Copilot status
628
+ - Shows authentication state and connection information
629
+
630
+ ### Customization
631
+
632
+ ```elisp
633
+ ;; Customize the Copilot server name (default: "copilot") , if you changed the name in languages.toml, you need to set it here too.
634
+ (setq lsp-proxy-copilot-server-name "copilot")
635
+ ```
636
+
637
+ ### Technical Implementation
638
+
639
+ The GitHub Copilot integration uses LSP-Proxy's generic request forwarding mechanism (`emacs/forwardRequest`), allowing seamless communication with any configured language server, including GitHub Copilot's language server.
640
+
571
641
  ## Org-mode Integration
572
642
 
573
643
  LSP-Proxy provides comprehensive support for org-mode through the `lsp-proxy-org.el` module, enabling LSP features within org-babel source blocks.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emacs-lsp-proxy",
3
- "version": "0.6.1",
3
+ "version": "0.7.1",
4
4
  "scripts": {
5
5
  "postinstall": "node ./install.js"
6
6
  },
@@ -20,11 +20,11 @@
20
20
  ],
21
21
  "author": "jadestrong",
22
22
  "optionalDependencies": {
23
- "@emacs-lsp-proxy/darwin-x64": "0.6.1",
24
- "@emacs-lsp-proxy/darwin-arm64": "0.6.1",
25
- "@emacs-lsp-proxy/linux-x64": "0.6.1",
26
- "@emacs-lsp-proxy/linux-arm64": "0.6.1",
27
- "@emacs-lsp-proxy/win32-x64": "0.6.1"
23
+ "@emacs-lsp-proxy/darwin-x64": "0.7.1",
24
+ "@emacs-lsp-proxy/darwin-arm64": "0.7.1",
25
+ "@emacs-lsp-proxy/linux-x64": "0.7.1",
26
+ "@emacs-lsp-proxy/linux-arm64": "0.7.1",
27
+ "@emacs-lsp-proxy/win32-x64": "0.7.1"
28
28
  },
29
29
  "license": "ISC",
30
30
  "description": "An LSP client for Emacs implemented in Rust."