Skip to content

Commit

Permalink
Update workflow-editor.js
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Oct 19, 2024
1 parent d823be9 commit 8a366df
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions plugin/src/main/js/workflow-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8a366df

Please sign in to comment.