Skip to content

Commit 3f73dda

Browse files
authored
Remove 1-second debounce guard from VS Code extension panel opening (backnotprop#231)
The debounce was added under the mistaken belief that the extension was launching multiple tabs. It's no longer needed.
1 parent 64d2f29 commit 3f73dda

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

apps/vscode-extension/src/extension.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
1212
const panelManager = new PanelManager();
1313
panelManager.setExtensionPath(context.extensionPath);
1414

15-
let lastOpenTime = 0;
16-
1715
const openInPanel = async (url: string) => {
18-
const now = Date.now();
19-
if (now - lastOpenTime < 1000) {
20-
log.info(`[open] skipped duplicate (${now - lastOpenTime}ms since last): ${url}`);
21-
return;
22-
}
23-
lastOpenTime = now;
2416
log.info(`[open] received url: ${url}`);
2517

2618
// Each panel gets its own cookie proxy so multiple agents

0 commit comments

Comments
 (0)