1 write to _workspace
Microsoft.VisualStudio.LanguageServices (1)
CodeLens\CodeLensCallbackListener.cs (1)
56
_workspace
= workspace;
12 references to _workspace
Microsoft.VisualStudio.LanguageServices (12)
CodeLens\CodeLensCallbackListener.cs (12)
61
var service =
_workspace
.Services.GetRequiredService<ICodeLensReferencesService>();
64
var solution =
_workspace
.CurrentSolution;
67
var projectGuid =
_workspace
.GetProjectGuid(project.Id);
81
var solution =
_workspace
.CurrentSolution;
89
var service =
_workspace
.Services.GetRequiredService<ICodeLensReferencesService>();
107
var solution =
_workspace
.CurrentSolution;
115
var service =
_workspace
.Services.GetRequiredService<ICodeLensReferencesService>();
129
var solution =
_workspace
.CurrentSolution;
137
var service =
_workspace
.Services.GetRequiredService<ICodeLensReferencesService>();
215
if (
_workspace
.GetProjectGuid(candidateId.ProjectId) == projectGuid)
217
var currentContextId =
_workspace
.GetDocumentIdInCurrentContext(candidateId);
229
return
_workspace
.CurrentSolution.GetDocumentAsync(documentId, includeSourceGenerated: true).AsTask();