Skip to content

Instantly share code, notes, and snippets.

@jmealo
Created May 12, 2015 13:16
Show Gist options
  • Save jmealo/f84d69cfc7d0c0e8489a to your computer and use it in GitHub Desktop.
Save jmealo/f84d69cfc7d0c0e8489a to your computer and use it in GitHub Desktop.
snippet to fix watcher for PHPStorm EAP 141.1000
// Insert this just after: if (/move/i.test(verb)) { @ line 115
if (file.indexOf('___jb_bak___') !== -1) {
verb = 'PUT';
destination = destination.replace('___jb_bak___', '');
file = destination;
fileStream = fs.createReadStream(file);
headers['Content-Length'] = fs.statSync(file).size;
}
/* Add the following entries to your config.json global ignore:
"*___jb_old___",
"*___jb_bak___"
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment