Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
protected convertSeverity(severity: lg.DiagnosticSeverity): DiagnosticSeverity {
switch (severity) {
case lg.DiagnosticSeverity.Error:
return DiagnosticSeverity.Error;
case lg.DiagnosticSeverity.Hint:
return DiagnosticSeverity.Hint;
case lg.DiagnosticSeverity.Information:
return DiagnosticSeverity.Information;
case lg.DiagnosticSeverity.Warning:
return DiagnosticSeverity.Warning;
}
}
protected convertSeverity(severity: lg.DiagnosticSeverity): DiagnosticSeverity {
switch (severity) {
case lg.DiagnosticSeverity.Error:
return DiagnosticSeverity.Error;
case lg.DiagnosticSeverity.Hint:
return DiagnosticSeverity.Hint;
case lg.DiagnosticSeverity.Information:
return DiagnosticSeverity.Information;
case lg.DiagnosticSeverity.Warning:
return DiagnosticSeverity.Warning;
}
}
protected convertSeverity(severity: lg.DiagnosticSeverity): DiagnosticSeverity {
switch (severity) {
case lg.DiagnosticSeverity.Error:
return DiagnosticSeverity.Error;
case lg.DiagnosticSeverity.Hint:
return DiagnosticSeverity.Hint;
case lg.DiagnosticSeverity.Information:
return DiagnosticSeverity.Information;
case lg.DiagnosticSeverity.Warning:
return DiagnosticSeverity.Warning;
}
}
function convertSeverity(severity) {
switch (severity) {
case lg.DiagnosticSeverity.Error:
return vscode_languageserver_types_1.DiagnosticSeverity.Error;
case lg.DiagnosticSeverity.Hint:
return vscode_languageserver_types_1.DiagnosticSeverity.Hint;
case lg.DiagnosticSeverity.Information:
return vscode_languageserver_types_1.DiagnosticSeverity.Information;
case lg.DiagnosticSeverity.Warning:
return vscode_languageserver_types_1.DiagnosticSeverity.Warning;
}
}
exports.convertSeverity = convertSeverity;
protected convertSeverity(severity: lg.DiagnosticSeverity): DiagnosticSeverity {
switch (severity) {
case lg.DiagnosticSeverity.Error:
return DiagnosticSeverity.Error;
case lg.DiagnosticSeverity.Hint:
return DiagnosticSeverity.Hint;
case lg.DiagnosticSeverity.Information:
return DiagnosticSeverity.Information;
case lg.DiagnosticSeverity.Warning:
return DiagnosticSeverity.Warning;
}
}
export function convertSeverity(severity: lg.DiagnosticSeverity): DiagnosticSeverity {
switch (severity) {
case lg.DiagnosticSeverity.Error:
return DiagnosticSeverity.Error;
case lg.DiagnosticSeverity.Hint:
return DiagnosticSeverity.Hint;
case lg.DiagnosticSeverity.Information:
return DiagnosticSeverity.Information;
case lg.DiagnosticSeverity.Warning:
return DiagnosticSeverity.Warning;
}
}