Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
closed(): CloseAction {
this.showOnErrorPrompt();
// we don't retry running the service since crashes leave the extension
// in a bad, unrecovered state
return CloseAction.DoNotRestart;
}
}
closed: () => {
// We have our own restart experience
return CloseAction.DoNotRestart;
},
},
closed(): CloseAction {
this.showOnErrorPrompt();
// we don't retry running the service since crashes leave the extension
// in a bad, unrecovered state
return CloseAction.DoNotRestart;
}
}
public closed(): CloseAction {
logChan(`ccls server connection was closed`);
const notifyOnCrash = this.config.get('launch.notifyOnCrash');
const restart = this.config.get('launch.autoRestart');
if (notifyOnCrash) {
window.showInformationMessage(
restart ? 'ccls has crashed; it has been restarted.' :
'ccls has crashed; it has not been restarted.');
}
if (restart)
return CloseAction.Restart;
return CloseAction.DoNotRestart;
}
}
closed: (): CloseAction => {
if (serverCalledProcessExit) {
return CloseAction.DoNotRestart;
}
return defaultErrorHandler.closed();
}
},
closed: (): CloseAction => {
if (serverCalledProcessExit) {
return CloseAction.DoNotRestart;
}
return defaultErrorHandler.closed();
}
},
closed: () => CloseAction.DoNotRestart
},
public closed(): CloseAction {
this.onClosed();
return CloseAction.DoNotRestart;
}
}