-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[VS Code] Restrict modifying editor.suggestSelection for specific languages #71
Comments
This is by design -- please see the discussion on #53 for context. There's not a perfect solution here, but the reason why we recently switched from language-specific settings to language-agnostic settings is so that a user's explicit language-agnostic setting still takes precedence. Most VS Code users don't know about the language-specific overrides, and the settings UI doesn't make it easy to see/change them, so if IntelliCode provides language-specific settings, most users do not see them or know how to override them. You still have full control over the |
Sorry, I didn't thoroughly think this through before posting. I see now that the API does not even allow setting language-specific configurations. I do disagree with making this global change without asking/notifying just because it was left as the default. Also, the expectation according to comment 470332077 appears to be that to remedy this a user would use a language-specific setting even though, as you said, that is not well-known or easily discoverable. |
@KamasamaK, the behavior is as follows:
Note that there is a difference between explicitly picking I think this setup provides the best balance of simplifying configuration for the average user while still providing full control for advanced users. If VS Code allowed packages to provide configuration defaults that did not override any explicit language-agnostic settings that user had previously set, we would prefer to go that route. But since it's not an option in VS Code today, we have to do this at runtime and change the setting value instead of just declaring defaults in our package.json. |
This issue is primarily about scenario 3. It does simplify configuration for the average user by taking it out of their hands. This generally results in a better completion experience for them when using languages that IntelliCode supports, but a likely diminished completion experience for all other languages. |
@KamasamaK IntelliCode is not planning on taking on this suggestion, however, we thank you for your suggestion and feedback. |
Thanks for considering this request. I will add that since the last time I commented here, the VS Code API was modified to now allow setting language-specific configurations. |
Product and Version: VS Code 1.32.2
OS Version: Windows 10
IntelliCode Extension Version: 1.1.4
Currently, the change to
editor.suggestSelection
is done globally even though IntelliCode for VS Code only supports 3 languages, which can individually be enabled. It would be preferable to only override this for the languages that are enabled by using language-specific editor settings.The text was updated successfully, but these errors were encountered: