Gets the context in which a code action executes. Exposed by ICodeActionBuilder.
If you implement your own code action using the Metalama SDK, you should cast this interface to ISdkCodeActionContext
.
Namespace: Metalama.Framework.CodeFixes
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface ICodeActionContext
Properties
Name | Description |
---|---|
CancellationToken | Gets the cancellation token. |
ServiceProvider | Gets the service provider. |