Skip to content

Commit 9847aeb

Browse files
committed
Remove Project queryable space
1 parent 71233c3 commit 9847aeb

File tree

1 file changed

+1
-11
lines changed
  • docs/extensibility/visualstudio.extensibility/project

1 file changed

+1
-11
lines changed

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,13 @@ This overview covers top scenarios for working with the project query API:
6161

6262
You'll need to obtain an instance of the *project query space* object to query the project system. This object has several asynchronous methods that query or update the project system. The term *project query space* and the term *workspace* both mean the same thing and refer to the object that provides access to all the data for a project. `workspace` will be consistently used in this documentation.
6363

64-
There are two approaches to accessing the project query space: **WorkspacesExtensibility** and **ProjectQueryableSpace**.
65-
66-
### Using WorkspacesExtensibility (Recommended)
64+
### Using WorkspacesExtensibility
6765
The `WorkspacesExtensibility` object, built into `Microsoft.VisualStudio.Extensibility`, provides a simple and integrated way to use project query.
6866

6967
```csharp
7068
WorkspacesExtensibility workspace = this.Extensibility.Workspaces();
7169
```
7270

73-
### Using ProjectQueryableSpace
74-
Alternatively, you can use a `ProjectQueryableSpace` object created via a service broker. This approach is useful for scenarios requiring more control or integration with specific services.
75-
76-
```csharp
77-
IServiceBroker serviceBroker = context.Extensibility.ServiceBroker;
78-
ProjectQueryableSpace queryspace = new ProjectQueryableSpace(serviceBroker: serviceBroker, joinableTaskContext: null);
79-
```
80-
8171
In the example above, `context` refers to an instance of `IClientContext` provided by `Microsoft.VisualStudio.Extensibility`. It is used to access contextual information and services related to the current state and environment of the IDE.
8272

8373
For those utilizing the service broker, consult the [Project Query API article for Visual Studio SDK](../../project-visual-studio-sdk.md) for detailed queries.

0 commit comments

Comments
 (0)