mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-342583 [Auto-Sync] fix: don't refresh VFS if there are no setting files to refresh
GitOrigin-RevId: 79adfead8291a8c69724f04d5caef4b8dbee129b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
839e6da384
commit
242652b9b4
+6
-1
@@ -168,9 +168,14 @@ class ProjectSettingsTracker(
|
||||
submitSettingsFilesCollection(isInvalidateCache = true) { settingsPaths ->
|
||||
val localFileSystem = LocalFileSystem.getInstance()
|
||||
val settingsFiles = settingsPaths.map { Path.of(it) }
|
||||
localFileSystem.refreshNioFiles(settingsFiles, isAsyncChangesProcessing, false) {
|
||||
if (settingsFiles.isEmpty()) {
|
||||
callback(settingsPaths)
|
||||
}
|
||||
else {
|
||||
localFileSystem.refreshNioFiles(settingsFiles, isAsyncChangesProcessing, false) {
|
||||
callback(settingsPaths)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user