Skip to content

Commit 0b347ca

Browse files
committed
1 parent ad9bce8 commit 0b347ca

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/vs/platform/url/common/urlIpc.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,12 @@ export class URLHandlerRouter implements IClientRouter<string> {
4949
const uri = URI.revive(arg);
5050

5151
if (uri && uri.query) {
52-
const match = /\bwindowId=([^&]+)/.exec(uri.query);
52+
const match = /\bwindowId=(\d+)/.exec(uri.query);
5353

5454
if (match) {
5555
const windowId = match[1];
56-
const connection = first(hub.connections, c => c.ctx === windowId);
56+
const regex = new RegExp(`window:${windowId}`);
57+
const connection = first(hub.connections, c => regex.test(c.ctx));
5758

5859
if (connection) {
5960
return connection;

0 commit comments

Comments
 (0)