Skip to content

Commit ddf6688

Browse files
authored
Added missing generated modules (#818)
I missed the formatting options on the last PR which generated experimental protocol modules. This fixes that error
1 parent 47ba802 commit ddf6688

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# This file's contents are auto-generated. Do not edit.
2+
defmodule ElixirLS.LanguageServer.Experimental.Protocol.Types.Document.Formatting.Options do
3+
alias ElixirLS.LanguageServer.Experimental.Protocol.Proto
4+
use Proto
5+
deftype work_done_progress: optional(boolean())
6+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file's contents are auto-generated. Do not edit.
2+
defmodule ElixirLS.LanguageServer.Experimental.Protocol.Types.Document.Formatting.Params do
3+
alias ElixirLS.LanguageServer.Experimental.Protocol.Proto
4+
alias ElixirLS.LanguageServer.Experimental.Protocol.Types
5+
use Proto
6+
7+
deftype options: Types.Formatting.Options,
8+
text_document: Types.TextDocument.Identifier,
9+
work_done_token: optional(Types.Progress.Token)
10+
end
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This file's contents are auto-generated. Do not edit.
2+
defmodule ElixirLS.LanguageServer.Experimental.Protocol.Types.Formatting.Options do
3+
alias ElixirLS.LanguageServer.Experimental.Protocol.Proto
4+
use Proto
5+
6+
deftype insert_final_newline: optional(boolean()),
7+
insert_spaces: boolean(),
8+
tab_size: integer(),
9+
trim_final_newlines: optional(boolean()),
10+
trim_trailing_whitespace: optional(boolean())
11+
end

apps/language_server/lib/language_server/experimental/protocol/requests.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ defmodule ElixirLS.LanguageServer.Experimental.Protocol.Requests do
3232

3333
defrequest "textDocument/formatting", :exclusive,
3434
text_document: Types.TextDocument.Identifier,
35-
options: Types.FormattingOptions
35+
options: Types.Formatting.Options
3636
end
3737

3838
defmodule CodeAction do

0 commit comments

Comments
 (0)