dotnet / dotnet/fsharp

Auto-complete should not be triggered inside the context of a char

Open
#7,827 6 comments 0 reactions 0 assignees View on GitHub
Area-LangService-AutoComplete Bug Impact-Low
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

When you start typing a string `"a string...`, auto-complete will correctly _not_ kick in. However, when you start typing a char like `'\r'`, this will auto-complete and select the first in the list (in this case `raise`), resulting in `'\raise'` after you hit the last `'`.

This also happens with any other potential name in the dropdown.

![image](https://user-images.githubusercontent.com/16015770/68352690-89694d80-0107-11ea-85d9-9c763a072593.png)

**Expected behavior**

The context of a string or char should not trigger auto-complete, but inside a char it happens anyway (string goes fine).

**Actual behavior**

Auto-complete is triggered and creates invalid chars.

**Extra info**

* It does not occur when there's no backslash involved
* Version: VS Prof 16.3.7.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.