It would be nice if gopls could reliably point out misspellings in declarations (but not in references, where it is just a nuisance), while being aware of Go conventions for capitalization, word breaking, and local project naming conventions. An analyzer seems like the easiest integration. (Semantic tokens doesn't have a "misspelled" modifier, nor the means to suggest a fix.)
One way to do this is to develop something from scratch, but I bet there are spell checkers out there that we could reuse. The tricky part will be to define a loosely coupled interface to avoid x/tools from having to add a dependency on them.
It would be nice if gopls could reliably point out misspellings in declarations (but not in references, where it is just a nuisance), while being aware of Go conventions for capitalization, word breaking, and local project naming conventions. An analyzer seems like the easiest integration. (Semantic tokens doesn't have a "misspelled" modifier, nor the means to suggest a fix.)
One way to do this is to develop something from scratch, but I bet there are spell checkers out there that we could reuse. The tricky part will be to define a loosely coupled interface to avoid x/tools from having to add a dependency on them.