public static CodeLensOptions Of(ICodeLensOptions options) { return(new CodeLensOptions() { ResolveProvider = options.ResolveProvider }); }
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 }); }
public static CodeLensOptions Of(ICodeLensOptions options) { return(new CodeLensOptions() { ResolveProvider = options.ResolveProvider, WorkDoneProgress = options.WorkDoneProgress }); }