securingsincity/react-ace

Disable annotations (useWorker not working)

Open

#275 创建于 2017年10月2日

在 GitHub 查看
 (11 评论) (0 反应) (0 负责人)JavaScript (3,859 star) (615 fork)batch import
Documentationbuggood first issuehelp wanted

描述

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!

贡献者指南