Skip to content

Commit bdc3e89

Browse files
committed
feat: add coder connect to connection status indicator
1 parent 1465657 commit bdc3e89

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/remote.ts

+10
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,18 @@ export class Remote {
698698
derp_latency: { [key: string]: number }
699699
upload_bytes_sec: number
700700
download_bytes_sec: number
701+
using_coder_connect: boolean
701702
}) => {
702703
let statusText = "$(globe) "
704+
705+
// Coder Connect doesn't populate any other stats
706+
if (network.using_coder_connect) {
707+
networkStatus.text = statusText + "Coder Connect "
708+
networkStatus.tooltip = "You're connected using Coder Connect!"
709+
networkStatus.show()
710+
return
711+
}
712+
703713
if (network.p2p) {
704714
statusText += "Direct "
705715
networkStatus.tooltip = "You're connected peer-to-peer ✨."

0 commit comments

Comments
 (0)