- support for multi workspace folders

- mock fiddle for offline testing
- redesigned to support files closing
- support for deleted files
This commit is contained in:
Jan Dolejsi
2019-03-19 03:06:13 +01:00
parent d3dcc39f87
commit 0dceda85ee
9 changed files with 506 additions and 199 deletions

View File

@ -0,0 +1,9 @@
export function firstIndex<T>(array: T[], fn: (t: T) => boolean): number {
for (let i = 0; i < array.length; i++) {
if (fn(array[i])) {
return i;
}
}
return -1;
}