From 7d5c661b4eb20e3dd12b3c3e596ce47658bb121a Mon Sep 17 00:00:00 2001 From: Nate Stemen Date: Fri, 15 Dec 2017 11:10:44 -0500 Subject: [PATCH] make command names local array --- .../aceEditor/auto-complete/CommandManager.coffee | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/CommandManager.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/CommandManager.coffee index fc21f65455..a3f1c965d4 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/CommandManager.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/CommandManager.coffee @@ -2,8 +2,6 @@ define [ "./top_hundred_snippets" ], (topHundred) -> - commandNames = (snippet.caption.match(/\w+/)[0] for snippet in topHundred) - class Parser constructor: (@doc, @prefix) -> @@ -96,6 +94,10 @@ define [ constructor: (@metadataManager) -> getCompletions: (editor, session, pos, prefix, callback) -> + console.log '>> this is running!' + commandNames = ( + snippet.caption.match(/\w+/)[0] for snippet in topHundred + ) packages = @metadataManager.getAllPackages() packageCommands = [] for pkg, snippets of packages