Prefer using Array<T> for complex array types

Use `Array<T | U>` when dealing with union types instead of  `(T | U)[]`
This commit is contained in:
Matt Bierner
2018-12-13 16:13:17 -08:00
parent 9623b3441d
commit 986f924ad5
83 changed files with 159 additions and 159 deletions

View File

@@ -169,7 +169,7 @@ export class ExtHostFileSystemEventService implements ExtHostFileSystemEventServ
}
// flatten all WorkspaceEdits collected via waitUntil-call
// and apply them in one go.
let allEdits = new Array<(ResourceFileEditDto | ResourceTextEditDto)[]>();
let allEdits = new Array<Array<ResourceFileEditDto | ResourceTextEditDto>>();
for (let edit of edits) {
if (edit) { // sparse array
let { edits } = typeConverter.WorkspaceEdit.from(edit, this._extHostDocumentsAndEditors);