1012
1013
constructor(changes: readonly IFileChange[], private readonly ignorePathCasing: boolean) {
1014
>
for (const change of changes) {
files.ts
1015
>
1016
>
// Split by type
1017
>
switch (change.type) {
1018
>
case FileChangeType.ADDED:
1019
this.rawAdded.push(change.resource);
1020
break;
1021
>
case FileChangeType.UPDATED:
files.ts
1022
this.rawUpdated.push(change.resource);
1023
break;
1024
>
case FileChangeType.DELETED:
files.ts
1025
this.rawDeleted.push(change.resource);
1026
break;
1028
>
1029
>
// Figure out events correlation
1030
>
if (this.correlationId !== FileChangesEvent.MIXED_CORRELATION) {
1031
>
if (typeof change.cId === 'number') {
1032
if (this.correlationId === undefined) {
1033
this.correlationId = change.cId; // correlation not yet set, just take it