securingsincity/react-ace

Disable annotations (useWorker not working)

Open

#275 opened on Oct 2, 2017

View on GitHub
 (11 comments) (0 reactions) (0 assignees)JavaScript (3,859 stars) (615 forks)batch import
Documentationbuggood first issuehelp wanted

Description

Heyo 👋 I'm having trouble disabling the annotations. After searching through some issues, I've tried out the following:

<AceEditor
  value={code}
  mode="javascript"
  theme="github"
  showLineNumbers
  readOnly
  editorProps={{
    $useWorker: false,
  }}
  setOptions={{
    useWorker: false
  }}
/>

As I understand it, setting either setOptions.useWorker or editorProps.$useWorker to false should disable annotations and linting entirely, but it just isn't working. Any ideas?

Thanks!

Contributor guide