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:
Diffstat (limited to 'src/vs/platform/windows/electron-main/window.ts')
-rw-r--r--src/vs/platform/windows/electron-main/window.ts18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/vs/platform/windows/electron-main/window.ts b/src/vs/platform/windows/electron-main/window.ts
index 793ea8a934f..12c49860d48 100644
--- a/src/vs/platform/windows/electron-main/window.ts
+++ b/src/vs/platform/windows/electron-main/window.ts
@@ -34,7 +34,6 @@ import { IFileService } from 'vs/platform/files/common/files';
import { FileAccess, Schemas } from 'vs/base/common/network';
import { isLaunchedFromCli } from 'vs/platform/environment/node/argvHelper';
import { CancellationToken } from 'vs/base/common/cancellation';
-import { INativeHostMainService } from 'vs/platform/native/electron-main/nativeHostMainService';
import { IProtocolMainService } from 'vs/platform/protocol/electron-main/protocol';
export interface IWindowCreationOptions {
@@ -153,7 +152,6 @@ export class CodeWindow extends Disposable implements ICodeWindow {
@ITelemetryService private readonly telemetryService: ITelemetryService,
@IDialogMainService private readonly dialogMainService: IDialogMainService,
@ILifecycleMainService private readonly lifecycleMainService: ILifecycleMainService,
- @INativeHostMainService private readonly nativeHostMainService: INativeHostMainService,
@IProductService private readonly productService: IProductService,
@IProtocolMainService private readonly protocolMainService: IProtocolMainService
) {
@@ -510,22 +508,6 @@ export class CodeWindow extends Disposable implements ICodeWindow {
this._lastFocusTime = Date.now();
});
- if (isMacintosh) {
- this._register(this.nativeHostMainService.onDidChangeDisplay(() => {
- if (!this._win) {
- return; // disposed
- }
-
- // Simple fullscreen doesn't resize automatically when the resolution changes so as a workaround
- // we need to detect when display metrics change or displays are added/removed and toggle the
- // fullscreen manually.
- if (!this.useNativeFullScreen() && this.isFullScreen) {
- this.setFullScreen(false);
- this.setFullScreen(true);
- }
- }));
- }
-
// Window (Un)Maximize
this._win.on('maximize', (e: Event) => {
if (this.currentConfig) {