Skip to content

Commit 87f298a

Browse files
committed
docs: add a disclamer on the Certificate Parsing solution
1 parent 0ebc217 commit 87f298a

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

README.md

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,25 @@ As lua is far more efficient and makes things easier to integrate with modern pl
1414
## Table Of Contents
1515

1616
<!--toc:start-->
17+
1718
- [Requirements](#requirements)
1819
- [Install](#install)
1920
- [Authentication](#authentication)
20-
- [Authentication with Alternate GitHub Instances](#authentication-with-alternate-github-instances)
21+
- [Authentication with Alternate GitHub Instances](#authentication-with-alternate-github-instances)
2122
- [Setup and Configuration](#setup-and-configuration)
22-
- [panel](#panel)
23-
- [suggestion](#suggestion)
24-
- [filetypes](#filetypes)
25-
- [logger](#logger)
26-
- [copilot_node_command](#copilot_node_command)
27-
- [server_opts_overrides](#server_opts_overrides)
28-
- [workspace_folders](#workspace_folders)
29-
- [root_dir](#root_dir)
30-
- [should_attach](#should_attach)
31-
- [server](#server)
32-
- [Commands](#commands)
33-
- [Integrations](#integrations)
34-
- [FAQ](#faq)
23+
- [panel](#panel)
24+
- [suggestion](#suggestion)
25+
- [filetypes](#filetypes)
26+
- [logger](#logger)
27+
- [copilot_node_command](#copilot_node_command)
28+
- [server_opts_overrides](#server_opts_overrides)
29+
- [workspace_folders](#workspace_folders)
30+
- [root_dir](#root_dir)
31+
- [should_attach](#should_attach)
32+
- [server](#server)
33+
- [Commands](#commands)
34+
- [Integrations](#integrations)
35+
- [FAQ](#faq)
3536
<!--toc:end-->
3637

3738
## Requirements
@@ -403,8 +404,7 @@ require("copilot").setup {
403404

404405
### server
405406

406-
> [!CAUTION]
407-
> `"binary"` mode is still very much experimental, please report any issues you encounter.
407+
> [!CAUTION] > `"binary"` mode is still very much experimental, please report any issues you encounter.
408408
409409
`type` can be either `"nodejs"` or `"binary"`. The binary version will be downloaded if used.
410410

@@ -438,8 +438,9 @@ The `copilot.api` module can be used to build integrations on top of `copilot.lu
438438

439439
> Certificate Parsing Error
440440
441-
This is an issue with the copilot lsp itself as described in [this discussion](https://github.com/orgs/community/discussions/136273#discussioncomment-10433527). Please update copilot lsp to the latest version to solve this issue.
442-
If updating didn't help, update the `/usr/bin/update-ca-trust` and remove the --comment option from the trust extract commands.
441+
This is an issue with the copilot lsp itself as described in [this discussion](https://github.com/orgs/community/discussions/136273#discussioncomment-10433527). Please update the plugin to the latest version to solve this issue.
442+
If updating does not help, some users have reported that updating the `/usr/bin/update-ca-trust` and removing the --comment option from the trust extract commands.
443+
However this has not been verified by the author of this plugin and may have unintended consequences so thread with care.
443444

444445
> Multiple offset encodings warning
445446
@@ -450,11 +451,13 @@ local capabilities = vim.lsp.protocol.make_client_capabilities() -- Get The capa
450451
capabilities.general.positionEncodings = { "utf-16" } -- Set the offset encoding, see `:h vim.lsp.start` for more info
451452
require("lspconfig")[server].setup({ capabilities = capabilities }) -- Setup the server
452453
```
454+
453455
Set the same for copilot in `server_opts_overrides`:
454456

455457
```lua
456458
server_opts_overrides = {
457459
offset_encoding = "utf-16" -- Set the offset encoding same as above, see `:h vim.lsp.start` for more info
458460
}
459461
```
462+
460463
Refer to your plugins documentation for changes.

0 commit comments

Comments
 (0)