@@ -14,19 +14,21 @@ defmodule GenLSP.Structures.CodeActionRegistrationOptions do
1414 * document_selector: A document selector to identify the scope of the registration. If set to null
1515 the document selector provided on the client side will be used.
1616 * code_action_kinds: CodeActionKinds that this server may return.
17-
17+
1818 The list of kinds may be generic, such as `CodeActionKind.Refactor`, or the server
1919 may list out every specific kind they provide.
2020 * resolve_provider: The server provides support to resolve additional
2121 information for a code action.
22-
22+
2323 @since 3.16.0
24+ * work_done_progress
2425 """
2526 @ derive Jason.Encoder
2627 typedstruct do
2728 field :document_selector , GenLSP.TypeAlias.DocumentSelector . t ( ) | nil , enforce: true
2829 field :code_action_kinds , list ( GenLSP.Enumerations.CodeActionKind . t ( ) )
2930 field :resolve_provider , boolean ( )
31+ field :work_done_progress , boolean ( )
3032 end
3133
3234 @ doc false
@@ -37,7 +39,8 @@ defmodule GenLSP.Structures.CodeActionRegistrationOptions do
3739 oneof ( [ GenLSP.TypeAlias.DocumentSelector . schema ( ) , nil ] ) ,
3840 optional ( { "codeActionKinds" , :code_action_kinds } ) =>
3941 list ( GenLSP.Enumerations.CodeActionKind . schema ( ) ) ,
40- optional ( { "resolveProvider" , :resolve_provider } ) => bool ( )
42+ optional ( { "resolveProvider" , :resolve_provider } ) => bool ( ) ,
43+ optional ( { "workDoneProgress" , :work_done_progress } ) => bool ( )
4144 } )
4245 end
4346end
0 commit comments