Skip to content

Commit

Permalink
fix: implement empty method
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Jan 8, 2024
1 parent d85e5a2 commit 6e79162
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/service-override/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { IAuxiliaryWindowService } from 'vs/workbench/services/auxiliaryWindow/b
import { StandaloneCodeEditor } from 'vs/editor/standalone/browser/standaloneCodeEditor'
import { IHostService } from 'vs/workbench/services/host/browser/host'
import { ICodeEditorService } from 'vs/editor/browser/services/codeEditorService'
import { getMenuBarVisibility, getTitleBarStyle } from 'vs/platform/window/common/window'
import { onRenderWorkbench } from '../lifecycle'
import { getWorkbenchContainer } from '../workbench'

Expand Down Expand Up @@ -225,19 +226,20 @@ export class LayoutService extends Disposable implements ILayoutService, IWorkbe
toggleMaximizedPanel (): void {
}

hasWindowBorder (): boolean {
return false
}

getWindowBorderWidth (): number {
return 0
}
toggleMenuBar (): void {
let currentVisibilityValue = getMenuBarVisibility(this.configurationService)
if (typeof currentVisibilityValue !== 'string') {
currentVisibilityValue = 'classic'
}

getWindowBorderRadius (): string | undefined {
return undefined
}
let newVisibilityValue: string
if (currentVisibilityValue === 'visible' || currentVisibilityValue === 'classic') {
newVisibilityValue = getTitleBarStyle(this.configurationService) === 'native' ? 'toggle' : 'compact'
} else {
newVisibilityValue = 'classic'
}

toggleMenuBar (): void {
void this.configurationService.updateValue('window.menuBarVisibility', newVisibilityValue)
}

setPanelPosition (position: Position): void {
Expand Down

0 comments on commit 6e79162

Please sign in to comment.