Skip to content

Commit 22c5f41

Browse files
committed
respect auto save config when using workspace edit API
1 parent f029d57 commit 22c5f41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/api/browser/mainThreadBulkEdits.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class MainThreadBulkEdits implements MainThreadBulkEditsShape {
2222

2323
$tryApplyWorkspaceEdit(dto: IWorkspaceEditDto, undoRedoGroupId?: number): Promise<boolean> {
2424
const edits = reviveWorkspaceEditDto2(dto);
25-
return this._bulkEditService.apply(edits, { undoRedoGroupId }).then(() => true, err => {
25+
return this._bulkEditService.apply(edits, { undoRedoGroupId, respectAutoSaveConfig: true }).then(() => true, err => {
2626
this._logService.warn('IGNORING workspace edit', err);
2727
return false;
2828
});

0 commit comments

Comments
 (0)