Exemplo n.º 1
0
        public void OnWindowShowMessage(JToken arg)
        {
            try {
                Log(Methods.WindowShowMessageName, arg);

                var message = arg.ToObject <ShowMessageParams> ();
                LanguageClientMessageService.ShowMessage(message);
            } catch (Exception ex) {
                LanguageClientLoggingService.LogError("OnWindowShowMessage error.", ex);
            }
        }
Exemplo n.º 2
0
        public object OnWindowShowRequestMessage(JToken arg)
        {
            try {
                Log(Methods.WindowShowMessageRequestName, arg);

                var message = arg.ToObject <ShowMessageRequestParams> ();
                return(LanguageClientMessageService.ShowMessage(message));
            } catch (Exception ex) {
                LanguageClientLoggingService.LogError("OnWindowShowRequestMessage error.", ex);
            }
            return(null);
        }