Change:
private _isCommentingEnabled: boolean = true; constructor( <del> @IInstantiationService protected instantiationService: IInstantiationService, @IWorkbenchLayoutService layoutService: IWorkbenchLayoutService </del> <ins> @IInstantiationService protected readonly instantiationService: IInstantiationService, @IWorkbenchLayoutService private readonly layoutService: IWorkbenchLayoutService, @IConfigurationService private readonly configurationService: IConfigurationService </ins> ) { super(); <del> this._register(layoutService.onDidChangeZenMode(e => { this.enableCommenting(!e); </del> <ins> this._handleConfiguration(); this._handleZenMode(); } private _handleConfiguration() { this._isCommentingEnabled = this._defaultCommentingEnablement; this._register(this.configurationService.onDidChangeConfiguration(e => { if (e.affectsConfiguration('comments.visible')) { this.enableCommenting(this._defaultCommentingEnablement); } </ins> })); } <ins> private _handleZenMode() { let preZenModeValue: boolean = this._isCommentingEnabled; this._register(this.layoutService.onDidChangeZenMode(e => { if (e) { preZenModeValue = this._isCommentingEnabled; this.enableCommenting(false); } else { this.enableCommenting(preZenModeValue); } })); } private get _defaultCommentingEnablement(): boolean { return !!this.configurationService.getValue<ICommentsConfiguration>(COMMENTS_SECTION).visible; } </ins> get isCommentingEnabled(): boolean { return this._isCommentingEnabled; }

Discussion:
See related issue that was closed by user who opened it: I think it'd be fantastic to hide the discussion/comment bar for those of us that like to keep our interface really minimal. Part of it is how it's distracting to see the + sign moving all over the document with the cursor. I'd like to be able to turn it off in the settings for all circumstances. <img width="115" alt="image" src="https://user-"
I second that! VSCode already has a reputation of being an angry fruit salad. A car radio with a full color display in demo-mode, and then 50 of them built into a store display, scream less than VSCode. Ok I might be exaggerating a bit here.. but I am for from exaggerating when I say that I have about 180 lines in my file just to tone it down. Today I would like to make that a 181 lines. Cheerio!
Have you tried the command "Comments: Toggle Editor Commenting"? If that's not enough then I can also add a setting.
While the "Comments: Toggle Editor Commenting" command is useful, it doesn't persist and doesn't completely solve the issue: if I enable Zen mode and then disable Zen mode, then this gutter will reappear and I will need to toggle again. after running the toggle, the gutter is still wider than it would be without this extension enabled. I just disable this extension until I need it and then enable it temporarily when I need it.
I'll make some updates to better persist the disablement.
Hello! I'm also looking forward to hiding this button. Actually I just need to make commits in vs code, and I don't use review even when a pull request is open But of course someday I will use it, it's just that this good function is not for every day
Incoming change does the following: Persists your pre-zen mode comment toggled state when exiting zen mode Introduces the setting Still let you quickly toggle commenting on an off irrespective of , similar to how toggle word wrap works.
Thanks for the progress!! It seems like the new settings don't do anything about the double-wide gutter. That's a pretty big deal because I'm losing a decent chunk of screen real estate even when commenting is turned off.
I was going to address that in a separate PR to keep my changes smaller. I'm planning to fix it today!
Oh hurray!! So exciting!!