Skip to content

Commit

Permalink
Remove comments continue on (microsoft#194388)
Browse files Browse the repository at this point in the history
There's a URI issue in the data in the storage service for comments. Putting this feature behind a hidden setting for now so that we don't save incorrect data.
  • Loading branch information
alexr00 committed Sep 28, 2023
1 parent e3b1667 commit bd1af4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vs/workbench/contrib/comments/browser/commentService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ export class CommentService extends Disposable implements ICommentService {
const storageListener = this._register(new DisposableStore());

storageListener.add(this.storageService.onDidChangeValue(StorageScope.WORKSPACE, CONTINUE_ON_COMMENTS, storageListener)((v) => {
if (!this.configurationService.getValue<ICommentsConfiguration | undefined>(COMMENTS_SECTION)?.experimentalContinueOn) {
return;
}
if (!v.external) {
return;
}
Expand All @@ -193,6 +196,9 @@ export class CommentService extends Disposable implements ICommentService {
}
}));
this._register(storageService.onWillSaveState(() => {
if (!this.configurationService.getValue<ICommentsConfiguration | undefined>(COMMENTS_SECTION)?.experimentalContinueOn) {
return;
}
for (const provider of this._continueOnCommentProviders) {
const pendingComments = provider.provideContinueOnComments();
this._addContinueOnComments(pendingComments);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface ICommentsConfiguration {
visible: boolean;
maxHeight: boolean;
collapseOnResolve: boolean;
experimentalContinueOn: boolean;
}

export const COMMENTS_SECTION = 'comments';

0 comments on commit bd1af4d

Please sign in to comment.