Docs: Add Imports Context to Code Suggestions
Request
Update public docs to include the imports context feature, which is rolling out soon. This is the most relevant section to update: https://docs.gitlab.com/user/project/repository/code_suggestions/#the-context-code-suggestions-is-aware-of
Separate from this specific feature update, this section of the docs are a little bit confusing in my opinion.
Code Suggestions is aware of and uses:
* The file open in your IDE.
* The content before and after the cursor in that file.
* The filename and extension.
Code Suggestions also uses files from your repository as context to make suggestions and generate code: ...
It's not quite clear to me why the docs enumerate 3 specific bullet points, and then continue on to describe more context sources. I'd also ask that this be revisited and hopefully improved within this change.
Summary of feature
- Duo Code Suggestions, including code completion and code generation, will use imported files as additional context to improve the quality of code suggestions.
- No net new user action is required; Duo will use this context without any manual effort by the user.
- The initial iteration supports Javascript and Typescript.
- The technical implementation is for ECMAScript languages but Javascript and Typescript are probably the ones to specifically highlight.
References