From e3666113f42027cafa98a80b1096bd9b8b1414c5 Mon Sep 17 00:00:00 2001 From: Gustavo Cardoso Date: Tue, 17 Oct 2017 10:30:15 -0300 Subject: [PATCH] Fix plugin for atom 1.21.1 --- lib/config.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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': ->