Skip to content

Commit

Permalink
Merge pull request #2808 from quantified-uncertainty/run-hotkey-fix
Browse files Browse the repository at this point in the history
Fix submit hotkey
  • Loading branch information
berekuk authored Dec 27, 2023
2 parents b557d1d + 556b02e commit 82d658d
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,26 @@ export function useSquiggleEditorExtensions(

const tooltipsExtension = useTooltipsExtension();

const highPrioritySquiggleExtensions = [
submitExtension, // works only if listed before `builtinExtensions`
];
const squiggleExtensions = [
squiggleLanguageExtension,
showGutterExtension,
lineWrappingExtension,
submitExtension,
onChangeExtension,
widthHeightExtension,
viewNodeExtension,
formatExtension,
errorsExtension,
tooltipsExtension,
squiggleLanguageExtension,
];

return [builtinExtensions, squiggleExtensions];
return [
highPrioritySquiggleExtensions,
builtinExtensions,
squiggleExtensions,
];
}

export function useSquiggleEditorView({
Expand Down

3 comments on commit 82d658d

@vercel
Copy link

@vercel vercel bot commented on 82d658d Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 82d658d Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 82d658d Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.