From 8a366df4adc2898b24850ff736c7a6710e84783a Mon Sep 17 00:00:00 2001 From: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sat, 19 Oct 2024 15:08:45 +0100 Subject: [PATCH] Update workflow-editor.js --- plugin/src/main/js/workflow-editor.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/plugin/src/main/js/workflow-editor.js b/plugin/src/main/js/workflow-editor.js index 76d8500cd..1952cc5ea 100644 --- a/plugin/src/main/js/workflow-editor.js +++ b/plugin/src/main/js/workflow-editor.js @@ -14,11 +14,6 @@ import "./snippets/workflow"; var editorIdCounter = 0; -// function setTheme(editor) { -// // const theme = window.getThemeManagerProperty('ace-editor', 'theme') || 'tomorrow' -// // editor.setTheme("ace/theme/" + 'tomorrow_night'); -// } - $(function() { $('.workflow-editor-wrapper').each(function() { initEditor($(this)); @@ -48,17 +43,6 @@ $(function() { var snippets = snippetManager.parseSnippetFile(snippetContent); snippetManager.register(snippets, 'groovy'); editor.session.setMode("ace/mode/groovy"); - // setTheme(editor) - // if (window.getThemeManagerProperty) { - // setTheme(editor); - // - // // if (window.isSystemRespectingTheme) { - // // window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => { - // // setTheme(editor) - // // }); - // // } - // - // } editor.setAutoScrollEditorIntoView(true); editor.setOption("minLines", 20); // enable autocompletion and snippets