mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 01:25:36 -05:00
window reuse for connections (#4049)
* window reuse for connections * space after colon * use undefined instead of null
This commit is contained in:
@@ -228,6 +228,15 @@ export class LaunchService implements ILaunchService {
|
||||
});
|
||||
}
|
||||
|
||||
// {{SQL CARBON EDIT}}
|
||||
// give the first used window a chance to process the other command line arguments
|
||||
if (args['reuse-window'] && usedWindows.length > 0 && usedWindows[0])
|
||||
{
|
||||
let window = usedWindows[0];
|
||||
usedWindows[0].ready().then(() => window.send('ads:processCommandLine', args));
|
||||
}
|
||||
// {{SQL CARBON EDIT}}
|
||||
|
||||
// If the other instance is waiting to be killed, we hook up a window listener if one window
|
||||
// is being used and only then resolve the startup promise which will kill this second instance.
|
||||
// In addition, we poll for the wait marker file to be deleted to return.
|
||||
|
||||
Reference in New Issue
Block a user