Skip to content

Commit

Permalink
feat(components): allow FeelEditor to take language context
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Jan 24, 2025
1 parent 03f4933 commit 40cb7ac
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/entries/FEEL/FeelEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ const CodeEditor = forwardRef((props, ref) => {
popupOpen,
disabled,
tooltipContainer,
variables
variables,
languageContext : {
builtins,
dialect,
parserDialect
} = { }
} = props;

const inputRef = useRef();
Expand Down Expand Up @@ -99,7 +104,10 @@ const CodeEditor = forwardRef((props, ref) => {
placeholder: placeholder,
tooltipContainer: tooltipContainer,
value: localValue,
variables: variables,
variables,
builtins,
dialect,
parserDialect,
extensions: [
...enableGutters ? [ lineNumbers() ] : [],
EditorView.lineWrapping
Expand Down

0 comments on commit 40cb7ac

Please sign in to comment.