diff --git a/python/src/com/jetbrains/python/psi/PyUtil.java b/python/src/com/jetbrains/python/psi/PyUtil.java index 14df8cb887e6..4184f8cef9c8 100644 --- a/python/src/com/jetbrains/python/psi/PyUtil.java +++ b/python/src/com/jetbrains/python/psi/PyUtil.java @@ -54,7 +54,7 @@ public class PyUtil { if (doc == null) { return; } - if (!FileDocumentManager.getInstance().fileForDocumentCheckedOutSuccessfully(doc, element.getProject())) { + if (!FileDocumentManager.getInstance().requestWriting(doc, element.getProject())) { throw new IllegalStateException(); } }