createOutputChannel

fun createOutputChannel(name: String, languageId: String = definedExternally): OutputChannel(source)

Creates a new output channel with the given name and language id If language id is not provided, then Log is used as default language id.

You can access the visible or active output channel as a text document} from {@link window.visibleTextEditors visible editors} or {@link window.activeTextEditor active editor and use the language id to contribute language features like syntax coloring, code lens etc.,

Parameters

name

Human-readable string which will be used to represent the channel in the UI.

languageId

The identifier of the language associated with the channel.