Skip to content

Commit 8cc5b11

Browse files
committed
refactor: move registerUriHandler back to original location
No reason for it to be in a separate ctx.subscriptions.push block — chatPanelProvider is already created above.
1 parent a0b8f59 commit 8cc5b11

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/extension.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,12 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<void> {
235235
);
236236

237237
ctx.subscriptions.push(
238+
registerUriHandler(
239+
serviceContainer,
240+
deploymentManager,
241+
commands,
242+
chatPanelProvider,
243+
),
238244
vscode.commands.registerCommand(
239245
"coder.login",
240246
commands.login.bind(commands),
@@ -302,16 +308,6 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<void> {
302308

303309
const remote = new Remote(serviceContainer, commands, ctx);
304310

305-
// Register the URI handler so deep links (e.g. /openChat) work.
306-
ctx.subscriptions.push(
307-
registerUriHandler(
308-
serviceContainer,
309-
deploymentManager,
310-
commands,
311-
chatPanelProvider,
312-
),
313-
);
314-
315311
// Since the "onResolveRemoteAuthority:ssh-remote" activation event exists
316312
// in package.json we're able to perform actions before the authority is
317313
// resolved by the remote SSH extension.

0 commit comments

Comments
 (0)