src/JSUtils/ScopeManager.js
function isFileBeingEdited(filePath) {
        var currentEditor   = EditorManager.getActiveEditor(),
            currentDoc      = currentEditor && currentEditor.document;

        return (currentDoc && currentDoc.file.fullPath === filePath);
    }
function isFileBeingEdited(filePath) {
        var currentEditor   = EditorManager.getActiveEditor(),
            currentDoc      = currentEditor && currentEditor.document;

        return (currentDoc && currentDoc.file.fullPath === filePath);
    }
function isFileBeingEdited ( filePath ) { var currentEditor = EditorManager . getActiveEditor ( ) , currentDoc = currentEditor && currentEditor . document ; return ( currentDoc && currentDoc . file . fullPath === filePath ) ; }
Test if the file path is in current editor

@param {string} filePath file path to test for exclusion.
@return {boolean} true if in editor, false otherwise.
Test if the file path is in current editor