Skip to content

bug: If logOutputChannel is created again after being disposed, it will disappear #214048

@xiyaowong

Description

@xiyaowong

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

Version: 1.90.0-insider
Commit: ca688da
Date: 2024-05-31T01:05:41.342Z
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code-Insiders/1.90.0-insider Chrome/122.0.6261.156 Electron/29.4.0 Safari/537.36

Steps to Reproduce:

extension.js

import { window } from 'vscode'

export function activate() {
  const log = window.createOutputChannel('test-log-channel', { log: true })
  setTimeout(() => {
    log.dispose()
    window.createOutputChannel('test-log-channel', { log: true })
  }, 1000)
}

There is no test-log-channel in the output panel.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersoutputOutput channel system issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions