We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad9bce8 commit 0b347caCopy full SHA for 0b347ca
1 file changed
src/vs/platform/url/common/urlIpc.ts
@@ -49,11 +49,12 @@ export class URLHandlerRouter implements IClientRouter<string> {
49
const uri = URI.revive(arg);
50
51
if (uri && uri.query) {
52
- const match = /\bwindowId=([^&]+)/.exec(uri.query);
+ const match = /\bwindowId=(\d+)/.exec(uri.query);
53
54
if (match) {
55
const windowId = match[1];
56
- const connection = first(hub.connections, c => c.ctx === windowId);
+ const regex = new RegExp(`window:${windowId}`);
57
+ const connection = first(hub.connections, c => regex.test(c.ctx));
58
59
if (connection) {
60
return connection;
0 commit comments