Skip to content

(bug) Hangs after non input-consuming command (such as pwd, echo, date) #39

Description

@dpercy

Some commands like pwd or date are useful when editing but don't consume any input. It looks like the plugin hangs the first time you run one of these.

For example:

  1. Run fmt and see it succeed.
    • The prompt disappears.
    • The text is updated.
  2. Run pwd and see it hang.
    • The prompt stays visible.
    • The text is unchanged.
  3. Run fmt again and see it hang.

Running Cmd-Shift-P > Developer: Reload Window fixes it.

I also notice that cat > tmp ; pwd succeeds, so the problem seems to be with whether the input is consumed, rather than pwd in particular.

Also, head succeeds, so the plugin doesn't mind when the command closes its input early.

Maybe the problem is that the plugin is waiting for the command to close its input? And instead it should wait for the process to exit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions