You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val isNew =!portsStatus.containsKey(port.localPort)
237
+
238
+
if (isNew) {
239
+
portsStatus[port.localPort] = port
240
+
//continue
241
+
}
242
+
243
+
//println("DEBUG[${port.localPort}] -> before hasExposed(${portsStatus[port.localPort]?.hasExposed().toString()}) -> now hasExposed(${port.hasExposed()})")
244
+
245
+
val wasAlreadyExposed =!portsStatus[port.localPort]?.hasExposed()!!
246
+
if ((isNew || wasAlreadyExposed) && port.hasExposed()) {
247
+
if (port.exposed.onExposed.number ==OnPortExposedAction.ignore_VALUE) {
248
+
continue
249
+
}
250
+
251
+
if (port.exposed.onExposed.number ==OnPortExposedAction.open_browser_VALUE) {
252
+
BrowserUtil.browse(port.exposed.url)
253
+
continue
254
+
}
255
+
256
+
if (port.exposed.onExposed.number ==OnPortExposedAction.open_preview_VALUE) {
257
+
BrowserUtil.browse(port.exposed.url)
258
+
continue
259
+
}
260
+
261
+
if (port.served &&!port.exposed.url.isNullOrEmpty()) {
262
+
println("Show port notification‼️‼️ ${port.localPort}")
263
+
val message =
264
+
"Your application running on port "+ port.localPort +" is available."
0 commit comments