mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
Do not bundle typescriptServices in tsMode
This commit is contained in:
parent
92762e4a36
commit
9092951419
1 changed files with 11 additions and 4 deletions
|
|
@ -83,6 +83,13 @@ export abstract class Adapter {
|
||||||
|
|
||||||
// --- diagnostics --- ---
|
// --- diagnostics --- ---
|
||||||
|
|
||||||
|
enum DiagnosticCategory {
|
||||||
|
Warning = 0,
|
||||||
|
Error = 1,
|
||||||
|
Suggestion = 2,
|
||||||
|
Message = 3
|
||||||
|
}
|
||||||
|
|
||||||
export class DiagnosticsAdapter extends Adapter {
|
export class DiagnosticsAdapter extends Adapter {
|
||||||
|
|
||||||
private _disposables: IDisposable[] = [];
|
private _disposables: IDisposable[] = [];
|
||||||
|
|
@ -229,10 +236,10 @@ export class DiagnosticsAdapter extends Adapter {
|
||||||
|
|
||||||
private _tsDiagnosticCategoryToMarkerSeverity(category: ts.DiagnosticCategory): monaco.MarkerSeverity {
|
private _tsDiagnosticCategoryToMarkerSeverity(category: ts.DiagnosticCategory): monaco.MarkerSeverity {
|
||||||
switch (category) {
|
switch (category) {
|
||||||
case ts.DiagnosticCategory.Error: return monaco.MarkerSeverity.Error
|
case DiagnosticCategory.Error: return monaco.MarkerSeverity.Error
|
||||||
case ts.DiagnosticCategory.Message: return monaco.MarkerSeverity.Info
|
case DiagnosticCategory.Message: return monaco.MarkerSeverity.Info
|
||||||
case ts.DiagnosticCategory.Warning: return monaco.MarkerSeverity.Warning
|
case DiagnosticCategory.Warning: return monaco.MarkerSeverity.Warning
|
||||||
case ts.DiagnosticCategory.Suggestion: return monaco.MarkerSeverity.Hint
|
case DiagnosticCategory.Suggestion: return monaco.MarkerSeverity.Hint
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue