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