Skip to content

Commit

Permalink
Merge pull request #703 from pe4cey/plain-editor
Browse files Browse the repository at this point in the history
Disable cypher syntax highlighting based on editorAutocomplete setting
  • Loading branch information
oskarhane authored Feb 23, 2018
2 parents 6579053 + f51e54b commit 0a727d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/browser/modules/Editor/Editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ export class Editor extends Component {
},
autoCloseBrackets: {
explode: ''
}
},
...(!this.props.enableEditorAutocomplete ? { mode: '', theme: '' } : {})
}

const updateCode = (val, change) => this.updateCode(val, change)
Expand Down
5 changes: 2 additions & 3 deletions src/browser/modules/Sidebar/Settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ const visualSettings = [
},
{
editorAutocomplete: {
displayName: 'Trigger autocomplete when typing',
tooltip:
'Autocomplete written queries in editor (shortcut keys will still work)',
displayName: 'Enhanced query editor',
tooltip: 'Autocomplete and syntax highlighting in query editor',
type: 'checkbox'
}
}
Expand Down

0 comments on commit 0a727d2

Please sign in to comment.