Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit 8827f7d

Browse files
committed
Add troubleshooting for Copilot in dev container
1 parent 82893da commit 8827f7d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/integrations/copilot.mdx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,29 @@ Here is an example of how to use the `requests` package:
276276
...
277277
```
278278
279+
## Troubleshooting
280+
281+
<details>
282+
<summary>**Issue**: Copilot in VS Code does not work with Dev Containers</summary>
283+
284+
**Details:** The Copilot extensions load within the Dev Container context by
285+
default, but the container cannot reach the CodeGate proxy directly and does not
286+
trust the CodeGate certificate.
287+
288+
**Solution:** The simplest solution which doesn't require modifications to the
289+
devcontainer configuration in your project is to force the Copilot extensions to
290+
run in the UI context instead of remotely. Add the following to your **VS Code
291+
User Settings** file:
292+
293+
```json title="settings.json"
294+
"remote.extensionKind": {
295+
"GitHub.copilot": ["ui"],
296+
"GitHub.copilot-chat": ["ui"]
297+
}
298+
```
299+
300+
</details>
301+
279302
## Next steps
280303
281304
Learn more about CodeGate's features and how to use them:

0 commit comments

Comments
 (0)