aboutsummaryrefslogtreecommitdiff
path: root/src/server/format.odin
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2022-06-19 15:15:48 +0200
committerDaniel Gavin <danielgavin5@hotmail.com>2022-06-19 15:15:48 +0200
commit772d60c65246d252bda676aa09c371ad9985e2b7 (patch)
tree03466d85173c25e0ed43e95f3cad5a9e35b71575 /src/server/format.odin
parent09fdb88a25c3cc350bc1256b2f48c5d5a297807e (diff)
move document struct back to server
Diffstat (limited to 'src/server/format.odin')
-rw-r--r--src/server/format.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/format.odin b/src/server/format.odin
index 4c51943..e461044 100644
--- a/src/server/format.odin
+++ b/src/server/format.odin
@@ -17,7 +17,7 @@ DocumentFormattingParams :: struct {
options: FormattingOptions,
}
-get_complete_format :: proc(document: ^common.Document, config: ^common.Config) -> ([]TextEdit, bool) {
+get_complete_format :: proc(document: ^Document, config: ^common.Config) -> ([]TextEdit, bool) {
style := printer.default_style
style.max_characters = config.formatter.characters
style.tabs = config.formatter.tabs