Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react';
import PropTypes from 'prop-types';
import FontAwesomeIcon from 'react-fontawesome';
import classNames from 'classnames';
import {SortableContainer, SortableElement} from 'react-sortable-hoc';
import arrayMove from 'array-move';
import {DARK_THEME, LIGHT_THEME} from '../constants';
import {monaco as monacoReact} from '@monaco-editor/react';
monacoReact
.config({
urls: {
monacoLoader: '/vsdir/vsdir/vs/loader.js',
monacoBase: '/vsdir/vsdir/vs'
},
});
const SUPPORTED_LANGUAGES = ['css', 'sol', 'html', 'json'];
const DEFAULT_LANGUAGE = 'javascript';
const EDITOR_ID = 'react-monaco-editor-container';
const GUTTER_GLYPH_MARGIN = 2;
let monacoResolved;
let rejectMonaco;
let resolveMonaco;
let monaco;