[VS Code] Granular Control of Code Suggestions by Language
Problem to solve
Developers can encounter irrelevant or intrusive suggestions for specific model-supported languages, disrupting their workflow. Today, users may disable code suggestions in their entirety to stop code suggestions for a specific language. Our users need the ability to enable code suggestions as a feature but have granular controls over which language suggestions are provided.
Proposal
UX designs can be found here.
- When the user navigates to the extension settings, they should see a new section titled "AI Assisted Code Suggestions: Default Languages"
- This section should list all default supported languages with checkboxes next to each language (as shown in the provided design).
-
A list of languages can be found here.
- These languages are on the allowlist in the language server.
- When the user unchecks one or more languages from the Default Languages list, code suggestions for those languages should be disabled, and the unchecked languages should be visibly marked as disabled in the list.
- The settings should persist, and previously disabled languages should remain disabled.
- Users can use the UI or
settings.json
file to disable code suggestions for specific languages. - If a language is disabled, then the Duo icon should indicate that suggestions are disabled for this language.
- Show disabled state
- On hover, it should show "Code Suggestions are disabled for this language."
Further details
Please see the UX proposal below with Concept 3 as the implementation.
Links / references
[VS Code] Users Can Extend Language List for Co... (#1318 - closed)
Edited by Dasha Adushkina