We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 214390c commit 903fd95Copy full SHA for 903fd95
src/Common/CodeEditor/CodeEditor.tsx
@@ -44,23 +44,6 @@ import {
44
import { CodeEditorReducer, initialState } from './CodeEditor.reducer'
45
import { MODES } from '../Constants'
46
47
-self.MonacoEnvironment = {
48
- getWorker(_, label) {
49
- const getWorkerModule = (moduleUrl: string) => {
50
- return new Worker(self.MonacoEnvironment.getWorkerUrl(moduleUrl, label), {
51
- name: label,
52
- type: 'module',
53
- })
54
- }
55
-
56
- if (label === MODES.YAML) {
57
- return getWorkerModule('../../yaml.worker.js?worker')
58
59
60
- return getWorkerModule('/monaco-editor/esm/vs/editor/editor.worker?worker')
61
- },
62
-}
63
64
const CodeEditorContext = React.createContext(null)
65
66
function useCodeEditorContext() {
0 commit comments