mirror of
https://github.com/coder/code-server.git
synced 2026-05-15 16:57:26 +02:00
chore(vscode): update to 1.56.0
This commit is contained in:
@@ -18,6 +18,7 @@ namespace Severity {
|
||||
const _warning = 'warning';
|
||||
const _warn = 'warn';
|
||||
const _info = 'info';
|
||||
const _ignore = 'ignore';
|
||||
|
||||
/**
|
||||
* Parses 'error', 'warning', 'warn', 'info' in call casings
|
||||
@@ -41,6 +42,15 @@ namespace Severity {
|
||||
}
|
||||
return Severity.Ignore;
|
||||
}
|
||||
|
||||
export function toString(severity: Severity): string {
|
||||
switch (severity) {
|
||||
case Severity.Error: return _error;
|
||||
case Severity.Warning: return _warning;
|
||||
case Severity.Info: return _info;
|
||||
default: return _ignore;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default Severity;
|
||||
|
||||
Reference in New Issue
Block a user