Skip to content

Commit

Permalink
DEV2-4344 send workspace request even if no root paths is found (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
amircodota committed Nov 28, 2023
1 parent f363f88 commit c751ad9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ class WorkspaceListenerService {
val rootPaths = ProjectManager.getInstance()
.openProjects
.map { getWorkspaceRootPaths(it) ?: emptyList() }
.reduceOrNull { acc, cur -> acc.plus(cur) }
.reduceOrNull { acc, cur -> acc.plus(cur) } ?: return

if (rootPaths.isNullOrEmpty()) return
Logger.getInstance(javaClass).info("All root paths collected: $rootPaths")

sendEvent("workspace_sending_request", mapOf("root_paths_len" to rootPaths.size.toString()))
Expand Down

0 comments on commit c751ad9

Please sign in to comment.