提交 b8164089 编写于 作者: B Benjamin Pasero

modify launch.json Zoom back to 100% (fixes #1536)

上级 e49c8ea2
......@@ -103,12 +103,20 @@ export class ElectronIntegration {
});
// Configuration changes
let previousConfiguredZoomLevel: number;
this.configurationService.addListener(ConfigurationServiceEventTypes.UPDATED, (e: IConfigurationServiceEvent) => {
let windowConfig: IWindowConfiguration = e.config;
let newZoomLevel = 0;
if (windowConfig.window && typeof windowConfig.window.zoomLevel === 'number') {
newZoomLevel = windowConfig.window.zoomLevel;
// Leave early if the configured zoom level did not change (https://github.com/Microsoft/vscode/issues/1536)
if (previousConfiguredZoomLevel === newZoomLevel) {
return;
}
previousConfiguredZoomLevel = newZoomLevel;
}
if (webFrame.getZoomLevel() !== newZoomLevel) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册