-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Feature 29241: Add option to disable git indicators in gutter #29700
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
Conversation
@bugrac, thanks for your PR! By analyzing the history of the files in this pull request, we identified @joaomoreno and @alexandrudima to be potential reviewers. |
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 decorators are to be disabled, more needs to be done:
- You need to dispose and clean out all instances of
DirtyDiffModelDecorator
. - You need to detach the
onEditorsChanged
listener.
You're also missing a configuration change listener, which should enable/disable the decorations accordingly.
@@ -82,6 +83,20 @@ const viewletDescriptor = new ViewletDescriptor( | |||
36 | |||
); | |||
|
|||
// Configuration | |||
Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration).registerConfiguration({ | |||
id: 'editor', |
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 should be scm
order: 5, | ||
type: 'object', | ||
properties: { | ||
'editor.enableDecorators': { |
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.
The property should be scm.enableDiffDecorations
.
'editor.enableDecorators': { | ||
'type': 'boolean', | ||
'default': true, | ||
'description': localize('enableDecorators', "Enables or disables color decorators when changes happen in the editor.") |
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.
Enables or disables diff decorations in modified files.
Thanks! 🍻 |
Went ahead and changed the setting to accommodate #21795 You can now control this with |
Thanks guys, great change. I've just switched to VS code and I'm curios why the modified colour for the gutter is blue whilst the modified colour on the file name itself is orange. To me it makes sense to make these the same colour by default
|
Feature #29241: Add option to disable git indicators in gutter