Code suggestions change workspace settings
Checklist
- I'm using the latest version of the extension (see the latest version in the right column of this page)
- Extension version:
v3.77.0
- Extension version:
- I'm using the latest VS Code version (find the latest version here)
- VS Code version:
1.82.1
- VS Code version:
- I'm using a supported version of GitLab (see README for the supported version)
- GitLab version:
16.x(using it for both SaaS and our self-hosted)
- GitLab version:
Summary
I have the AI Code suggestions feature enabled and it looks like the extension is saving this flag, and my GitLab handle as preferred account, on the VS Code workspace file.
This is disruptive for us because that workspace file is under version control (so that everyone in our office has the same setup), but the extension making changes to that file basically makes us always revert the changes (hoping that we always remember to do so).
Note: even if we rever the changes, next time we open up VS Code the changes are applied again.
Note 2: this is happening on a repository that is on our self-hosted instance, and it shouldn't even have access to the AI code suggestions feature because we're on the Free tier.
Steps to reproduce
- Enable AI code suggestions
- Create a VS Code workspace and place the workspace file inside a Git repository
- Make sure the workspace file is under version control
- Check if the workspace file has the
gitlab.aiAssistedCodeSuggestions.enabledandgitlab.aiAssistedCodeSuggestions.preferredAccount- If they're present, remove them
- Reopen the VS Code workspace
- The
gitlab.aiAssistedCodeSuggestions.enabledandgitlab.aiAssistedCodeSuggestions.preferredAccountsettings will get reintroduced
What is the current bug behavior?
The gitlab.aiAssistedCodeSuggestions.enabled and gitlab.aiAssistedCodeSuggestions.preferredAccount settings are added to the VS Code workspace file.
What is the expected correct behavior?
Avoid changing the VS Code workspace file automatically.
Relevant logs and/or screenshots
Here's an example of what happens to me:
Possible fixes
Do not automatically change/update the VS Code workspace file. If I want to set those settings I can do it manually
