mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
renaming and organizing
This commit is contained in:
parent
f253b7e8cb
commit
d1b906db43
3 changed files with 8 additions and 8 deletions
|
@ -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 =
|
||||
|
|
|
@ -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)
|
|
@ -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
|
Loading…
Reference in a new issue