Skip to content

Commit

Permalink
disable accepting suggestions on enter
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed May 24, 2024
1 parent 52dcd80 commit 295261a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ const Editor: React.FC<{setRestart?, onDidChangeContent?, value: string, theme:
if (onDidChangeContent) {
model.onDidChangeContent(() => onDidChangeContent(model.getValue()))
}
// see available options here:
// https://microsoft.github.io/monaco-editor/typedoc/variables/editor.EditorOptions.html
const editor = monaco.editor.create(codeviewRef.current!, {
model,
glyphMargin: true,
Expand All @@ -88,7 +90,8 @@ const Editor: React.FC<{setRestart?, onDidChangeContent?, value: string, theme:
theme: 'vs',
wordWrap: config.wordWrap ? "on" : "off",
fontFamily: "JuliaMono",
wrappingStrategy: "advanced"
wrappingStrategy: "advanced",
acceptSuggestionOnEnter: "off"
})
setEditor(editor)
const abbrevRewriter = new AbbreviationRewriter(new AbbreviationProvider(), model, editor)
Expand Down

0 comments on commit 295261a

Please sign in to comment.