Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,11 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
message: nls.localize('confirmCollapse', "Collapsing a comment thread will discard unsubmitted comments. Do you want to collapse this comment thread?"),
primaryButton: nls.localize('collapse', "Collapse"),
type: Severity.Warning,
checkbox: { label: nls.localize('neverAskAgain', "Never ask me again"), checked: false }
});
if (result.checkboxChecked) {
await this.configurationService.updateValue('comments.thread.confirmOnCollapse', 'never');
}
return result.confirmed;
}
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration).regis
type: 'string',
enum: ['whenHasUnsubmittedComments', 'never'],
enumDescriptions: [nls.localize('confirmOnCollapse.whenHasUnsubmittedComments', "Show a confirmation dialog when collapsing a comment thread with unsubmitted comments."), nls.localize('confirmOnCollapse.never', "Never show a confirmation dialog when collapsing a comment thread.")],
default: 'never',
default: 'whenHasUnsubmittedComments',
description: nls.localize('confirmOnCollapse', "Controls whether a confirmation dialog is shown when collapsing a comment thread.")
}
}
Expand Down