We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9396dd4 commit bf7c48eCopy full SHA for bf7c48e
1 file changed
src/vs/code/electron-main/auth.ts
@@ -77,8 +77,13 @@ export class ProxyAuthHandler {
77
const javascript = 'promptForCredentials(' + JSON.stringify(data) + ')';
78
79
event.preventDefault();
80
+
81
+ const onWindowClose = () => cb('', '');
82
+ win.on('close', onWindowClose);
83
84
win.webContents.executeJavaScript(javascript, true).then(({ username, password }: Credentials) => {
85
cb(username, password);
86
+ win.removeListener('close', onWindowClose);
87
win.close();
88
});
89
}
0 commit comments