mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
fixes #5259
This commit is contained in:
parent
8ca1f811df
commit
e3ac586869
|
@ -212,17 +212,18 @@ function setupIPC(): TPromise<Server> {
|
|||
app.dock.hide();
|
||||
}
|
||||
|
||||
// Tests from CLI require to be the only instance currently (TODO@Ben support multiple instances and output)
|
||||
if (env.isTestingFromCli) {
|
||||
const errorMsg = 'Running extension tests from the command line is currently only supported if no other instance of Code is running.';
|
||||
console.error(errorMsg);
|
||||
|
||||
return TPromise.wrapError(errorMsg);
|
||||
}
|
||||
|
||||
// there's a running instance, let's connect to it
|
||||
return connect(env.mainIPCHandle).then(
|
||||
client => {
|
||||
|
||||
// Tests from CLI require to be the only instance currently (TODO@Ben support multiple instances and output)
|
||||
if (env.isTestingFromCli) {
|
||||
const msg = 'Running extension tests from the command line is currently only supported if no other instance of Code is running.';
|
||||
console.error(msg);
|
||||
client.dispose();
|
||||
return TPromise.wrapError(msg);
|
||||
}
|
||||
|
||||
env.log('Sending env to running instance...');
|
||||
|
||||
const service = client.getService<LaunchService>('LaunchService', LaunchService);
|
||||
|
|
Loading…
Reference in a new issue