public async Task TestSkipAnalyzersGlobalPropertiesProvider( bool implicitBuild, bool skipAnalyzersSettingTurnedOn) { UnconfiguredProject project = UnconfiguredProjectFactory.Create( unconfiguredProjectServices: UnconfiguredProjectServicesFactory.Create( projectService: IProjectServiceFactory.Create())); IImplicitlyTriggeredBuildState buildState = IImplicityTriggeredBuildStateFactory.Create(implicitBuild); IProjectSystemOptions options = IProjectSystemOptionsFactory.ImplementGetSkipAnalyzersForImplicitlyTriggeredBuildAsync(ct => skipAnalyzersSettingTurnedOn); SkipAnalyzersGlobalPropertiesProvider provider = new SkipAnalyzersGlobalPropertiesProvider( project, buildState, options); IImmutableDictionary <string, string> properties = await provider.GetGlobalPropertiesAsync(CancellationToken.None); if (implicitBuild && skipAnalyzersSettingTurnedOn) { Assert.Equal(expected: 2, actual: properties.Count); Assert.Equal(expected: "true", actual: properties["IsImplicitlyTriggeredBuild"]); Assert.Equal(expected: "ImplicitBuild", actual: properties["FastUpToDateCheckIgnoresKinds"]); } else { Assert.Empty(properties); } }
public SkipAnalyzersGlobalPropertiesProvider(UnconfiguredProject unconfiguredProject, IImplicitlyTriggeredBuildState implicitlyTriggeredBuildState, IProjectSystemOptions projectSystemOptions) : base(unconfiguredProject.Services) { _implicitlyTriggeredBuildState = implicitlyTriggeredBuildState; _projectSystemOptions = projectSystemOptions; }
public BuildUpToDateCheck( IProjectSystemOptions projectSystemOptions, ConfiguredProject configuredProject, Lazy <IFileTimestampCache> fileTimestampCache) { _projectSystemOptions = projectSystemOptions; _configuredProject = configuredProject; _fileTimestampCache = fileTimestampCache; }
public ProjectOutputWindowProjectLogger(IProjectThreadingService threadingService, IProjectSystemOptions options, IProjectOutputWindowPaneProvider outputWindowProvider) { Requires.NotNull(threadingService, nameof(threadingService)); Requires.NotNull(options, nameof(options)); Requires.NotNull(outputWindowProvider, nameof(outputWindowProvider)); _threadingService = threadingService; _options = options; _outputWindowProvider = outputWindowProvider; }
public IncrementalBuildFailureOutputWindowReporter( UnconfiguredProject project, IVsUIService <SVsFeatureFlags, IVsFeatureFlags> featureFlagsService, IVsUIService <SVsOutputWindow, IVsOutputWindow> outputWindow, IProjectSystemOptions projectSystemOptions) { _project = project; _featureFlagsService = featureFlagsService; _outputWindow = outputWindow; _projectSystemOptions = projectSystemOptions; }
internal StartupProjectSingleTargetGlobalBuildPropertyProvider( IProjectService projectService, ConfiguredProject configuredProject, IActiveDebugFrameworkServices activeDebugFrameworkServices, IImplicitlyTriggeredBuildState implicitlyTriggeredBuildState, IProjectSystemOptions projectSystemOptions) : base(projectService.Services) { _configuredProject = configuredProject; _activeDebugFrameworkServices = activeDebugFrameworkServices; _implicitlyTriggeredBuildState = implicitlyTriggeredBuildState; _projectSystemOptions = projectSystemOptions; }
public BuildUpToDateCheck( IProjectSystemOptions projectSystemOptions, ConfiguredProject configuredProject, Lazy <IFileTimestampCache> fileTimestampCache, [Import(ExportContractNames.Scopes.ConfiguredProject)] IProjectAsynchronousTasksService tasksService, IProjectItemSchemaService projectItemSchemaService) { _projectSystemOptions = projectSystemOptions; _configuredProject = configuredProject; _fileTimestampCache = fileTimestampCache; _tasksService = tasksService; _projectItemSchemaService = projectItemSchemaService; }
public SkipAnalyzersGlobalPropertiesProvider(UnconfiguredProject unconfiguredProject, IImplicitlyTriggeredBuildState implicitlyTriggeredBuildState, IProjectSystemOptions projectSystemOptions) : base(unconfiguredProject.Services) { _implicitlyTriggeredBuildState = implicitlyTriggeredBuildState; _projectSystemOptions = projectSystemOptions; _regularBuildProperties = ImmutableStringDictionary <string> .EmptyOrdinalIgnoreCase; _implicitlyTriggeredBuildProperties = _regularBuildProperties .Add(IsImplicitlyTriggeredBuildPropertyName, "true") .Add(FastUpToDateCheckIgnoresKindsGlobalPropertyName, FastUpToDateCheckIgnoresKindsGlobalPropertyValue); }
public BuildUpToDateCheck( IUpToDateCheckConfiguredInputDataSource inputDataSource, IProjectSystemOptions projectSystemOptions, ConfiguredProject configuredProject, [Import(ExportContractNames.Scopes.ConfiguredProject)] IProjectAsynchronousTasksService tasksService, ITelemetryService telemetryService, IFileSystem fileSystem) { _inputDataSource = inputDataSource; _projectSystemOptions = projectSystemOptions; _configuredProject = configuredProject; _tasksService = tasksService; _telemetryService = telemetryService; _fileSystem = fileSystem; _subscription = new(inputDataSource, configuredProject); }
public BuildUpToDateCheck( IProjectSystemOptions projectSystemOptions, ConfiguredProject configuredProject, [Import(ExportContractNames.Scopes.ConfiguredProject)] IProjectAsynchronousTasksService tasksService, IProjectItemSchemaService projectItemSchemaService, ITelemetryService telemetryService, IFileSystem fileSystem) { _projectSystemOptions = projectSystemOptions; _configuredProject = configuredProject; _tasksService = tasksService; _projectItemSchemaService = projectItemSchemaService; _telemetryService = telemetryService; _fileSystem = fileSystem; _subscription = new(configuredProject, projectItemSchemaService); }
public BuildUpToDateCheck( IProjectSystemOptions projectSystemOptions, ConfiguredProject configuredProject, [Import(ExportContractNames.Scopes.ConfiguredProject)] IProjectAsynchronousTasksService tasksService, IProjectItemSchemaService projectItemSchemaService, ITelemetryService telemetryService, IProjectThreadingService threadingService, IFileSystem fileSystem) : base(threadingService.JoinableTaskContext) { _projectSystemOptions = projectSystemOptions; _configuredProject = configuredProject; _tasksService = tasksService; _projectItemSchemaService = projectItemSchemaService; _telemetryService = telemetryService; _fileSystem = fileSystem; }
public ProjectOutputWindowProjectLogger(IProjectThreadingService threadingService, IProjectSystemOptions options, IProjectOutputWindowPaneProvider outputWindowProvider) { _threadingService = threadingService; _options = options; _outputWindowProvider = outputWindowProvider; }
private static ProjectOutputWindowProjectLogger CreateInstance(IProjectThreadingService threadingService = null, IProjectSystemOptions options = null, IProjectOutputWindowPaneProvider outputWindowProvider = null) { threadingService = threadingService ?? IProjectThreadingServiceFactory.Create(); options = options ?? IProjectSystemOptionsFactory.Create(); outputWindowProvider = outputWindowProvider ?? IProjectOutputWindowPaneProviderFactory.Create(); return(new ProjectOutputWindowProjectLogger(threadingService, options, outputWindowProvider)); }
private static WindowsFormsEditorProvider CreateInstance(UnconfiguredProject unconfiguredProject = null, IPhysicalProjectTree projectTree = null, IProjectSystemOptions options = null) { unconfiguredProject ??= UnconfiguredProjectFactory.Create(); projectTree ??= IPhysicalProjectTreeFactory.Create(); options ??= IProjectSystemOptionsFactory.Create(); return(new WindowsFormsEditorProvider(unconfiguredProject, projectTree.AsLazy(), options.AsLazy())); }
private static WindowsFormsEditorProvider CreateInstanceWithDefaultEditorProvider(string projectTree, IProjectSystemOptions options = null, Guid defaultEditorFactory = default) { var tree = ProjectTreeParser.Parse(projectTree); var defaultEditorProvider = IProjectSpecificEditorProviderFactory.ImplementGetSpecificEditorAsync(defaultEditorFactory); var provider = CreateInstance(projectTree: IPhysicalProjectTreeFactory.Create(currentTree: tree), options: options); provider.ProjectSpecificEditorProviders.Add("Default", defaultEditorProvider); return(provider); }