Пример #1
0
        private ResponseResultOrError CallCodeLensResolve(RequestType requestType, object parameters)
        {
            ResponseResultOrError resultOrError = null;

            try
            {
                CodeLens result = OnCodeLensResolve((CodeLens)parameters);
                resultOrError = new ResponseResultOrError()
                {
                    result = result
                };
            }
            catch (Exception e)
            {
                resultOrError = new ResponseResultOrError()
                {
                    code = ErrorCodes.InternalError, message = e.Message
                };
            }
            return(resultOrError);
        }
Пример #2
0
 /// <summary>
 /// A request to resolve a command for a given code lens.
 /// </summary>
 public virtual CodeLens OnCodeLensResolve(CodeLens parameters)
 {
     return(null);
 }
Пример #3
0
 /// <summary>
 /// A request to resolve a command for a given code lens.
 /// </summary>
 public virtual CodeLens OnCodeLensResolve(CodeLens parameters)
 {
     return null;
 }