Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Code started from terminal holding console open #165043

Closed
AnrDaemon opened this issue Oct 31, 2022 · 4 comments
Closed

VS Code started from terminal holding console open #165043

AnrDaemon opened this issue Oct 31, 2022 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug windows VS Code on Windows issues workbench-cli VS Code Command line issues
Milestone

Comments

@AnrDaemon
Copy link

Type: Bug

I've reported this issue earlier and got a response to use wrapper scripts from ./bin/ directory.
Unfortunately, they only cure half the problem. The diagnostic messages cease to appear in console, but the console remains to be held by the VS Code process until I completely exit the IDE, even if application I've opened the workspace from is long gone.

Simple reproduction:

  1. Win+X, open command prompt.
  2. Call "%ProgramFiles%/Microsoft VS Code/bin/code.cmd" "%path%/to/your/workspace"
  3. In command prompt terminal, type exit.
  4. Even though the command interpreter is gone, the console window remains open.
  5. Close VS Code. The console will close following shutdown of the IDE.

VS Code version: Code 1.72.2 (d045a5e, 2022-10-12T22:15:18.074Z)
OS version: Windows/any
Modes:
Sandboxed: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (8 x 3408)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
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) undefined
Memory (System) 15.92GB (10.33GB free)
Process Argv --folder-uri file:///c%3A/Users/Admin/Documents/hk/invapi-php
Screen Reader no
VM 0%
@AnrDaemon
Copy link
Author

The previous issue was #98164

@bersbersbers
Copy link

This goes back as far as #6608 :) Are you aware of #10162?

@Tyriar Tyriar assigned deepak1556 and aeschli and unassigned Tyriar Nov 29, 2022
@Tyriar Tyriar added windows VS Code on Windows issues workbench-cli VS Code Command line issues labels Nov 29, 2022
@aeschli aeschli assigned joaomoreno and unassigned aeschli Nov 29, 2022
@joaomoreno joaomoreno added this to the Backlog milestone Dec 1, 2022
@joaomoreno joaomoreno added the bug Issue identified by VS Code Team member as probable bug label Dec 1, 2022
@AnrDaemon
Copy link
Author

That's actually how I start VS Code "in production" - through cygstart utility or a batch file wrapper. But that's a problem in itself, I have to remember to use a wrapper at every time.
I can't simply use file associations, like with any normal program.

@deepak1556
Copy link
Collaborator

Merging to #66750

@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug windows VS Code on Windows issues workbench-cli VS Code Command line issues
Projects
None yet
Development

No branches or pull requests

8 participants