platform: dropped unneeded reporting on exit by Windows file watcher

This commit is contained in:
Roman Shevchenko
2015-04-05 20:02:44 +02:00
parent 1e5b60fa2e
commit 0c1ba59171
3 changed files with 12 additions and 6 deletions
Binary file not shown.
+9 -3
View File
@@ -383,7 +383,7 @@ void StopRoot(WatchRootInfo *info) {
info->bInitialized = false;
}
void UpdateRoots() {
void UpdateRoots(bool report) {
char infoBuffer[256];
strcpy_s(infoBuffer, "UNWATCHEABLE\n");
for (int i = 0; i < ROOT_COUNT; i++) {
@@ -404,6 +404,11 @@ void UpdateRoots() {
}
}
}
if (!report) {
return;
}
EnterCriticalSection(&csOutput);
fprintf(stdout, "%s", infoBuffer);
puts("#\nREMAP");
@@ -488,14 +493,15 @@ int _tmain(int argc, _TCHAR *argv[]) {
if (failed)
break;
UpdateRoots();
UpdateRoots(true);
}
if (!strcmp(buffer, "EXIT"))
break;
}
MarkAllRootsUnused();
UpdateRoots();
UpdateRoots(false);
DeleteCriticalSection(&csOutput);
}
+3 -3
View File
@@ -1,7 +1,7 @@
#include <windows.h>
#define FILE_VERSION 14,0,0,1
#define FILE_VERSION_STR "14.0.0.1"
#define FILE_VERSION 14,0,0,2
#define FILE_VERSION_STR "14.0.0.2"
#define APP_VERSION 14,0,0,0
#define APP_VERSION_STR "14"
@@ -24,7 +24,7 @@ BEGIN
VALUE "FileDescription", "Filesystem events processor"
VALUE "FileVersion", FILE_VERSION_STR
VALUE "InternalName", "fsnotifier"
VALUE "LegalCopyright", "Copyright (C) 2008-2014 JetBrains s.r.o."
VALUE "LegalCopyright", "Copyright (C) 2008-2015 JetBrains s.r.o."
VALUE "OriginalFilename", "fsnotifier.exe"
VALUE "ProductName", "IntelliJ Platform"
VALUE "ProductVersion", APP_VERSION_STR