defaultWorkerFactory.ts: deprecated require.toUrl() use #107440
Labels
debt
Code quality issues
insiders-released
Patch has been released in VS Code Insiders
sandbox
Running VSCode in a node-free environment
Milestone
The context is: #107437 and the deprecation of
require.toUrl
I noticed 2 uses of
require.toUrl
that ideally we can replace withFileAccess.asFileUri
andFileAccess.asBrowserUri
:vscode/src/vs/base/worker/defaultWorkerFactory.ts
Line 22 in 08c92c9
vscode/src/vs/base/worker/defaultWorkerFactory.ts
Line 39 in 08c92c9
I would have done it but wasn't exactly sure, my guess would be to use the
FileAccess.asBrowserUri
variant here since we are inbrowser
context.The text was updated successfully, but these errors were encountered: