use flag on aceEditor to enable autocomplete features

This commit is contained in:
Shane Kilkelly 2017-06-08 09:22:08 +01:00
parent f7ad4a4786
commit c7dbd21cd1
2 changed files with 2 additions and 1 deletions

View file

@ -37,6 +37,7 @@ div.full-size(
keybindings="settings.mode",
font-size="settings.fontSize",
auto-complete="settings.autoComplete",
enable-auto-complete-features="true",
spell-check="!anonymous",
spell-check-language="project.spellCheckLanguage",
highlights="onlineUserCursorHighlights[editor.open_doc_id]"

View file

@ -92,7 +92,7 @@ define [
highlightsManager = new HighlightsManager(scope, editor, element)
cursorPositionManager = new CursorPositionManager(scope, editor, element, localStorage)
trackChangesManager = new TrackChangesManager(scope, editor, element)
if scope.name == 'editor'
if attrs.enableAutoCompleteFeatures
labelsManager = new LabelsManager(scope, editor, element)
autoCompleteManager = new AutoCompleteManager(scope, editor, element, labelsManager)