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 <benjamin.pasero@microsoft.com>2021-03-31 11:48:07 +0300
committerBenjamin Pasero <benjamin.pasero@microsoft.com>2021-03-31 11:48:11 +0300
commit970f79989019d1c1fef0aadccc16e6ed21835a38 (patch)
tree752ec01eb40c707cda5456eaa9b3e63d9d41ad1c /src/bootstrap-window.js
parent5c7957161072c7cc5a0a26314e14e9d9817ed476 (diff)
preload - apply zoom level after resolving config
Diffstat (limited to 'src/bootstrap-window.js')
-rw-r--r--src/bootstrap-window.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/bootstrap-window.js b/src/bootstrap-window.js
index a87f4fbf69a..b3412d30581 100644
--- a/src/bootstrap-window.js
+++ b/src/bootstrap-window.js
@@ -23,7 +23,6 @@
}(this, function () {
const bootstrapLib = bootstrap();
const preloadGlobals = globals();
- const webFrame = preloadGlobals.webFrame;
const safeProcess = preloadGlobals.process;
const useCustomProtocol = safeProcess.sandboxed || typeof safeProcess.env['ENABLE_VSCODE_BROWSER_CODE_LOADING'] === 'string';
@@ -38,17 +37,10 @@
*/
async function load(modulePaths, resultCallback, options) {
performance.mark('code/willWaitForWindowConfig');
+ /** @type {import('./vs/base/parts/sandbox/common/sandboxTypes').ISandboxConfiguration} */
const configuration = await preloadGlobals.context.configuration;
performance.mark('code/didWaitForWindowConfig');
- // Apply zoom level early before even building the
- // window DOM elements to avoid UI flicker. We always
- // have to set the zoom level from within the window
- // because Chrome has it's own way of remembering zoom
- // settings per origin (if vscode-file:// is used) and
- // we want to ensure that the user configuration wins.
- webFrame.setZoomLevel(configuration.zoomLevel ?? 0);
-
// Error handler
safeProcess.on('uncaughtException', function (/** @type {string | Error} */ error) {
onUnexpectedError(error, enableDeveloperTools);