How to use the ace-builds/src-noconflict/ext-language_tools.addCompleter function in ace-builds

To help you get started, we’ve selected a few ace-builds examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Quramy / ts-server-side-anatomy / ls-web-local / src / editor / index.ts View on Github external
logger.log("sendChange", delta);
    lsClient.nextChange("/main.ts", delta);
  });

  lsClient.getErrors$("/main.ts").subscribe(errors => {
    if (errors.length) {
      logger.log("rcvError", errors);
    } else {
      logger.log("clearError");
    }
    editorSession.setAnnotations(errors);
  });

  if (lsClient.useComplete) {
    const completer = createCompleter(lsClient.languageServiceSession);
    langTools.addCompleter(completer);
  }

  return editor;
}