mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Try to isolate failing ext host customers (#151743)
Try to isolate failing ext host customers (#151147)
This commit is contained in:
@@ -294,16 +294,27 @@ class ExtensionHostManager extends Disposable implements IExtensionHostManager {
|
||||
const namedCustomers = ExtHostCustomersRegistry.getNamedCustomers();
|
||||
for (let i = 0, len = namedCustomers.length; i < len; i++) {
|
||||
const [id, ctor] = namedCustomers[i];
|
||||
const instance = this._instantiationService.createInstance(ctor, extHostContext);
|
||||
this._customers.push(instance);
|
||||
this._rpcProtocol.set(id, instance);
|
||||
try {
|
||||
const instance = this._instantiationService.createInstance(ctor, extHostContext);
|
||||
this._customers.push(instance);
|
||||
this._rpcProtocol.set(id, instance);
|
||||
} catch (err) {
|
||||
this._logService.critical(`Cannot instantiate named customer: '${id.sid}'`);
|
||||
this._logService.critical(err);
|
||||
errors.onUnexpectedError(err);
|
||||
}
|
||||
}
|
||||
|
||||
// Customers
|
||||
const customers = ExtHostCustomersRegistry.getCustomers();
|
||||
for (const ctor of customers) {
|
||||
const instance = this._instantiationService.createInstance(ctor, extHostContext);
|
||||
this._customers.push(instance);
|
||||
try {
|
||||
const instance = this._instantiationService.createInstance(ctor, extHostContext);
|
||||
this._customers.push(instance);
|
||||
} catch (err) {
|
||||
this._logService.critical(err);
|
||||
errors.onUnexpectedError(err);
|
||||
}
|
||||
}
|
||||
|
||||
if (!extensionHostProxy) {
|
||||
|
||||
Reference in New Issue
Block a user