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