Skip to content

Commit

Permalink
Use escaped Cypher where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarhane committed Dec 6, 2022
1 parent 4879923 commit de36649
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/late-ears-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@neo4j-cypher/codemirror": patch
---

Use escaped Cypher when needed in the auto-completions
3 changes: 2 additions & 1 deletion packages/codemirror/src/cypher-extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,10 @@ const cypherCompletions = (context) => {
);
const completion = editorSupport.getCompletion(line, column, true);
const { items, from, to } = completion;
const completions = items.map(({ type, view, postfix }) => ({
const completions = items.map(({ type, view, content, postfix }) => ({
type,
label: view,
apply: content,
detail: postfix
}));
let word = context.matchBefore(/\w*/);
Expand Down

0 comments on commit de36649

Please sign in to comment.