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

Corrupt logs/trace when debugging a VS Code extension using "type": "extensionHost" #1931

Open
segevfiner opened this issue Jan 29, 2024 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@segevfiner
Copy link
Contributor

Describe the bug
When debugging a VS Code extension using a "type": "extensionHost" debug configuration with "trace": true, the resulting log is corrupted, and you see the log file message printed twice:
Screenshot 2024-01-30 at 1 20 09

Hinting at the same file being written concurrently from two threads/async flows, which leads to its corruption.

To Reproduce
Steps to reproduce the behavior:

  1. Generate a new TypeScript VS Code extension using: yo code.
  2. Add "trace": true to its launch configuration.
  3. Run the extension using the debug configuration.
  4. Notice the message about the log file being printed twice, and the resulting log file will be corrupted at the end of the session.

Log File

It's corrupted 😛

VS Code Version: v1.85.2

Additional context

@segevfiner segevfiner added the bug Issue identified by VS Code Team member as probable bug label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants