Skip to content

Commit eeadc9d

Browse files
committed
Add info for event args, update naming
1 parent 1030e05 commit eeadc9d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/extensibility/visualstudio.extensibility/project/project-concepts.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ Actions in your project query determine what modifications are made to the proje
141141

142142
These queries support the monitoring of updates made to query results.
143143

144-
| Term | Description |
145-
| ----------------------------- | ----------------------------------------------------------------------- |
146-
| SubscribeAsync | Represents the operation to subscribe to results from a query. |
147-
| TrackUpdatesAsync | Represents the operation to track changes from a query. |
148-
| Workspace.QueryableSpaceEvent | An event that fires on solution open and close. Provides initial state. |
144+
| Term | Description |
145+
| ------------------- | ----------------------------------------------------------------------- |
146+
| SubscribeAsync | Represents the operation to subscribe to results from a query. |
147+
| TrackUpdatesAsync | Represents the operation to track changes from a query. |
148+
| QueryableSpaceEvent | An event that fires on solution open and close. Provides initial state. |
149149

150150
## Related content
151151

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ private class TrackerObserver : IObserver<IQueryTrackUpdates<IFileSnapshot>>
700700

701701
## Events to monitor solution open and close
702702

703-
The `QueryableSpaceChanged` event can be subscribed to for monitoring when solutions open and close using a workspace created with a service broker.
703+
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.
704704

705705
```csharp
706706
private void SubscribeToEvent()
@@ -712,8 +712,8 @@ private void SubscribeToEvent()
712712

713713
private Task EventCalledAsync(ProjectQueryableSpaceChangedEventArgs e)
714714
{
715-
var solutionPath = e.SolutionPath;
716-
var version = e.QueryableSpaceVersion;
715+
string? solutionPath = e.SolutionPath;
716+
int version = e.QueryableSpaceVersion;
717717
...
718718
}
719719
```

0 commit comments

Comments
 (0)