Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
error: (error, message, count) => {
if (count > 2) // Don't be annoying
return ErrorAction.Shutdown;
console.log(message);
console.log(error);
if (message)
outputChannel.appendLine(`The MSBuild language server encountered an unexpected error: ${message}\n\n${error}`);
else
outputChannel.appendLine(`The MSBuild language server encountered an unexpected error.\n\n${error}`);
return ErrorAction.Continue;
},
closed: () => CloseAction.DoNotRestart
error: (error, message, count) => {
sendTelemetryEvent(EventNames.error, {
id: error.name,
severity: ErrorSeverities.Error,
reason: error.message
});
// By default, continue the server as best as possible.
return ErrorAction.Continue;
}
}
error: (error: any, message: Message, count: number): ErrorAction => {
// TODO: Is there any error worth terminating on?
return ErrorAction.Continue;
},
closed: () => {
error(error: Error, message: Message, count: number): ErrorAction {
console.log(error);
console.log(message);
console.log(count);
return ErrorAction.Continue;
},
closed(): CloseAction {
public error(error: Error, message: Message, count: number): ErrorAction {
logChan(`ccls error (count ${count}): ${message}`);
return ErrorAction.Continue;
}
public error(): ErrorAction {
return ErrorAction.Continue;
}