Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-completion supported? #10

Open
Ynhockey opened this issue Nov 27, 2019 · 4 comments
Open

Auto-completion supported? #10

Ynhockey opened this issue Nov 27, 2019 · 4 comments
Labels

Comments

@Ynhockey
Copy link

The vanilla Ace Editor has some options related to code completion, namely: enableBasicAutocompletion and enableLiveAutocompletion. These don't appear to be supported by the wrapper, but I might be missing something. Is it possible to use these and other custom options in any way?

@sconix
Copy link
Contributor

sconix commented Dec 21, 2019

I do not think core Ace editor provides those options, you most likely need to load some extension.

@syifarahmat
Copy link

Hi @sconix for autocomplete is required config :
enableBasicAutocompletion: true,
and/ or
enableLiveAutocompletion: true
and script : ace/ext-language_tools.js

but in this not part of library configinterface.
please fix it immediately...... thnk's

@lukaszmac
Copy link

After following advice in another comment to a related question, I set the following import in my polyfills.ts file:

/***************************************************************************************************
 * APPLICATION IMPORTS
 */
import 'brace';

After that Ace loads up as expected.

To get the auto complete working, I then have to add the following to the components that want auto completion:

Existing:

import 'brace';
import 'brace-extra';

NEW:

import 'brace/ext/language_tools';

Existing:

import 'brace/mode/java';
import 'brace/theme/github';

I hope this helps someone. Let me know if there was a better way of doing this that the authors originally intended.

@kungfuboy
Copy link

Hi @sconix for autocomplete is required config : enableBasicAutocompletion: true, and/ or enableLiveAutocompletion: true and script : ace/ext-language_tools.js

but in this not part of library configinterface. please fix it immediately...... thnk's

It works for me. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants