-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
Terminal API: 'sendText' should be more specific #11214
Comments
@Tyriar Suggestions? Reactions? The confusion about |
@Tyriar ping |
So, after some talks with @weinand I am getting a better understanding of this. We might along with some improved jsdoc around the topic |
I think the For the next release I suggest to add some The VS Code implementation of |
closing as dupe of #11276 |
Sorry for not seeing this, I took Tuesday off and didn't get through all my issues yesterday.
The typical usage should be something like this: let someCommand = 'echo -e "abc"';
terminal.sendText(someCommand); My concerns with @weinand's Also any shell could be running at the time, if Ubuntu bash or git bash is running in the Windows integrated terminal then |
@Tyriar yes, my Can you imagine how many I believe it is preferable to have the promise of a We in debug land are looking forward to the first bug filed against The problem with commands being stuck in a queue of not yet processed commands could be solved if you would surface whether a terminal is 'busy' executing a command or whether it is 'available'. Or you could automatically launch a new instance of a terminal if the current one is busy. |
I agree, just pointing out some holes 😃 #10917 will help in alleviating most of the issues. We went over a few of the hurdles in getting the status of the command in #9957, the most damning of which is the fact that the shell could be running any number of background processes for the life the terminal. So there may not be a way of reliably reporting whether it's truly busy or just idling with a background process. I just created #11422 and referenced these discussions so we don't lose track. |
The documentation describes it as
Send text to the terminal.
The text is actually a command that is then executed by the terminal (once terminated by a new line).
I would suggest something like this without an
addNewLine
parameter:What is a scenario where you want to append raw text to terminal? If there is one then I would suggest a separate function
append
.The text was updated successfully, but these errors were encountered: