mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
files2 - properly type the file operation event
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user