We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f7d9c0 commit cf5ebeaCopy full SHA for cf5ebea
src/inbox.ts
@@ -31,6 +31,8 @@ export class Inbox implements vscode.Disposable {
31
const watchTargets = [workspace.id]
32
const watchTargetsParam = encodeURIComponent(watchTargets.join(","))
33
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.
36
const baseUrl = new URL(baseUrlRaw)
37
const socketProto = baseUrl.protocol === "https:" ? "wss:" : "ws:"
38
const socketUrl = `${socketProto}//${baseUrl.host}/api/v2/notifications/inbox/watch?templates=${watchTemplatesParam}&targets=${watchTargetsParam}`
0 commit comments