gleam-lang / vscode-gleam

📟 Gleam support for VS Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unused recursive function not highlighted as being unused.

opened this issue · comments

vscode_gleam_ext_error
unused_non_recursive_func() is highlighted by vs code since it is unused, but unused_recursive_func(flag: Bool) is not highlighted since it is used within itself, which convinces vscode that it is being used. I think this is wrong and that unused_recursive_func(flag: Bool) should be marked as unused.


The same situation but in rust and using the rust-analyzer extension:
rust_unused_rec_func

Aye, this is a known issue with the dead code detection. This feature is due a full rewrite and will cover this case when that happens. Thank you, and sorry for the annoyance of this problem.