Skip to content

Commit 548a414

Browse files
Chris ConcannonMaedahBatool
andauthored
Written content added (#1109)
Co-authored-by: Maedah Batool <me@MaedahBatool.com>
1 parent 73206cc commit 548a414

File tree

1 file changed

+48
-2
lines changed

1 file changed

+48
-2
lines changed

docs/cody/troubleshooting.mdx

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ If you're experiencing issues with Cody not responding in chat, follow these ste
1818
If you're experiencing issues with Cody's responses or completions being too slow:
1919

2020
- Ensure you have the latest version of the [Cody VS Code extension](https://marketplace.visualstudio.com/items?itemName=sourcegraph.cody-ai). Use the VS Code command `Extensions: Check for Extension Updates` to verify
21-
- Enable verbose logging, restart the extension and reproduce the issue seen again (see below `Access Cody logs` for how to do this
21+
- Enable verbose logging, restart the extension and reproduce the issue seen again (see below `Access Cody logs` for how to do this)
2222
- Send information to the our Support Team at support@sourcegraph.com
2323

2424
Some additional information that will be valuable:
25+
2526
- Where are you located? Any proxies or firewalls in use?
2627
- Does this happen with multiple providers/models? Which models have you used?
2728

28-
2929
### Access Cody logs
3030

3131
VS Code logs can be accessed via the **Outputs** view. You will need to set Cody to verbose mode to ensure important information to debug is on the logs. To do so:
@@ -237,6 +237,52 @@ This issue occurs because JCEF isn't supported in Android Studio and causes Cody
237237
1. Select the last option.
238238
1. Restart Android Studio.
239239

240+
## Visual Studio extension
241+
242+
### Access Cody logs
243+
244+
Visual Studio logs can be accessed via the **Output** panel. To access logs:
245+
246+
- Open `View -> Output` from the main menu
247+
- Select `Cody` output pane
248+
249+
![Cody Default Output](https://storage.googleapis.com/sourcegraph-assets/Docs/cody-ouput.png)
250+
251+
### Autocomplete
252+
253+
Cody autocomplete for Visual Studio uses the underlying VS API to display completions in the editor. It's turned on by default in VS (`Tools -> Options -> IntelliCode -> Show Inline Completions`). Without this setting enabled, autocomplete will not work, so this is the first thing to check.
254+
255+
![Inline completions](https://storage.googleapis.com/sourcegraph-assets/Docs/Inline-completions.png)
256+
257+
Also make sure that `Tools -> Options -> Cody -> Automatically trigger completions` is turned on (it is by default).
258+
259+
![Autocomplete](https://storage.googleapis.com/sourcegraph-assets/Docs/Autocomplete.png)
260+
261+
Autocomplete is supported from Visual Studio 17.6+ and includes support for the following languages:
262+
263+
1. C/C++/C#
264+
2. Python
265+
3. JavaScript/TypeScript/TSX
266+
4. HTML
267+
5. CSS
268+
6. JSON
269+
270+
#### Non-trusted certificates
271+
272+
If autocomplete still doesn't work (or the Cody Chat), you could try **turning on** the option to `accept non-trusted certificates` (requires Visual Studio restart). This should help, especially in enterprise settings if you are behind a firewall.
273+
274+
![Non-trusted-certificates](https://storage.googleapis.com/sourcegraph-assets/Docs/Non-trusted-certificates.png)
275+
276+
### Detailed debugging logs
277+
278+
The detailed logging configuration can be turned on by adding the `CODY_VS_DEV_CONFIG` environment variable containing the full path to [the configuration file](https://github.com/sourcegraph/cody-vs/blob/main/src/CodyDevConfig.json) placed somewhere in the filesystem.
279+
280+
![Detailed logs](https://storage.googleapis.com/sourcegraph-assets/Docs/Detailed-logs.png)
281+
282+
Two additional output panes, `Cody Agent` and `Cody Notifications`, will be created with more detailed logs. More information on how to configure them is available [here](https://github.com/sourcegraph/cody-vs/blob/main/CONTRIBUTING.md#developer-configuration-file).
283+
284+
![Cody output panes](https://storage.googleapis.com/sourcegraph-assets/Docs/Cody-output-panes.png)
285+
240286
## Regular Expressions
241287

242288
### Asterisks being removed

0 commit comments

Comments
 (0)