21 references to Workspace
Microsoft.VisualStudio.LanguageServices.Implementation (13)
CodeModel\CodeTypeRef.cs (1)
78var project = Workspace.CurrentSolution.GetProject(_projectId);
CodeModel\Collections\OverloadsCollection.cs (2)
61var solution = this.Workspace.CurrentSolution; 77var fileCodeModelObject = this.Workspace.GetFileCodeModel(document.Id);
CodeModel\Collections\PartialTypeCollection.cs (2)
52var solution = this.Workspace.CurrentSolution; 60var fileCodeModelObject = this.Workspace.GetFileCodeModel(document.Id);
CodeModel\FileCodeModel.cs (4)
119_previousDocument = Workspace.CurrentSolution.GetDocument(_documentId); 292_invisibleEditor = Workspace.OpenInvisibleEditor(GetDocumentId()); 420() => Workspace.CurrentSolution.GetSourceGeneratedDocumentAsync(GetDocumentId(), CancellationToken.None).AsTask()); 424document = Workspace.CurrentSolution.GetDocument(GetDocumentId());
CodeModel\FileCodeModel_Events.cs (1)
64if (!projectCodeModel.TryGetCachedFileCodeModel(this.Workspace.GetFilePath(GetDocumentId()), out _))
CodeModel\InternalElements\AbstractCodeElement.cs (1)
252CodeModelService.Rename(LookupSymbol(), newName, this.Workspace, this.State.ProjectCodeModelFactory);
CodeModel\RootCodeModel.cs (1)
40=> Workspace.CurrentSolution.GetProject(_projectId);
CodeModel\TextManagerAdapter.cs (1)
22var hierarchyOpt = fileCodeModel.Workspace.GetHierarchy(document.Project.Id);
Microsoft.VisualStudio.LanguageServices.UnitTests (8)
CodeModel\CSharp\RootCodeModelTests.vb (4)
178Dim filePath = underlyingFileCodeModel.Workspace.GetFilePath(underlyingFileCodeModel.GetDocumentId()) 215Dim filePath = underlyingFileCodeModel.Workspace.GetFilePath(underlyingFileCodeModel.GetDocumentId()) 260Dim filePath = underlyingFileCodeModel.Workspace.GetFilePath(underlyingFileCodeModel.GetDocumentId()) 305Dim filePath = underlyingFileCodeModel.Workspace.GetFilePath(underlyingFileCodeModel.GetDocumentId())
CodeModel\VisualBasic\RootCodeModelTests.vb (4)
113Dim filePath = underlyingFileCodeModel.Workspace.GetFilePath(underlyingFileCodeModel.GetDocumentId()) 148Dim filePath = underlyingFileCodeModel.Workspace.GetFilePath(underlyingFileCodeModel.GetDocumentId()) 189Dim filePath = underlyingFileCodeModel.Workspace.GetFilePath(underlyingFileCodeModel.GetDocumentId()) 230Dim filePath = underlyingFileCodeModel.Workspace.GetFilePath(underlyingFileCodeModel.GetDocumentId())