2 writes to _workspace
Microsoft.CodeAnalysis.EditorFeatures (2)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (2)
182
_workspace
= workspace;
204
_workspace
= null;
12 references to _workspace
Microsoft.CodeAnalysis.EditorFeatures (12)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (12)
113
=>
_workspace
?.Services.SolutionServices.GetProjectServices(snapshot.ContentType)?.GetService<IClassificationService>();
135
if (newWorkspace ==
_workspace
)
183
_workspace
.WorkspaceChanged += this.OnWorkspaceChanged;
184
_workspace
.DocumentActiveContextChanged += this.OnDocumentActiveContextChanged;
199
if (
_workspace
!= null)
201
_workspace
.WorkspaceChanged -= this.OnWorkspaceChanged;
202
_workspace
.DocumentActiveContextChanged -= this.OnDocumentActiveContextChanged;
224
if (
_workspace
== null)
228
var bufferDocumentId =
_workspace
.GetDocumentIdInCurrentContext(_subjectBuffer.AsTextContainer());
240
if (args.NewSolution.Workspace !=
_workspace
)
246
var documentId =
_workspace
.GetDocumentIdInCurrentContext(_subjectBuffer.AsTextContainer());
357
if (spans.Count == 0 ||
_workspace
== null)