Skip to content

Commit cd5a085

Browse files
author
Chris Concannon
committed
Written content added
1 parent 67196e4 commit cd5a085

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

docs/cody/troubleshooting.mdx

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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](./images/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](./images/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](./images/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](./images/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](./images/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](./images/Cody-output-panes.png)
285+
240286
## Regular Expressions
241287

242288
### Asterisks being removed

0 commit comments

Comments
 (0)