when saving expect the extension host to be virtually dead, #14635

This commit is contained in:
Johannes Rieken
2016-10-31 15:24:27 +01:00
parent 9d16385b18
commit 887a4a1b7d

View File

@@ -178,12 +178,15 @@ class ExtHostSaveParticipant implements INamedSaveParticpant {
}
participate(editorModel: ITextFileEditorModel, env: { reason: SaveReason }): TPromise<any> {
return this._proxy.$participateInSave(editorModel.getResource(), env.reason).then(values => {
for (const success of values) {
if (!success) {
return TPromise.wrapError('listener failed');
return new TPromise<any>((resolve, reject) => {
setTimeout(reject, 1750);
this._proxy.$participateInSave(editorModel.getResource(), env.reason).then(values => {
for (const success of values) {
if (!success) {
return TPromise.wrapError('listener failed');
}
}
}
}).then(resolve, reject);
});
}
}