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
code -r true.txt fails #78440
Comments
@joaomoreno didn't we once have this issue where our CLI parser would choke over flags that have reserved JS words in them, as in this case " Anyhow, up for grab if someone wants to help out. |
@bpasero , I would like to take this up. |
@skprabhanjan thanks, a good start would be to try to reproduce running out of sources, I assume you are setup. Then I wonder why the second instance that is opening does not contain the proper environment from the command line (sends it over to the first instance here). |
Hi @bpasero , After debugging for long time this is what I found
So please go through this and get me know if this makes sense ( Not sure if we need to update the text that comes up when we type |
@joaomoreno thoughts on #78440 (comment) ? |
@skprabhanjan We can't force people to use This is a bug on minimist. I've submitted a PR to fix it https://github.com/substack/minimist/pull/138, but since minimist seems dead I just published our own version of it: https://www.npmjs.com/package/vscode-minimist. I've also added a test for this: https://github.com/microsoft/vscode/blob/56e836965104c8b76f65a76409c02cb44389e728/src/vs/platform/environment/test/node/environmentService.test.ts#L56:L65 |
@joaomoreno , That regex fix was amazing , Cheers :) |
Issue Type: Bug
code -r true.txt
expected: vscode is activated and the file true.txt is opened
actual: vscode is activated, but the file true.txt is not opened
VS Code version: Code 1.36.1 (2213894, 2019-07-08T22:56:38.504Z)
OS version: Darwin x64 18.7.0
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Extensions (10)
The text was updated successfully, but these errors were encountered: