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

LogOutputChannel does not clear all characters of Log Message #224516

Open
AnWeber opened this issue Aug 1, 2024 · 2 comments
Open

LogOutputChannel does not clear all characters of Log Message #224516

AnWeber opened this issue Aug 1, 2024 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug log VS Code log issues output Output channel system issues
Milestone

Comments

@AnWeber
Copy link
Contributor

AnWeber commented Aug 1, 2024

Does this issue occur when all extensions are disabled?: Yes

Version: 1.91.1 (system setup)
Commit: f1e16e1
Date: 2024-07-09T22:06:49.809Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.22631

Steps to Reproduce:

  1. Create extensions with code
export function activate(): void {
  const notClearable = vscode.window.createOutputChannel(`LogOutputChannel`, { log: true });

  notClearable.info('my first log message');
  setTimeout(() => {
    notClearable.clear();
    setTimeout(() => {
      notClearable.info('my second log message');
    }, 4000);
  }, 4000);
}
  1. start extension

After 8000ms LogOutputChannel should only have one message my second log message in the channel. Instead it contains some remaining chars of the first log message.

log_not_cleared

@c3danielxu
Copy link

I am running into the same issue as well. After calling clear on a LogOutputChannel, when the next message is logged, regardless of info/error/debug/etc, part of the previous log is shown.

@nhedger
Copy link

nhedger commented Aug 12, 2024

It is possibly a duplicate of my previous issue, #204946, which I believe was closed prematurely.

@sandy081 sandy081 added output Output channel system issues bug Issue identified by VS Code Team member as probable bug log VS Code log issues labels Sep 30, 2024
@sandy081 sandy081 added this to the October 2024 milestone Sep 30, 2024
@sandy081 sandy081 modified the milestones: October 2024, November 2024 Oct 21, 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 log VS Code log issues output Output channel system issues
Projects
None yet
Development

No branches or pull requests

5 participants