Skip to content

Commit cf5ebea

Browse files
chore: add comment
1 parent 7f7d9c0 commit cf5ebea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/inbox.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export class Inbox implements vscode.Disposable {
3131
const watchTargets = [workspace.id]
3232
const watchTargetsParam = encodeURIComponent(watchTargets.join(","))
3333

34+
// We shouldn't need to worry about this throwing. Whilst `baseURL` could
35+
// be an invalid URL, that would've caused issues before we got to here.
3436
const baseUrl = new URL(baseUrlRaw)
3537
const socketProto = baseUrl.protocol === "https:" ? "wss:" : "ws:"
3638
const socketUrl = `${socketProto}//${baseUrl.host}/api/v2/notifications/inbox/watch?templates=${watchTemplatesParam}&targets=${watchTargetsParam}`

0 commit comments

Comments
 (0)