mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Implement workspace-aware default window sizing with unified API (1440x900 for workspaces, 1200x800 for empty windows) (#262266)
This commit is contained in:
@@ -111,7 +111,7 @@ async function launchBrowser(options: LaunchOptions, endpoint: string) {
|
||||
}
|
||||
|
||||
const page = await measureAndLog(() => context.newPage(), 'context.newPage()', logger);
|
||||
await measureAndLog(() => page.setViewportSize({ width: 1200, height: 800 }), 'page.setViewportSize', logger);
|
||||
await measureAndLog(() => page.setViewportSize({ width: 1440, height: 900 }), 'page.setViewportSize', logger);
|
||||
|
||||
if (options.verbose) {
|
||||
context.on('page', () => logger.log(`Playwright (Browser): context.on('page')`));
|
||||
|
||||
@@ -57,8 +57,8 @@ if (args.help) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const width = 1200;
|
||||
const height = 800;
|
||||
const width = 1440;
|
||||
const height = 900;
|
||||
|
||||
type BrowserType = 'chromium' | 'firefox' | 'webkit';
|
||||
type BrowserChannel = 'msedge' | 'chrome';
|
||||
|
||||
Reference in New Issue
Block a user