From 115734f82e69f274678ae0084deeb3b0aec729cf Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Thu, 17 Mar 2016 10:04:14 +0000 Subject: [PATCH] Rename Snippets -> SnippetManager --- .../aceEditor/auto-complete/AutoCompleteManager.coffee | 2 +- .../{Snippets.coffee => SnippetManager.coffee} | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) rename services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/{Snippets.coffee => SnippetManager.coffee} (93%) diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee index 27f5b15a3a..32a60370c1 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee @@ -1,6 +1,6 @@ define [ "ide/editor/directives/aceEditor/auto-complete/SuggestionManager" - "ide/editor/directives/aceEditor/auto-complete/Snippets" + "ide/editor/directives/aceEditor/auto-complete/SnippetManager" "ace/ace" "ace/ext-language_tools" ], (SuggestionManager, SnippetManager) -> diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/Snippets.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/SnippetManager.coffee similarity index 93% rename from services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/Snippets.coffee rename to services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/SnippetManager.coffee index a637005711..5cf040f9d6 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/Snippets.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/SnippetManager.coffee @@ -9,7 +9,7 @@ define () -> "verbatim" ] - snippets = for env in environments + staticSnippets = for env in environments { caption: "\\begin{#{env}}..." snippet: """ @@ -20,7 +20,7 @@ define () -> meta: "env" } - snippets = snippets.concat [{ + staticSnippets = staticSnippets.concat [{ caption: "\\begin{array}..." snippet: """ \\begin{array}{${1:cc}} @@ -96,9 +96,10 @@ define () -> """ meta: "env" }] + class SnippetManager getCompletions: (editor, session, pos, prefix, callback) -> console.log ">> get snippet completions" - callback null, snippets + callback null, staticSnippets return SnippetManager