Okay I really like Gleam as a language but sometimes I just want to hate it's LSP when it come to do refactoring 😅
Often I have a type with some functions I need to make them common for multiple module so what I want to do is move this code to a new file than in the original file replace the function and types with imports.
My issue is while doing this my LSP is kind of dead and refuse to auto import my new module if I don't have an import.
I made three videos:
gleam --version
gleam 1.14.0
I don't have logs for the Gleam LSP but I think it's easily reproducible with my videos linked above.
Okay I really like Gleam as a language but sometimes I just want to hate it's LSP when it come to do refactoring 😅
Often I have a type with some functions I need to make them common for multiple module so what I want to do is move this code to a new file than in the original file replace the function and types with imports.
My issue is while doing this my LSP is kind of dead and refuse to auto import my new module if I don't have an import.
I made three videos:
Contextto a new file and I first try to import it with LSP than I manually import and fix the errors https://asciinema.org/a/TZ2WExH4mX9Uw7WwContextto a new file but I make sure to not have any errors in this module and after I try in my mai to use LSP to import https://asciinema.org/a/LmBbsmk01yHQ3vvKI don't have logs for the Gleam LSP but I think it's easily reproducible with my videos linked above.