MCPcopy
hub / github.com/microsoft/vscode / _workerLoadScript

Method _workerLoadScript

src/vs/amdX.ts:170–176  ·  view source on GitHub ↗
(scriptSrc: string)

Source from the content-addressed store, hash-verified

168 }
169
170 private async _workerLoadScript(scriptSrc: string): Promise<DefineCall | undefined> {
171 if (this._amdPolicy) {
172 scriptSrc = this._amdPolicy.createScriptURL(scriptSrc) as unknown as string;
173 }
174 await import(/* webpackIgnore: true */ /* @vite-ignore */ scriptSrc);
175 return this._defineCalls.pop();
176 }
177
178 private async _nodeJSLoadScript(scriptSrc: string): Promise<DefineCall | undefined> {
179 try {

Callers 1

loadMethod · 0.95

Calls 2

createScriptURLMethod · 0.65
popMethod · 0.45

Tested by

no test coverage detected