azdavis / millet

A language server for Standard ML.
https://azdavis.net/posts/millet
Apache License 2.0
196 stars 12 forks source link

Add hints to diagnostics #43

Open azdavis opened 11 months ago

azdavis commented 11 months ago

Problem

Every diagnostic for Millet has its own documentation page explaining the diagnostic further. This page often contains hints for how to fix the diagnostic. However, people might not click through to this page via the error code link provided on the diagnostic.

Solution

Use the 'hint' mechanism for diagnostics in LSP to show hints directly on the diagnostics.

azdavis commented 11 months ago

Even better would be to develop quick fixes to insert the fixed code directly.