(_, label)
| 7 | |
| 8 | self.MonacoEnvironment = { |
| 9 | getWorker(_, label) { |
| 10 | if (label === 'json') { |
| 11 | return new jsonWorker() |
| 12 | } |
| 13 | if (label === 'css' || label === 'scss' || label === 'less') { |
| 14 | return new cssWorker() |
| 15 | } |
| 16 | if (label === 'html' || label === 'handlebars' || label === 'razor') { |
| 17 | return new htmlWorker() |
| 18 | } |
| 19 | if (label === 'typescript' || label === 'javascript') { |
| 20 | return new tsWorker() |
| 21 | } |
| 22 | return new editorWorker() |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | export { monaco } |
nothing calls this directly
no outgoing calls
no test coverage detected