FL-17880 do not setFormat in PyDocumentationSettings in preview

GitOrigin-RevId: 61ca29a6272e418a230b8aedad18488087db6152
This commit is contained in:
Valentin Fondaratov
2023-03-13 12:26:06 +00:00
committed by intellij-monorepo-bot
parent 583dde3a83
commit b0409e5725
@@ -1,6 +1,7 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.codeInsight.intentions;
import com.intellij.model.SideEffectGuard;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.project.Project;
@@ -114,6 +115,7 @@ public class PyGenerateDocstringIntention extends PyBaseIntentionAction {
if (i < 0) {
return false;
}
SideEffectGuard.checkSideEffectAllowed(SideEffectGuard.EffectType.SETTINGS);
settings.setFormat(DocStringFormat.fromNameOrPlain(values.get(i)));
}
return true;