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:
- Run
fmt and see it succeed.
- The prompt disappears.
- The text is updated.
- Run
pwd and see it hang.
- The prompt stays visible.
- The text is unchanged.
- 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.
Some commands like
pwdordateare 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:
fmtand see it succeed.pwdand see it hang.fmtagain and see it hang.Running Cmd-Shift-P
> Developer: Reload Windowfixes it.I also notice that
cat > tmp ; pwdsucceeds, so the problem seems to be with whether the input is consumed, rather thanpwdin particular.Also,
headsucceeds, 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.