Do not show "Gradle Project needs to be imported" notification for gradle script if only spaces are added
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ class ScriptModificationListener(private val project: Project) {
|
||||
val doc = event.document
|
||||
val file = FileDocumentManager.getInstance().getFile(doc) ?: return
|
||||
|
||||
if (isGradleScript(file)) {
|
||||
if (isGradleScript(file) && event.newFragment.isNotBlank()) {
|
||||
synchronized(changedDocuments) {
|
||||
changedDocuments.add(doc)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user