Skip to content

Commit

Permalink
Default syntaxHighlighting to true
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonherbert committed Sep 20, 2024
1 parent ef4c03c commit 6af453b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion prosemirror-client/src/cqlInput/CqlInput.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ describe("CqlInput", () => {
await waitFor("example +tag");
});

it.only("ctrl-a moves the caret to the beginning of the input", async () => {
it("ctrl-a moves the caret to the beginning of the input", async () => {
const { user, container, waitFor } = mountComponent("a");

await moveCursorToEnd(container);
Expand Down
4 changes: 2 additions & 2 deletions prosemirror-client/src/cqlInput/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const createCqlPlugin = ({
errorMsgEl,
onChange,
debugEl,
config,
config: { syntaxHighlighting = true },
}: {
cqlService: CqlServiceInterface;
typeaheadEl: HTMLElement;
Expand Down Expand Up @@ -204,7 +204,7 @@ export const createCqlPlugin = ({
? [errorToDecoration(mapping.map(error.position))]
: [];

const maybeTokensToDecorations = config.syntaxHighlighting
const maybeTokensToDecorations = syntaxHighlighting
? tokensToDecorations(tokens)
: [];

Expand Down

0 comments on commit 6af453b

Please sign in to comment.