Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Pasero <benjpas@microsoft.com>2020-09-22 09:40:57 +0300
committerBenjamin Pasero <benjpas@microsoft.com>2020-09-22 09:40:57 +0300
commit7c5934902c01f366c2042a6c350179dae22b82cc (patch)
treeeace439c5e7d7e8a5c95e61110ac36e099186cc3 /src/bootstrap-window.js
parent5497e60ed2cde7565766dea5151d0972159d23bc (diff)
sandbox - self invoke functions for shared process, issues and process explorer
Diffstat (limited to 'src/bootstrap-window.js')
-rw-r--r--src/bootstrap-window.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap-window.js b/src/bootstrap-window.js
index 133587e4aae..d3d05e5578f 100644
--- a/src/bootstrap-window.js
+++ b/src/bootstrap-window.js
@@ -107,6 +107,10 @@
'vs/nls': nlsConfig
};
+ // Enable loading of node modules:
+ // - sandbox: we list paths of webpacked modules to help the loader
+ // - non-sandbox: we signal that any module that does not begin with
+ // `vs/` should be loaded using node.js require()
if (sandbox) {
loaderConfig.paths = {
'vscode-textmate': `../node_modules/vscode-textmate/release/main`,