Skip to content

Commit 2072371

Browse files
authored
revert: back to before the binary update (#412)
* Revert "fix: add wget fallback, prevent Copilot from re-attaching upon startup error" This reverts commit 2a43872. * Revert "fix: use vim built-in mkdir to create the directory" This reverts commit 535ebb5. * Revert "fix: remove -p in folder creation as it is not supported by some shells" This reverts commit 996194e. * Revert "chore: add logging" This reverts commit 066193f. * Revert "fix: attempt to resolve a "cookies must be enabled" error" This reverts commit 0da7ebc. * Revert "feat: add ability to set custom copilot binary" This reverts commit 0e3585b. * Revert "refactor: remove deprecated setEditorInfo API calls and follow new SDK (#406)" This reverts commit 73dbc0e. * Revert "feat: move to the official Copilot LSP binaries (#384)" This reverts commit af15584.
1 parent 2a43872 commit 2072371

34 files changed

+301658
-449
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Update copilot/dist
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
push:
7+
branches: [master]
8+
9+
jobs:
10+
update_copilot_dist:
11+
runs-on: ubuntu-latest
12+
name: Update copilot/dist
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
17+
- name: Checkout github/copilot.vim
18+
uses: actions/checkout@v3
19+
with:
20+
repository: github/copilot.vim
21+
fetch-depth: 1
22+
path: copilot.vim
23+
24+
- name: Copy latest copilot.vim/dist
25+
run: |
26+
cp -r copilot.vim/dist/* copilot/dist/
27+
28+
- name: Create Pull Request
29+
uses: peter-evans/create-pull-request@v4
30+
with:
31+
add-paths: "copilot/dist/*"
32+
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
33+
base: master
34+
branch: create-pull-request/update-copilot-dist
35+
commit-message: "feat: update to latest copilot.vim/dist"
36+
reviewers: MunifTanjim,zbirenbaum
37+
title: "Update copilot.vim/dist"

README.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ require('copilot').setup({
129129

130130
return true
131131
end,
132-
lsp_binary = nil,
133132
server_opts_overrides = {},
134133
})
135134
```
@@ -280,6 +279,16 @@ When `log_lsp_messages` is true, LSP log messages (`window/logMessage`) events w
280279

281280
Careful turning on all logging features as the log files may get very large over time, and are not pruned by the application.
282281

282+
### copilot_node_command
283+
284+
Use this field to provide the path to a specific node version such as one installed by nvm. Node.js version must be 18.x or newer.
285+
286+
Example:
287+
288+
```lua
289+
copilot_node_command = vim.fn.expand("$HOME") .. "/.config/nvm/versions/node/v18.18.2/bin/node", -- Node.js version must be > 18.x
290+
```
291+
283292
### server_opts_overrides
284293

285294
Override copilot lsp client settings. The `settings` field is where you can set the values of the options defined in [SettingsOpts.md](./SettingsOpts.md).
@@ -344,18 +353,6 @@ require("copilot").setup {
344353
}
345354
```
346355

347-
### lsp_binary
348-
349-
This allows you to specify the path to the copilot lsp binary.
350-
This will disable the download of the binary and use the one specified.
351-
example:
352-
353-
```lua
354-
require("copilot").setup {
355-
lsp_binary = "/home/user/.local/bin/copilot-language-server",
356-
}
357-
```
358-
359356
## Commands
360357

361358
`copilot.lua` defines the `:Copilot` command that can perform various actions. It has completion support, so try it out.

copilot/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.
318 KB
Binary file not shown.
1.96 MB
Binary file not shown.
318 KB
Binary file not shown.
2.13 MB
Binary file not shown.
191 KB
Binary file not shown.
1.96 MB
Binary file not shown.
195 KB
Binary file not shown.

0 commit comments

Comments
 (0)