Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable cypher syntax highlighting based on editorAutocomplete setting #703

Merged
merged 1 commit into from
Feb 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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