mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
type converters, use namespace for Diagnostics
This commit is contained in:
@@ -116,7 +116,7 @@ export class DiagnosticCollection implements vscode.DiagnosticCollection {
|
||||
orderLoop: for (let i = 0; i < 4; i++) {
|
||||
for (let diagnostic of diagnostics) {
|
||||
if (diagnostic.severity === order[i]) {
|
||||
const len = marker.push(converter.fromDiagnostic(diagnostic));
|
||||
const len = marker.push(converter.Diagnostic.from(diagnostic));
|
||||
if (len === DiagnosticCollection._maxDiagnosticsPerFile) {
|
||||
break orderLoop;
|
||||
}
|
||||
@@ -134,7 +134,7 @@ export class DiagnosticCollection implements vscode.DiagnosticCollection {
|
||||
endColumn: marker[marker.length - 1].endColumn
|
||||
});
|
||||
} else {
|
||||
marker = diagnostics.map(converter.fromDiagnostic);
|
||||
marker = diagnostics.map(converter.Diagnostic.from);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user