mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 22:02:55 +01:00
Adopt new monaco-editor-core
This commit is contained in:
parent
ec6bc4dd9f
commit
d09c2e5681
3 changed files with 10 additions and 10 deletions
|
|
@ -104,14 +104,14 @@ export class DiagnostcsAdapter {
|
|||
}
|
||||
|
||||
|
||||
function toSeverity(lsSeverity: number): monaco.Severity {
|
||||
function toSeverity(lsSeverity: number): monaco.MarkerSeverity {
|
||||
switch (lsSeverity) {
|
||||
case ls.DiagnosticSeverity.Error: return monaco.Severity.Error;
|
||||
case ls.DiagnosticSeverity.Warning: return monaco.Severity.Warning;
|
||||
case ls.DiagnosticSeverity.Information:
|
||||
case ls.DiagnosticSeverity.Hint:
|
||||
case ls.DiagnosticSeverity.Error: return monaco.MarkerSeverity.Error;
|
||||
case ls.DiagnosticSeverity.Warning: return monaco.MarkerSeverity.Warning;
|
||||
case ls.DiagnosticSeverity.Information: return monaco.MarkerSeverity.Info;
|
||||
case ls.DiagnosticSeverity.Hint: return monaco.MarkerSeverity.Hint;
|
||||
default:
|
||||
return monaco.Severity.Info;
|
||||
return monaco.MarkerSeverity.Info;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue