-
Notifications
You must be signed in to change notification settings - Fork 30k
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
onDidWriteData, PseudoTerminal and Tasks #83927
Comments
(Experimental duplicate detection) |
So Task problem matchers seem to mostly cover what you're trying to do? https://code.visualstudio.com/docs/editor/tasks#_processing-task-output-with-problem-matchers Other things of note:
|
Weird... Problem matchers would have been just perfect but as I deal with unformatted output (legacy code), that is really not referring to any piece of code or a file. In fact I'm not always looking for "problems" in the output neither. I guess I will have to reconsider the tooling I'm using right now. Thanks for your time and your relevant points 👍 |
@alexr00 might be able to give more guidance with tasks and problem matchers, but they match on regex and then expose problems, plus they're part of the built-in diagnostics system. |
Problem matchers can also provide warnings and info, but they all end up in the "Problems" pane. |
I suspect that CustomExecution probably gives you more freedom than you need and that if we had #59337 then that would be more suited to what you need and mean less work for you. If you're interested, I recommend subscribing to #59337 so if I add API just for that then you can use it/provide feedback. |
Awesome, thanks for all your assistance. 👍 |
I wrote a VSCode extension (https://marketplace.visualstudio.com/items?itemName=flavienbusseuil.terminus) based on the feature
onDidWriteData
that has been deprecated in1.39
.My extension is about reading terminal output (mostly for Tasks) and watch for particular regex.
The new PseudoTerminal API support a similar feature but can only be used on terminals created by the extension itself.
I think I understand the reason of this choice... giving the control over existing terminals may lead to security issues. (even if I found odd that
sendText
is still available on legacy terminals)Regarding this consideration, I feel like my extension is broken forever... but I still have needs for it. Maybe there is another path for it?
I was thinking of re-doing my own Task launcher to have control over terminals through Pseudo Terminal... but sounds overkill.
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: