public VisualStudioProjectTracker(Workspace workspace, VisualStudioProjectFactory projectFactory, IThreadingContext threadingContext) { _workspace = workspace; _projectFactory = projectFactory; ThreadingContext = threadingContext; DocumentProvider = new DocumentProvider(); }
public VisualStudioProjectTracker(IServiceProvider serviceProvider, Workspace workspace) { _workspace = workspace; ThreadingContext = serviceProvider.GetMefService <IThreadingContext>(); // This is used by Live Share to target their own workspace which is not the standard VS workspace; as a result this shouldn't have a project factory // at all, because that's only targeting the VisualStudioWorkspace. _projectFactory = null; // We don't set DocumentProvider, because Live Share creates their own and then sets it later. }
public VisualStudioProjectTracker(Workspace workspace, VisualStudioProjectFactory projectFactory, IThreadingContext threadingContext) { _workspace = workspace; _projectFactory = projectFactory; ThreadingContext = threadingContext; }