[Analysis API FIR] do not check for write access on inside ShortenCommandImpl as it breaks intention preview in IDE
This commit is contained in:
-2
@@ -625,8 +625,6 @@ private class ShortenCommandImpl(
|
|||||||
) : ShortenCommand {
|
) : ShortenCommand {
|
||||||
|
|
||||||
override fun invokeShortening() {
|
override fun invokeShortening() {
|
||||||
ApplicationManager.getApplication().assertWriteAccessAllowed()
|
|
||||||
|
|
||||||
for (nameToImport in importsToAdd) {
|
for (nameToImport in importsToAdd) {
|
||||||
addImportToFile(targetFile.project, targetFile, nameToImport)
|
addImportToFile(targetFile.project, targetFile, nameToImport)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user