jamesonknutson / disable-copilot-comment-completions

MIT License
17 stars 3 forks source link

Ability to specify which settings.json is used for copilot setting #11

Open aargondizza opened 8 months ago

aargondizza commented 8 months ago

It appears disable-copilot-comment-completions uses workspace settings to manipulate the "github.copilot.inlineSuggest.enable": false/true setting.

However, at work we check in our workspace settings (.vscode/settings.json) to source control to share some basic editor settings, and I get git changes every time my cursor moves from comment to non-comment and disable-copilot-comment-completions manipulates the workspace settings.

I would like to be able to specify that disable-copilot-comment-completions use the user settings.json file instead, to prevent the copilot setting manipulation from showing up in my git changes.

I looked around for this setting and couldn't find one, so please forgive me if there's already a way to control this. Thanks!

jamesonknutson commented 8 months ago

To clarify, is your request basically to provide a setting that allows the user to specify which settings file to save its changes to? Eg disable-copilot-comment-completions.saveFile which would take any of workspace or user (are there any other scopes that settings could be saved to?), and depending on your choice the extension would edit the corresponding file?

Would this implementation as I described it solve your problem?