import { IConnection , MessageType , ShowMessageParams } from "vscode-languageserver" ; import URI from "vscode-uri" ; /**
 * 服务端功能集合，主要提供一些基础的功能
 */ class Proxy0 { private _connetion : IConnection ; private _statusBar ; constructor ( ) { } /**
     * 初始化
     */ public init ( conn ) { this . _connetion = conn ; } param type param message public showMessage ( type , message ) { let messageParams = { type : type , message : message } ; this . _connetion . sendNotification ( "window/showMessage" , < ShowMessageParams > messageParams ) ; } param message public showMessageInfo ( message ) { this . showMessage ( MessageType . Info , message ) ; } param message public showMessageLog ( message ) { this . showMessage ( MessageType . Log , message ) ; } param message public showMessageWarning ( message ) { this . showMessage ( MessageType . Warning , message ) ; } param message public showMessageError ( message ) { this . showMessage ( MessageType . Error , message ) ; } param text param color public showStatusBar ( text , color = "" ) { this . _connetion . sendRequest ( "showStatusBar" , { text : text , color : color } ) ; } /**
     * 隐藏任务栏
     */ public hideStatusBar ( ) { this . _connetion . sendRequest ( "hideStatusBar" ) ; } param method param params public sendRequest ( method , params ) { this . _connetion . sendRequest ( method , params ) ; } /**
     * 与客户端的连接
     */ public get connection ( ) : IConnection { return this . _connetion ; } } /**
 * 服务端代码，基础功能集合
 */ export const ServerProxy = new Proxy0 ( ) ;