fix nb codeactions running on autosave when set true [main] (#194502)

fix nb codeactions running on autosave when set `true`
This commit is contained in:
Michael Lively
2023-09-29 19:22:45 +01:00
committed by GitHub
parent 70722bcbb1
commit b86e7bc54d
@@ -329,7 +329,8 @@ class CodeActionOnSaveParticipant implements IStoredFileWorkingCopySaveParticipa
if (context.reason === SaveReason.AUTO) {
// currently this won't happen, as vs/editor/contrib/codeAction/browser/codeAction.ts L#104 filters out codeactions on autosave. Just future-proofing
// ? notebook CodeActions on autosave seems dangerous (perf-wise)
saveTrigger = 'always';
// saveTrigger = 'always'; // TODO@Yoyokrazy, support during debt
return undefined;
} else if (context.reason === SaveReason.EXPLICIT) {
saveTrigger = 'explicit';
} else {