public static CodeLensOptions Of(ICodeLensOptions options)
 {
     return(new CodeLensOptions()
     {
         ResolveProvider = options.ResolveProvider
     });
 }
コード例 #2
0
 public static CodeLensOptions Of(ICodeLensOptions options, IEnumerable <IHandlerDescriptor> descriptors)
 {
     return(new CodeLensOptions()
     {
         ResolveProvider = options.ResolveProvider || descriptors.Any(z => z.HandlerType == typeof(ICodeLensResolveHandler)),
         WorkDoneProgress = options.WorkDoneProgress
     });
 }
コード例 #3
0
 public static CodeLensOptions Of(ICodeLensOptions options)
 {
     return(new CodeLensOptions()
     {
         ResolveProvider = options.ResolveProvider,
         WorkDoneProgress = options.WorkDoneProgress
     });
 }