Skip to content
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

fix console line number in external browser #503

Merged
merged 1 commit into from Jun 5, 2023

Conversation

toyobayashi
Copy link
Contributor

@toyobayashi toyobayashi commented May 11, 2023

#449

Fixes #508

What createConsoleOverride does is just to call postParentMessage before calling console output methods, but if window.parent === window postParentMessage does nothing, so should we override console only if window.parent !== window? At least this fixes the issue in external browser.

Copy link
Contributor

@andreamah andreamah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Thanks for making this change and sorry for the delay! By the way, I created #508 to accompany your PR for verification/tracking purposes.

@andreamah andreamah merged commit c7bafd3 into microsoft:main Jun 5, 2023
3 checks passed
@AghayevAydin
Copy link

@toyobayashi

Hello I am the Beginner Programming Learner,

After the last update of the VSCODE I do have lots of issues and it requires update again and again. Which solution do you offer me to solve this problem ?

@SammyAbukmeil
Copy link

This seems to be an issue still, I'm getting ___vscode_livepreview_injected_script:141 for all my console logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Injected code unnecessarily clobbers external browser console.logs
5 participants