renaming and organizing

This commit is contained in:
Nate Stemen 2017-08-16 17:55:43 +01:00
parent f253b7e8cb
commit d1b906db43
3 changed files with 8 additions and 8 deletions

View file

@ -1,9 +1,9 @@
define [
"ide/editor/directives/aceEditor/auto-complete/SuggestionManager"
"ide/editor/directives/aceEditor/auto-complete/SnippetManager"
"ide/editor/directives/aceEditor/auto-complete/CommandManager"
"ide/editor/directives/aceEditor/auto-complete/EnvironmentManager"
"ace/ace"
"ace/ext-language_tools"
], (SuggestionManager, SnippetManager) ->
], (CommandManager, EnvironmentManager) ->
Range = ace.require("ace/range").Range
aceSnippetManager = ace.require('ace/snippets').snippetManager
@ -18,7 +18,7 @@ define [
class AutoCompleteManager
constructor: (@$scope, @editor, @element, @labelsManager) ->
@suggestionManager = new SuggestionManager()
@suggestionManager = new CommandManager()
@monkeyPatchAutocomplete()
@ -42,7 +42,7 @@ define [
enableLiveAutocompletion: false
})
SnippetCompleter = new SnippetManager()
SnippetCompleter = new EnvironmentManager()
labelsManager = @labelsManager
LabelsCompleter =

View file

@ -159,7 +159,7 @@ define [], () ->
else
return false
class SuggestionManager
class CommandManager
getCompletions: (editor, session, pos, prefix, callback) ->
doc = session.getValue()
parser = new Parser(doc, prefix)

View file

@ -129,7 +129,7 @@ define () ->
return result
return result
class SnippetManager
class EnvironmentManager
getCompletions: (editor, session, pos, prefix, callback) ->
docText = session.getValue()
customEnvironments = parseCustomEnvironments(docText)
@ -164,4 +164,4 @@ define () ->
)
callback null, snippets
return SnippetManager
return EnvironmentManager