// Dev tools
var fs = require('fs-plus');
var bufferToChange = atom.workspace.getActivePaneItem();
var filePath = bufferToChange.getPath();
var newPath = filePath + "2";
fs.moveSync(filePath, newPath); //or .removeSync()
Observe that 'PATH CHANGED' does not appear in the console. If you change moveSync to .saveAs(), 'PATH CHANGED' will appear.
Simple repro steps:
Observe that
'PATH CHANGED'
does not appear in the console. If you change moveSync to.saveAs()
,'PATH CHANGED'
will appear.To verify that a fix works just make sure this text-buffer spec passes on Linux.
Refs atom/atom#7315.