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 doc = event.document
|
||||||
val file = FileDocumentManager.getInstance().getFile(doc) ?: return
|
val file = FileDocumentManager.getInstance().getFile(doc) ?: return
|
||||||
|
|
||||||
if (isGradleScript(file)) {
|
if (isGradleScript(file) && event.newFragment.isNotBlank()) {
|
||||||
synchronized(changedDocuments) {
|
synchronized(changedDocuments) {
|
||||||
changedDocuments.add(doc)
|
changedDocuments.add(doc)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user