ProjectManager.CodeActions(CodeActionParams) Method

Definition

Returns a look-up of workspace edits suggested by the compiler for the given location and context.

public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.LanguageServer.Protocol.CodeAction>? CodeActions (Microsoft.VisualStudio.LanguageServer.Protocol.CodeActionParams? param);
member this.CodeActions : Microsoft.VisualStudio.LanguageServer.Protocol.CodeActionParams -> seq<Microsoft.VisualStudio.LanguageServer.Protocol.CodeAction>
Public Function CodeActions (param As CodeActionParams) As IEnumerable(Of CodeAction)

Parameters

Returns

IEnumerable<CodeAction>

Remarks

The key of the returned look-up is a suitable title for the corresponding edits that can be presented to the user. Returns null if given uri is null or if the specified file is not listed as source file.

Fails silently without logging anything if an exception occurs upon evaluating the query (occasional failures are to be expected as the evaluation is a readonly query running in parallel to the ongoing processing).

Applies to