[FEATURE] Disable inline completions for comments across languages
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Inline completions in code comments is hindered for those with language-based learning disabilities. The context switch between _authoring_ and _reading_ is distruptive when the suggested content is longer than one or two words (as is common with simpler spell check functions). The induced eye movement and line tracking causes loss of "position" and loss of mental context. Imagine if you stutter and someone keeps finishing your sentences in a conversation. The sentence may be correct, and completed faster, but it's demeaning and annoying to not be able to finish your own thoughts.
Proposed Solution
It would be helpful to disable completions when editing a code comment. Since most editors detect when authoring or editing a comment in the file's defined language, it should be posssible to use that hook to not provide inline completions.
This could be done globally for all languages, or by list of specific file types/language mappings.
Alternative Solutions
A user could provide the language specific rules that define a comment in languages for which they don't want completions.
Comment completions could also be configured to only provide very short word count, like a spell check type-ahead.
Priority
Medium - Would be very helpful
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗