microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.68k stars 29.07k forks source link

Opens with no window button (minimize, maximize) #160328

Closed blakegearin closed 1 year ago

blakegearin commented 2 years ago

Type: Bug

If I use "code ." in iTerm it opens Visual Studo Code with no window buttons present, such as minimize and maximize. This started happening in the last week. Before the buttons were present.

VS Code version: Code 1.71.0 (784b0177c56c607789f9638da7b6bf3230d47a8c, 2022-09-01T07:25:25.516Z) OS version: Darwin arm64 21.5.0 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (10 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|4, 4, 4| |Memory (System)|16.00GB (0.08GB free)| |Process Argv|. --crash-reporter-id fcae4a8f-f291-474e-b53c-a1a864aa2ded| |Screen Reader|no| |VM|0%|
Extensions (103) Extension|Author (truncated)|Version ---|---|--- rails-db-schema|aki|0.2.6 Bookmarks|ale|13.3.1 vscode-sqlite|ale|0.14.1 vscode-color|ans|0.4.5 vscode-custom-css|be5|7.1.0 emojisense|bie|0.9.1 github-markdown-preview|bie|0.3.0 markdown-checkbox|bie|0.3.2 markdown-emoji|bie|0.3.0 markdown-footnotes|bie|0.0.7 markdown-mermaid|bie|1.15.2 markdown-preview-github-styles|bie|1.0.1 markdown-yaml-preamble|bie|0.1.0 vscode-intelephense-client|bme|1.8.2 vscode-tailwindcss|bra|0.8.6 phpserver|bra|3.0.2 language-hugo-vscode|bud|1.3.1 rails|bun|0.17.8 vscode-gemfile|bun|0.4.2 better-toml|bun|0.3.2 solargraph|cas|0.23.0 vscode-mysql-client2|cwe|5.7.10 markdown-table-prettify|dar|3.6.0 vscode-markdownlint|Dav|0.48.1 empty-indent|Dmi|0.2.0 xml|Dot|2.5.1 gitlens|eam|12.2.2 vscode-ember|emb|0.2.1 vsc-material-theme|Equ|33.5.0 vsc-material-theme-icons|equ|2.3.1 vscode-diff|fab|1.4.2 auto-close-tag|for|0.5.14 auto-rename-tag|for|0.1.10 code-runner|for|0.11.8 shell-format|fox|7.2.2 html-preview-vscode|geo|0.2.5 todo-tree|Gru|0.0.215 applescript|idl|0.21.2 customize-ui|ioc|0.1.63 monkey-patch|ioc|0.1.19 vscode-rufo|jnb|0.0.5 endwise|kai|1.5.1 haml|kar|1.4.1 syntax-project-pbxproj|mar|0.1.3 code-coverage|mar|1.8.6 rainbow-csv|mec|2.4.0 dotenv|mik|1.0.1 pyxt|mil|0.3.7 vscode-html-format|moh|0.0.5 vscode-duplicate|mrm|1.2.1 vscode-docker|ms-|1.22.1 csharp|ms-|1.25.0 data-workspace-vscode|ms-|0.3.0 mssql|ms-|1.16.0 sql-bindings-vscode|ms-|0.3.0 sql-database-projects-vscode|ms-|0.19.0 python|ms-|2022.14.0 vscode-pylance|ms-|2022.8.50 jupyter|ms-|2022.8.1002431955 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.9 remote-containers|ms-|0.251.0 remote-wsl|ms-|0.66.3 live-server|ms-|0.4.0 makefile-tools|ms-|0.6.0 powershell|ms-|2022.8.5 color-highlight|nau|2.5.0 indent-rainbow|ode|8.3.1 EmberES6Snippets|pha|2.3.3 markdown-checkbox|PKi|1.8.1 toggle-case|Pra|0.1.2 bracketeer|pus|1.3.1 ruby|reb|0.28.1 fabric8-analytics|red|0.3.6 java|red|1.10.0 vscode-commons|red|0.0.6 bash-debug|rog|0.3.9 vscode-hugo|rus|0.24.0 slim|sia|0.1.2 vscode-standard|sta|2.1.2 avro|str|0.5.0 code-spell-checker|str|2.7.2 sass-indented|syl|1.8.22 markdowntable|Tak|0.10.2 cython|tcw|0.1.0 remove-empty-lines|use|0.0.12 intellicode-api-usage-examples|Vis|0.2.2 vscodeintellicode|Vis|1.2.24 simple-ruby-erb|vor|0.2.1 vscode-java-debug|vsc|0.44.0 vscode-java-dependency|vsc|0.21.0 vscode-java-pack|vsc|0.25.1 vscode-java-test|vsc|0.37.1 vscode-maven|vsc|0.38.0 vscode-icons|vsc|11.16.0 gistfs|vsl|0.4.1 gitblame|wad|9.0.1 vscode-todo-highlight|way|1.0.5 vscode-ruby|win|0.28.0 php-debug|xde|1.28.0 markdown-all-in-one|yzh|3.4.3 json|Zai|2.0.2 material-theme|zhu|3.15.5 (7 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411cf:30557515 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 pylanb8912:30545647 vsclangdc:30486549 c4g48928:30535728 hb751961:30553087 dsvsc012cf:30540253 azure-dev_surveyone:30548225 i497e931:30553904 ```
gjsjohnmurray commented 2 years ago

/gifPlease

vscodenpa commented 2 years ago

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.

If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette).

Happy coding!

blakegearin commented 2 years ago

The buttons flash and then are gone.

Recording 2022-09-07 at 13 08 41

deepak1556 commented 2 years ago

Can you check if the issue happens with code --disable-extensions, if it still repros then try starting with code --user-data-dir /tmp/vscode and see how it looks.

blakegearin commented 2 years ago

Was able to reproduce with code --disable-extensions. With code --user-data-dir /tmp/vscode it does not occur. It always launches in the middle of the page instead of full screen/maximized.

I think the issue is it's trying to launch in full screen, failing, and instead going to Desktop in a window presenting in full screen mode.

blakegearin commented 2 years ago

Confirmed this issue occurs whether the window.restoreFullscreen setting is enabled or disabled. For reference, window.nativeFullScreen is enabled.

Let me know if you need any further information from me.

gjsjohnmurray commented 2 years ago

In Settings Editor please search for window.experimental.windowControlsOverlay.enabled and set its checkbox. Then restart VS Code. Does the problem remain?

blakegearin commented 2 years ago

There doesn't appear to be a setting for window.experimental.windowControlsOverlay.enabled I can enable. Search didn't come back with anything. Tried manually setting it in settings.json but it says "Unknown Configuration Setting" on hover.

Tried checking for updates and there are none. My versions are listed above but here's my latest. Perhaps this is experimental setting for Windows/Linux and not macOS?

Version: 1.71.2
Commit: 74b1f979648cc44d385a2286793c226e611f59e7
Date: 2022-09-14T21:07:15.900Z (3 days ago)
Electron: 19.0.12
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin arm64 21.5.0
Sandboxed: No
gjsjohnmurray commented 2 years ago

Sorry, you are correct. That setting only exists on Windows.

deepak1556 commented 2 years ago

Given that issue does not repro with new user data directory, looks like a setting might be the trigger for this issue. Can you share your editor settings. Thanks!

blakegearin commented 2 years ago

Confirmed the same behavior is happening on two macOS devices signed into my account.

WilliamVearrier commented 2 years ago

I found a work around for a single window. If you go Window > Tile Window to Left/Right of Screen this will force it into full screen. From there you can bring down the window buttons as normal.

Edit: If it helps debugging issue, I was put into this state by doing the most recent update (Sept 2022). After update, every window that was fullscreen before was like this. The other windows that weren't fullscreen were fine. However, I do not have the same issue were it opens in that state from code ./ For me, this was a temporary state

blakegearin commented 2 years ago

@deepak1556 Do you need more information to move this out of confirmation-pending ? We have 3 reports now of this happening.

trexx commented 1 year ago

FWIW this is happening on Windows too once I just updated today.

Version: 1.74.0-insider (user setup) Commit: 86f0f9bfa268fe21af7efae37d8f0da1dba8137f Date: 2022-11-03T05:36:55.498Z Electron: 19.1.3 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Windows_NT x64 10.0.22621 Sandboxed: Yes

image

Enabling window.experimental.windowControlsOverlay.enabled gets this back for us on Windows.

deepak1556 commented 1 year ago

Merging to https://github.com/microsoft/vscode/issues/161586