WorkspacesExtensionMethods Class

Definition

Container for client context at the time of a command invocation.

public static class WorkspacesExtensionMethods
type WorkspacesExtensionMethods = class
Public Module WorkspacesExtensionMethods
Inheritance
WorkspacesExtensionMethods

Methods

AddExistingFileAsync(IProjectSnapshot, Uri, CancellationToken)

Adds an existing file on disk to the project.

GetActiveProjectAsync(IClientContext, CancellationToken)

Gets the active project snapshot with Path information by default. This snapshot can be used to update the project starting with AsUpdatable extension method.

GetActiveProjectAsync(IClientContext, Func<IAsyncQueryable<IProjectSnapshot>,IAsyncQueryable<IProjectSnapshot>>, CancellationToken)

Gets the active project snapshot with Path and Files information and additional properties added in withModifier callback. This snapshot can be used to update the project starting with AsUpdatable extension method.

Applies to