ProjectManager.CodeActions(CodeActionParams) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- param
- CodeActionParams
Returns
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).