private HandClassifierFactory(IProgressManager progressManager, string workingDirectory, string sourceFilePrefix,
   string targetFile)
   : base(progressManager, workingDirectory)
 {
   _sourceFilePrefix = sourceFilePrefix;
   _targetFile = targetFile;
 }
 public GeneralLanguageServer(
     IResponseRouter requestRouter, IResolverContext resolverContext, IProgressManager progressManager,
     ILanguageProtocolSettings languageProtocolSettings
     ) : base(requestRouter, resolverContext, progressManager, languageProtocolSettings)
 {
 }
 public MyWorkspaceSymbolsHandler(IServerWorkDoneManager serverWorkDoneManager, IProgressManager progressManager, ILogger <MyWorkspaceSymbolsHandler> logger) :
     base(new WorkspaceSymbolRegistrationOptions())
 {
     _serverWorkDoneManager = serverWorkDoneManager;
     _progressManager       = progressManager;
     this.logger            = logger;
 }
示例#4
0
 public LanguageClientWorkDoneManager(IWindowLanguageClient router, ISerializer serializer, IProgressManager progressManager)
 {
     _router          = router;
     _serializer      = serializer;
     _progressManager = progressManager;
     _pendingWork     = new ConcurrentDictionary <ProgressToken, IProgressObservable <WorkDoneProgress> >();
 }
示例#5
0
        internal LanguageClient(
            Connection connection,
            IOptions <LanguageClientOptions> options,
            IEnumerable <ICapability> capabilities,
            ClientInfo clientInfo,
            ClientCapabilities clientCapabilities,
            ILspClientReceiver lspClientReceiver,
            TextDocumentIdentifiers textDocumentIdentifiers,
            IResolverContext resolverContext,
            IEnumerable <OnLanguageClientStartedDelegate> startedDelegates,
            IEnumerable <IOnLanguageClientStarted> startedHandlers,
            ITextDocumentLanguageClient textDocumentLanguageClient,
            IClientLanguageClient clientLanguageClient,
            IGeneralLanguageClient generalLanguageClient,
            IWindowLanguageClient windowLanguageClient,
            IWorkspaceLanguageClient workspaceLanguageClient,
            LanguageProtocolSettingsBag languageProtocolSettingsBag,
            SharedHandlerCollection handlerCollection,
            IResponseRouter responseRouter,
            IProgressManager progressManager,
            IClientWorkDoneManager clientWorkDoneManager,
            IRegistrationManager registrationManager,
            ILanguageClientWorkspaceFoldersManager languageClientWorkspaceFoldersManager, IEnumerable <OnLanguageClientInitializeDelegate> initializeDelegates,
            IEnumerable <IOnLanguageClientInitialize> initializeHandlers, IEnumerable <OnLanguageClientInitializedDelegate> initializedDelegates,
            IEnumerable <IOnLanguageClientInitialized> initializedHandlers,
            LspSerializer serializer,
            InstanceHasStarted instanceHasStarted
            ) : base(handlerCollection, responseRouter)
        {
            _connection              = connection;
            _capabilities            = capabilities;
            _clientCapabilities      = clientCapabilities;
            _clientInfo              = clientInfo;
            _receiver                = lspClientReceiver;
            _textDocumentIdentifiers = textDocumentIdentifiers;
            _startedDelegates        = startedDelegates;
            _startedHandlers         = startedHandlers;
            _rootUri = options.Value.RootUri;
            _trace   = options.Value.Trace;
            _initializationOptions = options.Value.InitializationOptions;
            _settingsBag           = languageProtocolSettingsBag;
            _collection            = handlerCollection;
            Services = _resolverContext = resolverContext;

            _responseRouter         = responseRouter;
            ProgressManager         = progressManager;
            WorkDoneManager         = clientWorkDoneManager;
            RegistrationManager     = registrationManager;
            WorkspaceFoldersManager = languageClientWorkspaceFoldersManager;
            _initializeDelegates    = initializeDelegates;
            _initializeHandlers     = initializeHandlers;
            _initializedDelegates   = initializedDelegates;
            _initializedHandlers    = initializedHandlers;
            _serializer             = serializer;
            _instanceHasStarted     = instanceHasStarted;
            _concurrency            = options.Value.Concurrency;

            // We need to at least create Window here in case any handler does loggin in their constructor
            TextDocument = textDocumentLanguageClient;
            Client       = clientLanguageClient;
            General      = generalLanguageClient;
            Window       = windowLanguageClient;
            Workspace    = workspaceLanguageClient;
        }
 public ArrangementClassifierFactory(IProgressManager progressManager, string workingDirectory)
   : base(progressManager, workingDirectory)
 {
 }
示例#7
0
 public InnerCodeLensHandler(IServerWorkDoneManager workDoneManager, IProgressManager progressManager) : base(new CodeLensRegistrationOptions())
 {
     _workDoneManager = workDoneManager;
     _progressManager = progressManager;
 }
 public PartialResult(
     Guid id, Action <TParams, IObserver <TItem>, CancellationToken> handler, RegistrationOptionsDelegate <TRegistrationOptions> registrationOptionsFactory, IProgressManager progressManager,
     Func <TItem?, TResponse?> factory
     )
 {
     _id      = id;
     _handler = handler;
     _registrationOptionsFactory = registrationOptionsFactory;
     _progressManager            = progressManager;
     _factory = factory;
 }
 public SimulationResultsImportTask(IEntitiesInContainerRetriever quantitiesRetriever, IIndividualResultsImporter individualResultsImporter, IProgressManager progressManager)
 {
     _quantitiesRetriever       = quantitiesRetriever;
     _individualResultsImporter = individualResultsImporter;
     _progressManager           = progressManager;
 }
 protected PartialCodeActionHandlerBase(CodeActionRegistrationOptions registrationOptions, IProgressManager progressManager) : base(
         registrationOptions, progressManager,
         lenses => new CommandOrCodeActionContainer(lenses)
         )
 {
 }
 public PartialResult(
     Action <TParams, IObserver <TItem>, CancellationToken> handler, RegistrationOptionsDelegate <TRegistrationOptions> registrationOptionsFactory, IProgressManager progressManager,
     Func <TItem?, TResponse?> factory
     ) :
     this(Guid.Empty, handler, registrationOptionsFactory, progressManager, factory)
 {
 }
 public ClassifierFactoryBase(IProgressManager progressManager, string workingDirectory)
 {
   ProgressManager = progressManager;
   WorkingDirectory = workingDirectory;
 }
 public SensitivityAnalysisRunResultsImportTask(IEntitiesInSimulationRetriever quantitiesRetriever, IPKParameterSensitivitiesImporter pkParameterSensitivitiesImporter, IProgressManager progressManager)
 {
     _progressManager = progressManager;
     _pkParameterSensitivitiesImporter = pkParameterSensitivitiesImporter;
     _quantitiesRetriever = quantitiesRetriever;
 }
        public PackageDetailsViewModel(IModelProvider <ExplorerSettingsContainer> settingsProvider, IProgressManager progressManager, IApiPackageRegistry apiPackageRegistry,
                                       IPackageCommandService packageCommandService)
        {
            Argument.IsNotNull(() => settingsProvider);
            Argument.IsNotNull(() => progressManager);
            Argument.IsNotNull(() => apiPackageRegistry);
            Argument.IsNotNull(() => packageCommandService);

            _settingsProvider      = settingsProvider;
            _progressManager       = progressManager;
            _apiPackageRegistry    = apiPackageRegistry;
            _packageCommandService = packageCommandService;

            LoadInfoAboutVersions = new Command(LoadInfoAboutVersionsExecute, () => Package is not null);
            InstallPackage        = new TaskCommand(OnInstallPackageExecuteAsync, OnInstallPackageCanExecute);
            UninstallPackage      = new TaskCommand(OnUninstallPackageExecuteAsync, OnUninstallPackageCanExecute);
        }
示例#15
0
 protected PartialResult(IProgressManager progressManager, Func <TItem?, TResponse?> factory)
 {
     _progressManager = progressManager;
     _factory         = factory;
 }
 public InnerCodeLensHandler(IServerWorkDoneManager workDoneManager, IProgressManager progressManager)
 {
     _workDoneManager = workDoneManager;
     _progressManager = progressManager;
 }
示例#17
0
 public WindowLanguageServer(
     IResponseRouter requestRouter, IServiceProvider serviceProvider, IProgressManager progressManager,
     ILanguageProtocolSettings languageProtocolSettings
     ) : base(requestRouter, serviceProvider, progressManager, languageProtocolSettings)
 {
 }
 protected PartialDocumentLinkHandlerBase(DocumentLinkRegistrationOptions registrationOptions, IProgressManager progressManager) : base(
         registrationOptions, progressManager,
         lenses => new DocumentLinkContainer(lenses)
         )
 {
 }
 protected PartialCompletionHandlerBase(CompletionRegistrationOptions registrationOptions, IProgressManager progressManager) : base(
         registrationOptions, progressManager,
         lenses => new CompletionList(lenses)
         )
 {
 }
示例#20
0
 public MyWorkspaceSymbolsHandler(IServerWorkDoneManager serverWorkDoneManager, IProgressManager progressManager, ILogger <MyWorkspaceSymbolsHandler> logger)
 {
     _serverWorkDoneManager = serverWorkDoneManager;
     _progressManager       = progressManager;
     _logger = logger;
 }
示例#21
0
        internal LanguageServer(
            Connection connection,
            IResponseRouter responseRouter,
            IOptions <LanguageServerOptions> options,
            ILanguageServerConfiguration configuration,
            ServerInfo serverInfo,
            IReceiver receiver,
            LspSerializer serializer,
            IResolverContext resolverContext,
            ISupportedCapabilities supportedCapabilities,
            TextDocumentIdentifiers textDocumentIdentifiers,
            IEnumerable <OnLanguageServerInitializeDelegate> initializeDelegates,
            IEnumerable <OnLanguageServerInitializedDelegate> initializedDelegates,
            IEnumerable <OnLanguageServerStartedDelegate> startedDelegates,
            IEnumerable <IOnLanguageServerStarted> startedHandlers,
            IServerWorkDoneManager serverWorkDoneManager,
            ITextDocumentLanguageServer textDocumentLanguageServer,
            IClientLanguageServer clientLanguageServer,
            IGeneralLanguageServer generalLanguageServer,
            IWindowLanguageServer windowLanguageServer,
            IWorkspaceLanguageServer workspaceLanguageServer,
            LanguageProtocolSettingsBag languageProtocolSettingsBag,
            SharedHandlerCollection handlerCollection,
            IProgressManager progressManager,
            ILanguageServerWorkspaceFolderManager workspaceFolderManager, IEnumerable <IOnLanguageServerInitialize> initializeHandlers,
            IEnumerable <IOnLanguageServerInitialized> initializedHandlers,
            IEnumerable <IRegistrationOptionsConverter> registrationOptionsConverters,
            InstanceHasStarted instanceHasStarted,
            LanguageServerLoggingManager languageServerLoggingManager,
            IScheduler scheduler
            ) : base(handlerCollection, responseRouter)
        {
            Configuration = configuration;

            _connection              = connection;
            _serverInfo              = serverInfo;
            _serverReceiver          = receiver;
            _serializer              = serializer;
            _supportedCapabilities   = supportedCapabilities;
            _textDocumentIdentifiers = textDocumentIdentifiers;
            _initializeDelegates     = initializeDelegates;
            _initializedDelegates    = initializedDelegates;
            _startedDelegates        = startedDelegates;
            _startedHandlers         = startedHandlers;
            WorkDoneManager          = serverWorkDoneManager;
            _settingsBag             = languageProtocolSettingsBag;
            Services    = _resolverContext = resolverContext;
            _collection = handlerCollection;

            // We need to at least create Window here in case any handler does logging in their constructor
            TextDocument                   = textDocumentLanguageServer;
            Client                         = clientLanguageServer;
            General                        = generalLanguageServer;
            Window                         = windowLanguageServer;
            Workspace                      = workspaceLanguageServer;
            ProgressManager                = progressManager;
            WorkspaceFolderManager         = workspaceFolderManager;
            _initializeHandlers            = initializeHandlers;
            _initializedHandlers           = initializedHandlers;
            _registrationOptionsConverters = registrationOptionsConverters;
            _instanceHasStarted            = instanceHasStarted;
            _languageServerLoggingManager  = languageServerLoggingManager;
            _scheduler                     = scheduler;
            _concurrency                   = options.Value.Concurrency;

            _capabilityTypes = options.Value.UseAssemblyAttributeScanning
                ? options.Value.Assemblies
                               .SelectMany(z => z.GetCustomAttributes <AssemblyCapabilityKeyAttribute>())
                               .ToLookup(z => z.CapabilityKey, z => z.CapabilityType)
                : options.Value.Assemblies
                               .SelectMany(z => z.ExportedTypes)
                               .Where(z => z.IsClass && !z.IsAbstract)
                               .Where(z => typeof(ICapability).IsAssignableFrom(z))
                               .Where(z => z.GetCustomAttributes <CapabilityKeyAttribute>().Any())
                               .ToLookup(z => string.Join(".", z.GetCustomAttribute <CapabilityKeyAttribute>().Keys));

            _disposable.Add(_collection.Add(this));
        }
示例#22
0
 public WorkspaceLanguageClient(
     IResponseRouter requestRouter, IResolverContext resolverContext, IProgressManager progressManager,
     ILanguageProtocolSettings languageProtocolSettings
     ) : base(requestRouter, resolverContext, progressManager, languageProtocolSettings)
 {
 }
 public WorkspaceLanguageClient(
     IResponseRouter requestRouter, IServiceProvider serviceProvider, IProgressManager progressManager,
     ILanguageProtocolSettings languageProtocolSettings
     ) : base(requestRouter, serviceProvider, progressManager, languageProtocolSettings)
 {
 }
示例#24
0
 protected PartialCodeLensHandlerBase(CodeLensRegistrationOptions registrationOptions, IProgressManager progressManager) : base(
         registrationOptions, progressManager,
         lenses => new CodeLensContainer(lenses)
         )
 {
 }
 public static HandClassifierFactory CreateHonorClassifierFactory(IProgressManager progressManager, string workingDirectory)
 {
   var prefix = CreationData.Prefixes[CreationType.AnalyzedHonors];
   return new HandClassifierFactory(progressManager, workingDirectory, prefix, "HonorClassifier.bin");
 }
示例#26
0
 protected PartialMonikerHandlerBase(MonikerRegistrationOptions registrationOptions, IProgressManager progressManager) : base(
         registrationOptions, progressManager,
         items => new Container <Moniker>(items)
         )
 {
 }