vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Cannot fullscreen when opening with `code .` from terminal

Open CodeCorrupt opened this issue 10 years ago • 10 comments

  • VSCode Version: 1.2.1 (1.2.1)
  • OS Version: OSX 10.11.5 (15F34)

Steps to Reproduce:

  1. Navigate to the desired folder of your project.
  2. execute code .
  3. Press the green "fullscreen" button, OR cmd+ctrl+F
  4. Application does not resize.

CodeCorrupt avatar Jul 05 '16 20:07 CodeCorrupt

Can you provide a recording of this behavior? I can't reproduce it.

joaomoreno avatar Jul 06 '16 10:07 joaomoreno

error

In testing I've realized that the issue only arises when code is called from within tmux.

CodeCorrupt avatar Jul 07 '16 04:07 CodeCorrupt

Can you reproduce it with plain Electron?

joaomoreno avatar Jul 07 '16 07:07 joaomoreno

I can repro this very easily on OS X. as @CodeCorrupt said, type tmux then code . and full-screen does not work as in the screen recording above.

ahmetb avatar Jul 12 '16 21:07 ahmetb

here's the diff of env variables (ps eww <pid>) of the vscode main process got when launched directly (<) and from tmux (>):

3c3
< ELECTRON_NO_ATTACH_CONSOLE
---
> ELECTRON_NO_ATTACH_CONSOLE=1
18c18
< SHLVL=2
---
> SHLVL=3
21c21
< TERM=xterm-256color
---
> TERM=screen-256color
25a26,27
> TMUX=/private/tmp/tmux-501/default,31436,0
> TMUX_PANE=%0

TERM might be causing this issue but when I exported it manually, it still didn't work...

ahmetb avatar Jul 12 '16 21:07 ahmetb

@ahmetalpbalkan I did not understand whether you could reproduce this with Electron.

joaomoreno avatar Jul 13 '16 06:07 joaomoreno

Could we not have a code -f . option to open the application from terminal that opens it fullscreen straight away?

jchannon avatar Aug 01 '16 14:08 jchannon

@jchannon That's another feature. Feel free to file a new issue for it.

@ahmetalpbalkan Can you reproduce this with plain Electron?

joaomoreno avatar Aug 02 '16 07:08 joaomoreno

This appears to have been fixed. I'm no longer experiencing the issue. (Not sure which update fixed it though)

CodeCorrupt avatar Aug 24 '16 01:08 CodeCorrupt

Thanks.

joaomoreno avatar Aug 24 '16 06:08 joaomoreno