Update to 142.4245.2: Fix compilation
This commit is contained in:
committed by
Nikolay Krasko
parent
ffe41b88a7
commit
11331e74fd
@@ -163,7 +163,7 @@ class UnusedImportInspection : AbstractKotlinInspection() {
|
||||
if (project.isDisposed || !file.isValid || editor.isDisposed || !file.isWritable) return false
|
||||
|
||||
// do not optimize imports on the fly during undo/redo
|
||||
val undoManager = UndoManager.getInstance(editor.project)
|
||||
val undoManager = UndoManager.getInstance(project)
|
||||
if (undoManager.isUndoInProgress || undoManager.isRedoInProgress) return false
|
||||
|
||||
// if we stand inside import statements, do not optimize
|
||||
|
||||
Reference in New Issue
Block a user