-
Notifications
You must be signed in to change notification settings - Fork 28.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
Support process.stdout.write
from Extension Host to debug output
#74173
Comments
I'm on: |
It looks like this was done intentionally a long time ago - https://dev.azure.com/monacotools/_git/Monaco/commit/309d5296ab7f09d50f3e04f391617a26fe3335d2?_a=compare&path=%2Fsrc%2Fbootstrap.js It currently is here -- Line 153 in 465d948
I don't know exactly why we did this or if it is now safe to remove... @bpasero thoughts? |
@alexandrudima yeah I cannot recall for sure, probably some Electron issue which may easily no longer hold true. I think we can try to remove it and see what breaks. |
@joaomoreno hey, do you remember maybe? Looking at |
Maybe we push this rather early in debt week and not now so close before endgame. I also do not want to overload the Electron 6 update with a potential breaking change such as this one. |
Thanks @bpasero ! |
The code change is clearly correct but I'm not sure it makes a difference because as far as I know, the extension host stdout isn't actually going anywhere? When I run |
It does go to the devtools for the window running the extension. It would be on vscode (not the DA) to pass that along to the Debug Console. But if we do that, we would get duplicate messages in the Debug Console. So I wonder whether the fix you really want is to redirect |
process.stdout.write
in Extension Host does nothingprocess.stdout.write
from Extension Host to debug output
Thanks, I do not think this warrants anymore changes for November. @octref feel free to check out Robs suggestion if you can make it work. |
This does not seem possible due to nodejs/node#8033 |
I did this in a more primitive way in 538988c |
Root cause of #56211
Repro:
This is not specific to debug console.
process.stdout.write
does nothing in extension code.The text was updated successfully, but these errors were encountered: