Ejemplo n.º 1
0
 public VisualStudioProjectTracker(Workspace workspace, VisualStudioProjectFactory projectFactory, IThreadingContext threadingContext)
 {
     _workspace       = workspace;
     _projectFactory  = projectFactory;
     ThreadingContext = threadingContext;
     DocumentProvider = new DocumentProvider();
 }
Ejemplo n.º 2
0
        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.
        }
Ejemplo n.º 3
0
 public VisualStudioProjectTracker(Workspace workspace, VisualStudioProjectFactory projectFactory, IThreadingContext threadingContext)
 {
     _workspace       = workspace;
     _projectFactory  = projectFactory;
     ThreadingContext = threadingContext;
 }