mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
FL-17880 do not setFormat in PyDocumentationSettings in preview
GitOrigin-RevId: 61ca29a6272e418a230b8aedad18488087db6152
This commit is contained in:
committed by
intellij-monorepo-bot
parent
583dde3a83
commit
b0409e5725
+2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user