-
Notifications
You must be signed in to change notification settings - Fork 676
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
Adds an option to disable auto insert #7381
base: main
Are you sure you want to change the base?
Adds an option to disable auto insert #7381
Conversation
@@ -732,6 +732,11 @@ | |||
"title": "Text Editor", | |||
"order": 1, | |||
"properties": { | |||
"dotnet.autoInsert.enableAutoInsert": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will auto insert be used for more than doc comments? Perhaps the settings should be dotnet.autoInsert.insertDocComments
imagining that certain auto inserts might be disabled without disabling all auto inserts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we do just want one big switch, then I would suggest dotnet.autoInsert.enabled
@@ -732,6 +732,11 @@ | |||
"title": "Text Editor", | |||
"order": 1, | |||
"properties": { | |||
"dotnet.autoInsert.enableAutoInsert": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be covered by test.
https://github.com/dotnet/vscode-csharp/blob/main/test/lsptoolshost/unitTests/configurationMiddleware.test.ts
Roslyn side fix: dotnet/roslyn#74485
To fix: #6349