files2 - properly type the file operation event

This commit is contained in:
Benjamin Pasero
2019-03-29 15:13:21 +01:00
parent 4039ea8718
commit 9eec0c53b0
4 changed files with 16 additions and 21 deletions

View File

@@ -51,8 +51,8 @@ export class MainThreadFileSystemEventService {
// file operation events - (changes the editor makes)
fileService.onAfterOperation(e => {
if (e.operation === FileOperation.MOVE) {
proxy.$onFileRename(e.resource, e.target!.resource);
if (e.isOperation(FileOperation.MOVE)) {
proxy.$onFileRename(e.resource, e.target.resource);
}
}, undefined, this._listener);