Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When inside comment blocks (/* */), pressing the Period key on the keyboard should not trigger Content Assist dialog box. #2441

Closed
tommai78101 opened this issue Jul 29, 2018 · 3 comments

Comments

@tommai78101
Copy link

Environment data

dotnet --info output:

.NET Command Line Tools (2.1.202)

Product Information:
Version: 2.1.202
Commit SHA-1 hash: 281caedada

Runtime Environment:
OS Name: Windows
OS Version: 10.0.17134
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.1.202\

Microsoft .NET Core Shared Framework Host

Version : 2.0.9
Build : 1632fa1589b0eee3277a8841ce1770e554ece037

VS Code version: 1.25.1
C# Extension version: 1.15.2
OS Version: Windows 10 Professional

Issue:

When inside comment blocks (/* */), pressing the Period key on the keyboard should not trigger Code Assist dialog box.

It is annoying when you invoke the Content Assist dialog box, but it is even worse when you press the Spacebar in places where it should have been whitespaces. Like

  1. aaa
  2. bbb
  3. ccc

And then you accidentally invoke the Content Assist on the first "period", and the first entry is accidentally applied when the "Spacebar" key is pressed down.

Steps to Reproduce:

  1. In a blank C# file, start with a comment block. (/* */).
  2. Type out an ordered list (List that starts with 1, 2, 3, ...).
  3. The moment you type a period in the ordered list, you are invoking the Content Assist dialog box.
  4. All I'm doing is pressing only Spacebar and Period keys inside the comment block. The Content Assist shouldn't be invoked inside the comment blocks at all.

gif

Expected behavior

Content Assist shouldn't be appearing inside comment blocks, nor invoked.

Actual behavior

Content Assist is being invoked while inside comment blocks.

@rchande
Copy link

rchande commented Jul 30, 2018

@akshita31 I think you were looking into this at some point?

@akshita31
Copy link
Contributor

Yes, this is a duplicate of #1424

@tommai78101
Copy link
Author

Yep, thanks for that issue @akshita31 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants