securingsincity/react-ace

Disable annotations (useWorker not working)

Aperta

#275 aperta il 2 ott 2017

 (11 commenti) (0 reazioni) (0 assegnatari)JavaScript (615 fork)batch import
Documentationbuggood first issuehelp wanted

Metriche repository

Star
 (3859 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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!

Guida contributor