MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / getWorker

Function getWorker

frontend/packages/common/src/monacoConfig.ts:9–23  ·  view source on GitHub ↗
(_, label)

Source from the content-addressed store, hash-verified

7
8self.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
26export { monaco }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected