Skip to content

Commit

Permalink
Add Java support to rules (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 committed Apr 27, 2023
1 parent 9a93c60 commit 44dfa20
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -40,7 +40,11 @@ export const RuleEditor: React.FC<IRuleEditorProps> = ({ ruleId, props }) => {
isLanguageLabelVisible
isDownloadEnabled
code={ruleQuery.data?.content}
language={Language.xml}
language={
ruleQuery.data?.content.startsWith("<rule")
? Language.xml
: Language.java
}
onEditorDidMount={(editor, monaco) => {
editor.layout();
editor.focus();
Expand Down

0 comments on commit 44dfa20

Please sign in to comment.