diff --git a/lib/config.coffee b/lib/config.coffee index 4a04c82..881ca00 100644 --- a/lib/config.coffee +++ b/lib/config.coffee @@ -103,11 +103,11 @@ module.exports = # Command for namespaces atom.commands.add 'atom-workspace', 'atom-autocomplete-php:namespace': => - namespace.createNamespace(atom.workspace.getActivePaneItem()) + namespace.createNamespace(atom.workspace.getActiveTextEditor()) # Command for importing use statement atom.commands.add 'atom-workspace', 'atom-autocomplete-php:import-use-statement': => - useStatement.importUseStatement(atom.workspace.getActivePaneItem()) + useStatement.importUseStatement(atom.workspace.getActiveTextEditor()) # Command to reindex the current project atom.commands.add 'atom-workspace', 'atom-autocomplete-php:reindex-project': ->