mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-23 19:59:37 +00:00
Remove extra Array.from
This commit is contained in:
@@ -173,7 +173,6 @@ export class DiagnosticsManager {
|
||||
kind: DiagnosticKind,
|
||||
diagnostics: vscode.Diagnostic[]
|
||||
): void {
|
||||
|
||||
let didUpdate = false;
|
||||
const entry = this._diagnostics.get(file);
|
||||
if (entry) {
|
||||
@@ -224,7 +223,7 @@ export class DiagnosticsManager {
|
||||
|
||||
private rebuild(): void {
|
||||
this._currentDiagnostics.clear();
|
||||
for (const fileDiagnostic of Array.from(this._diagnostics.values)) {
|
||||
for (const fileDiagnostic of this._diagnostics.values) {
|
||||
this._currentDiagnostics.set(fileDiagnostic.file, fileDiagnostic.getDiagnostics(this._settings));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user