atom-languageclient
Version:
Integrate Language Servers with Atom
29 lines (28 loc) • 1.25 kB
TypeScript
import type * as atomIde from "atom-ide-base";
import { LanguageClientConnection } from "../languageclient";
/** Adapts Atom's user notifications to those of the language server protocol. */
export default class LoggingConsoleAdapter {
private _consoles;
/**
* Create a new {LoggingConsoleAdapter} that will listen for log messages via the supplied {LanguageClientConnection}.
*
* @param connection A {LanguageClientConnection} to the language server that will provide log messages.
*/
constructor(connection: LanguageClientConnection);
/** Dispose this adapter ensuring any resources are freed and events unhooked. */
dispose(): void;
/**
* Public: Attach this {LoggingConsoleAdapter} to a given {atomIde.ConsoleApi}.
*
* @param console A {atomIde.ConsoleApi} that wants to receive messages.
*/
attach(console: atomIde.ConsoleApi): void;
/** Public: Remove all {atomIde.ConsoleApi}'s attached to this adapter. */
detachAll(): void;
/**
* Log a message using the Atom IDE UI Console API.
*
* @param params The {LogMessageParams} received from the language server indicating the details of the message to be loggedd.
*/
private logMessage;
}