Gears

Results 138 comments of Gears

Also another thing inlay hints could be used for is inferred types for arguments and return-types, since those might not be obvious in certain cases

I might try and tackle this one. Should I implement it in the formatter or in as an LSP action? And should I take a look at what was suggested...

Thinking about this more, I think this should be an lsp action, since the job of the formatter isn't really to fix errors in code.

One question about the implementation of this: Should I unify the three name token types and only discriminate between them later, or keep them and just not report any errors...

I'll try and implement this once #3393 is merged, although we should probably fix #2426 first too

For anyone looking to implement this in future, I'll leave some details here to hopefully get you started. The error for an inexhaustive case expression is reported [here](https://github.com/gleam-lang/gleam/blob/ed441efca17329676659e79468a88f8fc0cb3494/compiler-core/src/type_/expression.rs#L3464) (This is...

This is an additional feature to that code action which was discussed on discord but we decided to leave it until later to implement. The initial issue comment describes the...

This could also apply to the "Add Type Annotations" code action introduced in #3682

It does currently