public RoslynSyntaxClassificationServiceFactory(AbstractLspClientServiceFactory roslynLspClientServiceFactory, ClassificationTypeMap classificationTypeMap, IThreadingContext threadingContext) { _roslynLspClientServiceFactory = roslynLspClientServiceFactory ?? throw new ArgumentNullException(nameof(roslynLspClientServiceFactory)); _classificationTypeMap = classificationTypeMap ?? throw new ArgumentNullException(nameof(classificationTypeMap)); _threadingContext = threadingContext ?? throw new ArgumentNullException(nameof(threadingContext)); }
public RoslynSyntaxClassificationService(AbstractLspClientServiceFactory roslynLspClientServiceFactory, ISyntaxClassificationService originalService, ClassificationTypeMap classificationTypeMap, IThreadingContext threadingContext) { _roslynLspClientServiceFactory = roslynLspClientServiceFactory; _originalService = originalService; _classificationTypeMap = classificationTypeMap; _threadingContext = threadingContext; }
public RoslynClassificationService(AbstractLspClientServiceFactory roslynLspClientServiceFactory, ISyntaxClassificationService originalService, ClassificationTypeMap classificationTypeMap, IThreadingContext threadingContext) { _roslynLspClientServiceFactory = roslynLspClientServiceFactory ?? throw new ArgumentNullException(nameof(roslynLspClientServiceFactory)); _originalService = originalService ?? throw new ArgumentNullException(nameof(originalService)); _classificationTypeMap = classificationTypeMap ?? throw new ArgumentNullException(nameof(classificationTypeMap)); _threadingContext = threadingContext; }
public ModeAwareSyntacticClassificationViewTaggerProvider( Lazy <TextMateClassificationTaggerProvider> textMateProvider, Lazy <SyntacticClassificationViewTaggerProvider> serverProvider, AbstractLspClientServiceFactory lspClientServiceFactory) { _textMateProvider = textMateProvider; _serverProvider = serverProvider; _lspClientServiceFactory = lspClientServiceFactory; }
public RoslynSyntaxClassificationService(AbstractLspClientServiceFactory roslynLspClientServiceFactory, RemoteLanguageServiceWorkspace remoteLanguageServiceWorkspace, ISyntaxClassificationService originalService, ClassificationTypeMap classificationTypeMap, IExperimentationService experimentationService, IThreadingContext threadingContext) { _roslynLspClientServiceFactory = roslynLspClientServiceFactory; _remoteLanguageServiceWorkspace = remoteLanguageServiceWorkspace; _originalService = originalService; _classificationTypeMap = classificationTypeMap; _experimentationService = experimentationService; _threadingContext = threadingContext; }
public RoslynGotoDefinitionService( IStreamingFindUsagesPresenter streamingPresenter, AbstractLspClientServiceFactory roslynLspClientServiceFactory, RemoteLanguageServiceWorkspace remoteWorkspace, IThreadingContext threadingContext) { _streamingPresenter = streamingPresenter ?? throw new ArgumentNullException(nameof(streamingPresenter)); _roslynLspClientServiceFactory = roslynLspClientServiceFactory ?? throw new ArgumentNullException(nameof(roslynLspClientServiceFactory)); _remoteWorkspace = remoteWorkspace ?? throw new ArgumentNullException(nameof(remoteWorkspace)); _threadingContext = threadingContext ?? throw new ArgumentNullException(nameof(threadingContext)); }
public static bool ShouldRunExperiment( AbstractLspClientServiceFactory lspClientServiceFactory, IExperimentationService experimentationService, string experimentName) { if (lspClientServiceFactory.ServerCapabilities?.Experimental is RoslynExperimentalCapabilities experimentalCapabilities) { return(experimentalCapabilities.SyntacticLspProvider && experimentationService.IsExperimentEnabled(experimentName)); } return(false); }
internal RoslynNavigationBarItemService(AbstractLspClientServiceFactory roslynLspClientServiceFactory) { _roslynLspClientServiceFactory = roslynLspClientServiceFactory ?? throw new ArgumentNullException(nameof(roslynLspClientServiceFactory)); }
public RoslynCodeActionProvider(AbstractLspClientServiceFactory roslynLspClientServiceFactory) { _roslynLspClientServiceFactory = roslynLspClientServiceFactory ?? throw new ArgumentNullException(nameof(roslynLspClientServiceFactory)); }
public RoslynDocumentHighlightsService(AbstractLspClientServiceFactory roslynLspClientServiceFactory) { _roslynLspClientServiceFactory = roslynLspClientServiceFactory ?? throw new ArgumentNullException(nameof(roslynLspClientServiceFactory)); }
public RoslynCodeActionProvider(AbstractLspClientServiceFactory roslynLspClientServiceFactory, IDiagnosticAnalyzerService diagnosticAnalyzerService) { _roslynLspClientServiceFactory = roslynLspClientServiceFactory ?? throw new ArgumentNullException(nameof(roslynLspClientServiceFactory)); _diagnosticAnalyzerService = diagnosticAnalyzerService ?? throw new ArgumentNullException(nameof(diagnosticAnalyzerService)); }
public static SyntacticClassificationModeSelector GetModeSelector(AbstractLspClientServiceFactory lspClientServiceFactory, ITextBuffer buffer) { return(new SyntacticClassificationModeSelector(lspClientServiceFactory, buffer)); }
public SyntacticClassificationModeSelector(AbstractLspClientServiceFactory lspClientServiceFactory, ITextBuffer buffer) { _lspClientServiceFactory = lspClientServiceFactory; _buffer = buffer; }
public RoslynFindUsagesService(AbstractLspClientServiceFactory roslynLspClientServiceFactory, RemoteLanguageServiceWorkspace remoteLanguageServiceWorkspace) { _roslynLspClientServiceFactory = roslynLspClientServiceFactory ?? throw new ArgumentNullException(nameof(roslynLspClientServiceFactory)); _remoteLanguageServiceWorkspace = remoteLanguageServiceWorkspace ?? throw new ArgumentNullException(nameof(remoteLanguageServiceWorkspace)); }
public static async Task EnsureInitializationAsync(AbstractLspClientServiceFactory lspClientServiceFactory, CancellationToken cancellationToken) { // TODO - Move to roslyn client initialization once liveshare initialization is fixed. // https://devdiv.visualstudio.com/DevDiv/_workitems/edit/964288 await lspClientServiceFactory.EnsureInitializedAsync(cancellationToken).ConfigureAwait(false); }
public RoslynRemoteDiagnosticsService(AbstractLspClientServiceFactory roslynLspClientServiceFactory) { _roslynLspClientServiceFactory = roslynLspClientServiceFactory ?? throw new ArgumentNullException(nameof(roslynLspClientServiceFactory)); }