mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-29 09:09:03 +01:00
Do not allow code actions to run for autosave after delay (#193479)
disable code actions specifically for autosave after delay:
This commit is contained in:
@@ -285,6 +285,11 @@ class CodeActionOnSaveParticipant implements ITextFileSaveParticipant {
|
||||
if (!setting) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (env.reason === SaveReason.AUTO) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const convertedSetting: { [kind: string]: string } = {};
|
||||
for (const key in setting) {
|
||||
if (typeof setting[key] === 'boolean') {
|
||||
|
||||
Reference in New Issue
Block a user