Share via


IProjectFileInvisibleEditorTracker.EditorOpenedAsync Method

Definition

Informs the system that the project file is open in a text editor. This should be called before the user can make any edits.

public:
 System::Threading::Tasks::Task<Nullable<int>> ^ EditorOpenedAsync(Guid projectGuid, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<int?> EditorOpenedAsync (Guid projectGuid, System.Threading.CancellationToken cancellationToken);
abstract member EditorOpenedAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Nullable<int>>
Public Function EditorOpenedAsync (projectGuid As Guid, cancellationToken As CancellationToken) As Task(Of Nullable(Of Integer))

Parameters

projectGuid
Guid

The GUID of the project being edited.

cancellationToken
CancellationToken

A cancellation token.

Returns

A cookie that represents the tracking of the newly opened editor and should be passed to the EditorClosedAsync(Guid, Int32, CancellationToken) when the editor is closed, or null if the project guid represents a project that is incompatible with this service.

Applies to