Skip to content

Ignore empty string argument when starting Code #58177

@johnnytemp

Description

@johnnytemp
  • VSCode Version: 1.26.0
  • OS Version: macOS

Steps to Reproduce:

  1. run code '' in command line.
  2. VS Code seems opened a workspace of current directory folder, like code .

Does this issue occur when all extensions are disabled?: Yes

Reason the above behavior is improper

When I run some command like code "$(some command to get the file)" (e.g. code "$(which "$1")" in Linux), if the inner command failed, it return empty string as argument. VSCode shouldn't open current directory and replace the workspace (which is annoying), but should just open or focus the application instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesverification-neededVerification of issue is requestedverifiedVerification succeededworkbench-cliVS Code Command line issues

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions