Freigeben über


IHostTaskExecutor Interface

Definition

A task executor that can be used to execute LSP tasks in the host environment.

public interface IHostTaskExecutor
type IHostTaskExecutor = interface
Public Interface IHostTaskExecutor

Methods

ExecuteTaskAsync<TOutput>(Func<Task<TOutput>>, LanguageServerOperationContext, CancellationToken, TOutput)

Executes a task in host environment if host task executor is available. This is critical to trust between LSP and its hosts. LSP should correctly use this and wrap particulat steps that need to run in host using these methods.

Applies to