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
// TODO(ak): actually should be bound to cancellation of notifications job
225
+
lifetime.onTerminationOrNow {
226
+
requestStream.cancel(null, null)
227
+
}
228
+
}
229
+
230
+
overridefunonNext(ps:PortsStatusResponse) {
231
+
for (port in ps.portsList) {
232
+
if (!portsStatus.containsKey(port.localPort)) {
233
+
portsStatus[port.localPort] = port
234
+
continue
235
+
}
236
+
237
+
println("DEBUG[${port.localPort}] -> before hasExposed(${portsStatus[port.localPort]?.hasExposed().toString()}) -> now hasExposed(${port.hasExposed()})")
238
+
if (!portsStatus[port.localPort]?.hasExposed()!!&& port.hasExposed()) {
239
+
if (port.exposed.onExposed.number ==OnPortExposedAction.ignore_VALUE) {
240
+
continue
241
+
}
242
+
243
+
if (port.exposed.onExposed.number ==OnPortExposedAction.open_browser_VALUE) {
244
+
BrowserUtil.browse(port.exposed.url)
245
+
continue
246
+
}
247
+
248
+
if (port.exposed.onExposed.number ==OnPortExposedAction.open_preview_VALUE) {
249
+
BrowserUtil.browse(port.exposed.url)
250
+
continue
251
+
}
252
+
253
+
if (port.served &&!port.exposed.url.isNullOrEmpty()) {
254
+
println("Show port notification‼️‼️ ${port.localPort}")
255
+
val message =
256
+
"Your application running on port "+ port.localPort +" is available."
0 commit comments