diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-18 21:10:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-18 21:10:24 +0300 |
commit | 7488eeff6fdf82ee7b926d684a201212b0509cbb (patch) | |
tree | c7565c44b5042ce711752a48293f38456c6c7ef1 /doc/user/project/repository/code_suggestions.md | |
parent | 93d0784e6d8f43ef5a27f506784b4b0d989c0c2b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/user/project/repository/code_suggestions.md')
-rw-r--r-- | doc/user/project/repository/code_suggestions.md | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/doc/user/project/repository/code_suggestions.md b/doc/user/project/repository/code_suggestions.md index 7976b0a9dea..95d5873a535 100644 --- a/doc/user/project/repository/code_suggestions.md +++ b/doc/user/project/repository/code_suggestions.md @@ -291,7 +291,7 @@ To confirm that your account is enabled, go to [https://gitlab.com/api/v4/ml/ai- #### Code Suggestions not displayed in VS Code or GitLab WebIDE -Check all steps above first. +Check all the steps in [Code Suggestions aren't displayed](#code-suggestions-arent-displayed) first. If you are a self-managed user, ensure that Code Suggestions for the [GitLab WebIDE](../../project/web_ide/index.md) are enabled. The same settings apply to VS Code as local IDE. @@ -303,7 +303,7 @@ If you are a self-managed user, ensure that Code Suggestions for the [GitLab Web If the settings are enabled, but Code Suggestions are still not displayed, try the following steps: 1. Enable the `Debug` checkbox in the GitLab Workflow **Extension Settings**. -1. Open the extension log in **View > Output** and change the dropdown to **GitLab Workflow** as log filter. The command palette command is `GitLab: Show Extension Logs`. +1. Open the extension log in **View > Output** and change the dropdown list to **GitLab Workflow** as the log filter. The command palette command is `GitLab: Show Extension Logs`. 1. Disable and re-enable the **Enable code completion (Beta)** checkbox. 1. Verify that the debug log contains similar output: @@ -313,6 +313,21 @@ If the settings are enabled, but Code Suggestions are still not displayed, try t 2023-07-14T17:29:01:802 [debug]: AI Assist: Using server: https://codesuggestions.gitlab.com/v2/completions ``` +#### Code Suggestions not displayed in Microsoft Visual Studio + +Check all the steps in [Code Suggestions aren't displayed](#code-suggestions-arent-displayed) first. + +1. Ensure you have properly [set up the extension](https://gitlab.com/gitlab-org/editor-extensions/gitlab-visual-studio-extension#setup). +1. From the **Tools > Options** menu, find the **GitLab** option. Ensure **Log Level** is set to **Debug**. +1. Open the extension log in **View > Output** and change the dropdown list to **GitLab Extension** as the log filter. +1. Verify that the debug log contains similar output: + +```shell +14:48:21:344 GitlabProposalSource.GetCodeSuggestionAsync +14:48:21:344 LsClient.SendTextDocumentCompletionAsync("GitLab.Extension.Test\TestData.cs", 34, 0) +14:48:21:346 LS(55096): time="2023-07-17T14:48:21-05:00" level=info msg="update context" +``` + ### Authentication troubleshooting If the above steps do not solve your issue, the problem may be related to the recent changes in authentication, |