Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

229
Views
How to display the next value of the code entered in the ace editor as a candidate

I want to display an arbitrary character string as the next candidate based on the code entered with the ace editor. I know how to extend the normal code completion function as follows.

However, I would like to create a function that predicts a character string that displays B, C, and D as the next candidate when A is entered instead of code completion.

ex) Input value:A
Candidate:B,C,D←I want to display this in the form of displaying existing code completion

let Completer = {
  getCompletions: function (editor, session, pos, prefix, callback) {
    var wordList = ["apple", "banana", "bar"];
    callback(
      null,
      wordList.map(function (word) {
        return {
          caption: word,
          value: word,
          meta: "string",
        };
      })
    );
  },
};
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!