From 1685099fc992392d7761f9efcfefcb82a9960aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Thu, 4 May 2017 13:22:07 +0200 Subject: [PATCH] virtual_file_system: make note more visible --- basics/virtual_file_system.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basics/virtual_file_system.md b/basics/virtual_file_system.md index 0db7e11a3..190b72291 100644 --- a/basics/virtual_file_system.md +++ b/basics/virtual_file_system.md @@ -59,7 +59,7 @@ The most efficient way to listen to VFS events is to implement the `BulkFileList This API gives you all the changes detected during the refresh operation in one list, and lets you process them in batch. Alternatively, you can implement the `VirtualFileListener` interface and register it using [VirtualFileManager.addVirtualFileListener()](upsource:///platform/core-api/src/com/intellij/openapi/vfs/VirtualFileManager.java). This will let you process the events one by one. -Note that the VFS listeners are application level, and will receive events for changes happening in all the projects opened by the user. You may need to filter out events which aren't relevant to your task. +> **Note** VFS listeners are application level, and will receive events for changes happening in *all* the projects opened by the user. You may need to filter out events which aren't relevant to your task. VFS events are sent both before and after each change, and you can access the old contents of the file in the before event. Note that events caused by a refresh are sent after the changes have already occurred on disk - so when you process the `beforeFileDeletion` event, for example, the file has already been deleted from disk. However, it is still present in the VFS snapshot, and you can access its last contents using the VFS API.