Skip to content

Commit 0d20422

Browse files
committed
adopt new parameter config
1 parent 8039803 commit 0d20422

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/platform/packages/private/kbn-esql-editor/src/esql_editor.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,8 @@ export const ESQLEditor = memo(function ESQLEditor({
698698

699699
onLayoutChangeRef.current = onLayoutChange;
700700

701-
const codeEditorOptions: CodeEditorProps['options'] = useMemo(
702-
() => ({
701+
const codeEditorOptions = useMemo(
702+
(): NonNullable<CodeEditorProps['options']> => ({
703703
hover: {
704704
above: false,
705705
},
@@ -713,7 +713,7 @@ export const ESQLEditor = memo(function ESQLEditor({
713713
// this becomes confusing with multiple markers, so quick fixes
714714
// will be proposed only within the tooltip
715715
lightbulb: {
716-
enabled: false,
716+
enabled: monaco.editor.ShowLightbulbIconMode.Off,
717717
},
718718
lineDecorationsWidth: 20,
719719
lineNumbers: 'on',

src/platform/packages/shared/shared-ux/code_editor/impl/code_editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ export const CodeEditor: React.FC<CodeEditorProps> = ({
536536
// outer scrollbars.
537537
alwaysConsumeMouseWheel: false,
538538
},
539-
wordBasedSuggestions: false,
539+
wordBasedSuggestions: 'off',
540540
wordWrap: 'on',
541541
wrappingIndent: 'indent',
542542
matchBrackets: 'never',

0 commit comments

Comments
 (0)