Plugins - support plugin specific logging #15913
Labels
Declined
The issue was declined as something which matches the TypeScript vision
Suggestion
An idea for TypeScript
The tslint language server plugin has to handle the situation that a
tslint.json
file cannot be read. The tslint API to get the configuration returns an exception in this case. There needs to be a way to show the exception to the user. The VS Code tslint extension shows this exception in the tslint output channel, see the screenshot below.A plugin has access to the TS logger
info.project.projectService.logger
, but this log is intended for plugin authors to trace the execution of a plugin. It is not intended to be shown and understood by the end user.What would be needed is an API that allows a plugin to send a log message event under a particular topic to the language server client. A client like VS Code can then append this message to a plugin specific output channel, in this case to the tslint channel.
// fyi @mjbvz
The text was updated successfully, but these errors were encountered: