├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .gitmodules ├── README.md └── script └── build /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | tags: 8 | - "v*" 9 | pull_request: 10 | branches: 11 | - "**" 12 | 13 | jobs: 14 | build: 15 | name: Build binary 16 | runs-on: buildjet-8vcpu-ubuntu-2204 17 | steps: 18 | - name: Install Node 19 | uses: actions/setup-node@v2 20 | with: 21 | node-version: "16" 22 | 23 | - name: Checkout repo 24 | uses: actions/checkout@v2 25 | with: 26 | clean: false 27 | submodules: "recursive" 28 | 29 | - name: Create tarball 30 | run: script/build 31 | 32 | - name: Upload tarball to workflow run if main branch 33 | uses: actions/upload-artifact@v4 34 | with: 35 | name: copilot.tar.gz 36 | path: dist/copilot.tar.gz 37 | 38 | - uses: softprops/action-gh-release@v1 39 | name: Upload binaries to release if release tag 40 | if: ${{ startsWith(github.ref, 'refs/tags/v') }} 41 | with: 42 | draft: true 43 | files: dist/* 44 | overwrite: true 45 | body: "" 46 | env: 47 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 48 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | node_modules 3 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "copilot.vim"] 2 | path = copilot.vim 3 | url = https://github.com/github/copilot.vim.git 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # copilot 2 | 3 | This repository extracts the Copilot language server from [copilot.vim](https://github.com/github/copilot.vim) and packages it into a tarball. 4 | 5 | ## Deprecation Notice 6 | 7 | As of Zed v0.180.x (2025-04-02) Zed [switched](https://github.com/zed-industries/zed/pull/27401) from copilot.vim to using [@github/copilot-language-server](https://github.com/github/copilot-language-server-release). 8 | 9 | As of 2025-05-30 this repo has been archived. 10 | 11 | Note, just as with copilot.vim, copilot-language-server is governed by [GitHub Copilot Product Specific Terms](https://github.com/customer-terms/github-copilot-product-specific-terms). 12 | It is not open source and the [npm package](https://www.npmjs.com/package/@github/copilot-language-server) only contains minimified and obsfucated javascript; GitHub has made no other source available. 13 | 14 | ## Publishing 15 | 16 | To publish a new release of the Copilot language server, create a new git tag e.g. `v1.2.3` and push it. A draft release will be created automatically. Once you publish it, Zed users will download the updated server the first time they use Copilot. 17 | -------------------------------------------------------------------------------- /script/build: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | rm -rf dist 6 | mkdir dist 7 | tar -czf dist/copilot.tar.gz -C copilot.vim/dist . 8 | --------------------------------------------------------------------------------