Interface IServerCommandContext
What a server command can ask of the client while it runs.
public interface IServerCommandContext
Methods
AskAsync(string, IReadOnlyList<string>, CancellationToken)
Asks the client's user to choose (LSP 3.17 window/showMessageRequest): whether to replace a file, which of several projects.
Task<string?> AskAsync(string message, IReadOnlyList<string> choices, CancellationToken token)
Parameters
messagestringThe question, in the language of the user interface.
choicesIReadOnlyList<string>What the user can choose, as the buttons say it.
tokenCancellationTokenA token that cancels the question.