public DefaultDotNetProjectHost( DotNetProject project, ForegroundDispatcher foregroundDispatcher, VisualStudioMacWorkspaceAccessor workspaceAccessor, TextBufferProjectService projectService) { if (project == null) { throw new ArgumentNullException(nameof(project)); } if (foregroundDispatcher == null) { throw new ArgumentNullException(nameof(foregroundDispatcher)); } if (workspaceAccessor == null) { throw new ArgumentNullException(nameof(workspaceAccessor)); } if (projectService == null) { throw new ArgumentNullException(nameof(projectService)); } _project = project; _foregroundDispatcher = foregroundDispatcher; _workspaceAccessor = workspaceAccessor; _projectService = projectService; }
internal ProjectBuildChangeTrigger( ProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher, TextBufferProjectService projectService, ProjectWorkspaceStateGenerator workspaceStateGenerator, ProjectSnapshotManagerBase projectManager) { if (projectSnapshotManagerDispatcher is null) { throw new ArgumentNullException(nameof(projectSnapshotManagerDispatcher)); } if (projectService is null) { throw new ArgumentNullException(nameof(projectService)); } if (workspaceStateGenerator is null) { throw new ArgumentNullException(nameof(workspaceStateGenerator)); } if (projectManager is null) { throw new ArgumentNullException(nameof(projectManager)); } _projectSnapshotManagerDispatcher = projectSnapshotManagerDispatcher; _projectService = projectService; _projectManager = projectManager; _workspaceStateGenerator = workspaceStateGenerator; }
public DefaultVisualStudioMacWorkspaceAccessor(TextBufferProjectService projectService) { if (projectService == null) { throw new ArgumentNullException(nameof(projectService)); } _projectService = projectService; }
public ProjectBuildChangeTrigger(VisualStudioWorkspaceAccessor workspaceAccessor) { if (workspaceAccessor == null) { throw new ArgumentNullException(nameof(workspaceAccessor)); } _foregroundDispatcher = workspaceAccessor.Workspace.Services.GetRequiredService <ForegroundDispatcher>(); var languageServices = workspaceAccessor.Workspace.Services.GetLanguageServices(RazorLanguage.Name); _projectService = languageServices.GetRequiredService <TextBufferProjectService>(); }
public ProjectBuildChangeTrigger(ForegroundDispatcher foregroundDispatcher, TextBufferProjectService projectService) { if (foregroundDispatcher == null) { throw new ArgumentNullException(nameof(foregroundDispatcher)); } if (projectService == null) { throw new ArgumentNullException(nameof(projectService)); } _foregroundDispatcher = foregroundDispatcher; _projectService = projectService; }
public DefaultDotNetProjectHost( DotNetProject project, ProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher, VisualStudioMacWorkspaceAccessor workspaceAccessor, TextBufferProjectService projectService, ProjectConfigurationFilePathStore projectConfigurationFilePathStore, VSLanguageServerFeatureOptions languageServerFeatureOptions) { if (project is null) { throw new ArgumentNullException(nameof(project)); } if (projectSnapshotManagerDispatcher is null) { throw new ArgumentNullException(nameof(projectSnapshotManagerDispatcher)); } if (workspaceAccessor is null) { throw new ArgumentNullException(nameof(workspaceAccessor)); } if (projectService is null) { throw new ArgumentNullException(nameof(projectService)); } if (projectConfigurationFilePathStore is null) { throw new ArgumentNullException(nameof(projectConfigurationFilePathStore)); } if (languageServerFeatureOptions is null) { throw new ArgumentNullException(nameof(languageServerFeatureOptions)); } _project = project; _projectSnapshotManagerDispatcher = projectSnapshotManagerDispatcher; _workspaceAccessor = workspaceAccessor; _projectService = projectService; _projectConfigurationFilePathStore = projectConfigurationFilePathStore; _languageServerFeatureOptions = languageServerFeatureOptions; }
public DotNetProjectHostFactory( ProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher, VisualStudioMacWorkspaceAccessor workspaceAccessor, TextBufferProjectService projectService) { if (projectSnapshotManagerDispatcher == null) { throw new ArgumentNullException(nameof(projectSnapshotManagerDispatcher)); } if (workspaceAccessor == null) { throw new ArgumentNullException(nameof(workspaceAccessor)); } if (projectService == null) { throw new ArgumentNullException(nameof(projectService)); } _projectSnapshotManagerDispatcher = projectSnapshotManagerDispatcher; _workspaceAccessor = workspaceAccessor; _projectService = projectService; }
// Internal for testing internal ProjectBuildChangeTrigger( ForegroundDispatcher foregroundDispatcher, TextBufferProjectService projectService, ProjectSnapshotManagerBase projectManager) { if (foregroundDispatcher == null) { throw new ArgumentNullException(nameof(foregroundDispatcher)); } if (projectService == null) { throw new ArgumentNullException(nameof(projectService)); } if (projectManager == null) { throw new ArgumentNullException(nameof(projectManager)); } _foregroundDispatcher = foregroundDispatcher; _projectService = projectService; _projectManager = projectManager; }
public ProjectBuildChangeTrigger( ForegroundDispatcher foregroundDispatcher, TextBufferProjectService projectService, ProjectWorkspaceStateGenerator workspaceStateGenerator) { if (foregroundDispatcher == null) { throw new ArgumentNullException(nameof(foregroundDispatcher)); } if (projectService == null) { throw new ArgumentNullException(nameof(projectService)); } if (workspaceStateGenerator == null) { throw new ArgumentNullException(nameof(workspaceStateGenerator)); } _foregroundDispatcher = foregroundDispatcher; _projectService = projectService; _workspaceStateGenerator = workspaceStateGenerator; }