1 write to Workspace
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
68
Workspace
= workspace;
29 references to Workspace
Microsoft.CodeAnalysis.Workspaces (28)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (5)
95
var textLoader = new WorkspaceFileTextLoader(_project._projectSystemProjectFactory.
Workspace
.Services.SolutionServices, fullPath, defaultEncoding: null);
286
if (_documentAlreadyInWorkspace(_project._projectSystemProjectFactory.
Workspace
.CurrentSolution, documentId))
338
if (_project._projectSystemProjectFactory.
Workspace
.CurrentSolution.GetDocument(documentId) != null)
408
documentsToChange.Add((documentId, new WorkspaceFileTextLoader(_project._projectSystemProjectFactory.
Workspace
.Services.SolutionServices, filePath, defaultEncoding: null)));
423
if (!_project._projectSystemProjectFactory.
Workspace
.IsDocumentOpen(documentId))
Workspace\ProjectSystem\ProjectSystemProject.cs (9)
236
var telemetryService = _projectSystemProjectFactory.
Workspace
.Services.GetService<IWorkspaceTelemetryService>();
240
var workspaceStatusService = _projectSystemProjectFactory.
Workspace
.Services.GetService<IWorkspaceStatusService>();
254
TryReportCompilationThrownAway(_projectSystemProjectFactory.
Workspace
.CurrentSolution.State, Id);
456
private bool HasBeenRemoved => !_projectSystemProjectFactory.
Workspace
.CurrentSolution.ContainsProject(Id);
573
var metadataReference = _projectSystemProjectFactory.
Workspace
.CurrentSolution.GetRequiredProject(Id).MetadataReferences.Cast<PortableExecutableReference>()
1204
return _projectSystemProjectFactory.
Workspace
.CurrentSolution.GetRequiredProject(Id).AllProjectReferences.Contains(projectReference);
1212
var projectReferencesInWorkspace = _projectSystemProjectFactory.
Workspace
.CurrentSolution.GetRequiredProject(Id).AllProjectReferences;
1262
if (!_projectSystemProjectFactory.
Workspace
.CurrentSolution.ContainsProject(Id))
1298
_projectSystemProjectFactory.
Workspace
.OnProjectRemoved(Id);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (14)
170
action(
Workspace
);
181
action(
Workspace
);
192
action(
Workspace
);
204
Workspace
.SetCurrentSolution(solutionTransformation, WorkspaceChangeKind.ProjectChanged, projectId);
229
var solutionChanges = new SolutionChangeAccumulator(
Workspace
.CurrentSolution);
243
Workspace
.SetCurrentSolution(
253
Workspace
.ClearDocumentData(documentId);
274
var project =
Workspace
.CurrentSolution.GetRequiredProject(projectId);
280
var solutionChanges = new SolutionChangeAccumulator(
Workspace
.CurrentSolution);
310
Workspace
.ClearOpenDocuments();
312
Workspace
.SetCurrentSolution(
313
solution =>
Workspace
.CreateSolution(
532
if (CanConvertMetadataReferenceToProjectReference(
Workspace
.CurrentSolution, referencingProject, projectIdToReference))
624
foreach (var project in
Workspace
.CurrentSolution.Projects)
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (1)
139
var documentIds = _projectSystemProjectFactory.
Workspace
.CurrentSolution.GetDocumentIdsWithFilePath(moniker);