Skip to content

Commit 4268e46

Browse files
authored
fix nb codeactions running on autosave when set true [release] (microsoft#194500)
fix nb codeactions running on autosave when set `true`
1 parent ccc9961 commit 4268e46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ class CodeActionOnSaveParticipant implements IStoredFileWorkingCopySaveParticipa
329329
if (context.reason === SaveReason.AUTO) {
330330
// currently this won't happen, as vs/editor/contrib/codeAction/browser/codeAction.ts L#104 filters out codeactions on autosave. Just future-proofing
331331
// ? notebook CodeActions on autosave seems dangerous (perf-wise)
332-
saveTrigger = 'always';
332+
// saveTrigger = 'always'; // TODO@Yoyokrazy, support during debt
333+
return undefined;
333334
} else if (context.reason === SaveReason.EXPLICIT) {
334335
saveTrigger = 'explicit';
335336
} else {

0 commit comments

Comments
 (0)