haskell / haskell/haskell-language-server

Bad autocomplete in comments

Open
#3,370 4 comments 2 reactions 0 assignees View on GitHub
status: in discussion type: bug
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

I have recently been receiving autocomplete when pressing enter at the end of a sentence in a comment:

```haskell
-- foo is a number.
foo = 1
```

If my cursor is at the full stop after "number", and I press enter, then I normally get `{-# ANN annotation #-}` inserted, or some random Core variable.

It would be good to only provide autocomplete outside of comments imo...

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.