-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
bug: If logOutputChannel is created again after being disposed, it will disappear #214048
Comments
Thanks for reporting this @xiyaowong, I have the exact same issue. In the meantime I have a workaround: 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 })
window.createOutputChannel('test-log-channel', { log: true })
}, 1000)
} I was surprised this does not throw, usually if you create something that was not previously disposed, it will throw an error like "command was already registered" or "notebook controller already exists". I am currently commenting out my |
PR fixing it #225709 |
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
There is no test-log-channel in the output panel.
The text was updated successfully, but these errors were encountered: