Skip to content

Commit 3d99372

Browse files
committed
Remove QueryableSpaceChanged
1 parent 5a1cf0a commit 3d99372

File tree

1 file changed

+0
-20
lines changed
  • docs/extensibility/visualstudio.extensibility/project

1 file changed

+0
-20
lines changed

docs/extensibility/visualstudio.extensibility/project/project.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -688,26 +688,6 @@ private class TrackerObserver : IObserver<IQueryTrackUpdates<IFileSnapshot>>
688688
}
689689
```
690690

691-
## Events to monitor solution open and close
692-
693-
The `QueryableSpaceChanged` event can be subscribed to for monitoring when solutions open and close using a workspace created with a service broker. `ProjectQueryableSpaceChangedEventArgs` contains two fields, `SolutionPath` and `QueryableSpaceVersion`. The string `SolutionPath` is the path the solution that opened or null if a solution closed. The int `QueryableSpaceVersion` increments as solutions are opened or closed.
694-
695-
```csharp
696-
private void SubscribeToEvent()
697-
{
698-
IServiceBroker serviceBroker = context.Extensibility.ServiceBroker;
699-
ProjectQueryableSpace workspace = new(serviceBroker: serviceBroker, joinableTaskContext: null);
700-
workspace.QueryableSpaceChanged += EventCalledAsync;
701-
}
702-
703-
private Task EventCalledAsync(ProjectQueryableSpaceChangedEventArgs e)
704-
{
705-
string? solutionPath = e.SolutionPath;
706-
int version = e.QueryableSpaceVersion;
707-
...
708-
}
709-
```
710-
711691
## Action query to skip
712692

713693
`Skip` can be used to skip N results from a query.

0 commit comments

Comments
 (0)