notebooks: expose scriptUrl global to renderers and kernels
Fixes https://github.com/microsoft/vscode/issues/109932
This commit is contained in:
parent
4286c603d6
commit
73eb361f29
1 changed files with 2 additions and 0 deletions
|
@ -108,6 +108,8 @@ function webviewPreloads() {
|
|||
throw new Error(`Unexpected ${res.status} requesting ${originalUri}: ${text || res.statusText}`);
|
||||
}
|
||||
|
||||
globals.scriptUrl = url;
|
||||
|
||||
const args = Object.entries(globals);
|
||||
new Function(...args.map(([k]) => k), text)(...args.map(([, v]) => v));
|
||||
return undefined;
|
||||
|
|
Loading…
Reference in a new issue