IJPL-172106 Warn macOS 15 users about potential issues with OS firewall, suggest workarounds

(cherry picked from commit 58808460d11744747923e61570cc0235b5e33d96)

IJ-CR-150531

GitOrigin-RevId: ec5aec0b847815b5841369b56c5e25c8a0107963
This commit is contained in:
Alexander Lobas
2024-12-03 13:17:11 +00:00
committed by intellij-monorepo-bot
parent d3ff9e6424
commit 8fe2820ca8
2 changed files with 5 additions and 1 deletions
@@ -7,6 +7,7 @@ import com.intellij.notification.Notification
import com.intellij.notification.NotificationType
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.SystemInfo
import com.intellij.openapi.util.registry.Registry
import org.jetbrains.annotations.ApiStatus.Internal
import org.jetbrains.annotations.Nls
import java.net.NoRouteToHostException
@@ -26,7 +27,7 @@ object NetUtils {
}
fun showNetworkErrorSolutionNotification(error: Throwable, project: Project?) {
if (SystemInfo.isMacOSSequoia && error is NoRouteToHostException) {
if (Registry.`is`("mac15.local.network.issue", true) && SystemInfo.isMacOSSequoia && error is NoRouteToHostException) {
Notification("Mac15 Local Network",
IdeCoreBundle.message("mac15.local.network.issue.title"),
IdeCoreBundle.message("mac15.local.network.issue.notification.message"),
@@ -2554,5 +2554,8 @@ highlighting.essential.should.restart.in.full.mode.on.save.all.description="Esse
highlighting.essential.should.restart.in.full.mode.on.save.all=true
highlighting.essential.should.restart.in.full.mode.on.save.all.description="Essential Mode" highlighting should re-highlight its current file in the full mode upon "Save All" action execution
mac15.local.network.issue=true
mac15.local.network.issue.description=Show notification "Local network issue" for macOs 15
# please leave this note as last line
# TODO please use EP com.intellij.registryKey for plugin/product specific keys