diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-08-30 23:27:12 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-08-30 23:27:12 +0200 |
| commit | 1f07c24c58ed1ad8789832a567215515768955ad (patch) | |
| tree | b87f1717d1a9127fddad55747998faafc26139d3 /src/server/format.odin | |
| parent | d8ec00c929494c0e40ec4a46b8420f3ef51bbd4e (diff) | |
Forgot some files
Diffstat (limited to 'src/server/format.odin')
| -rw-r--r-- | src/server/format.odin | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/server/format.odin b/src/server/format.odin index d0c939b..63d949c 100644 --- a/src/server/format.odin +++ b/src/server/format.odin @@ -35,6 +35,10 @@ get_complete_format :: proc( return {}, true } + if config.enable_import_fixer { + fix_imports(document) + } + style := format.find_config_file_or_default( filepath.dir(document.fullpath, context.temp_allocator), ) @@ -44,7 +48,9 @@ get_complete_format :: proc( edit := TextEdit { newText = src, - range = common.get_document_range(document.text[0:document.used_text]), + range = common.get_document_range( + document.text[0:document.used_text], + ), } edits := make([dynamic]TextEdit, context.temp_allocator) |