Skip to content

Intellisense for nullable types does not display the null postfix operator #3174

@acoutts

Description

@acoutts

Describe the bug
While working in a null safe dart project, if you start to type out a member from a class like fooClass., the intellisense popup does not display the null postfix operator:
Screen Shot 2021-03-03 at 7 13 09 AM
Notice the type is LiveForexQuote.

But hovering over the member, then the correct type (nullable) is shown:
Screen Shot 2021-03-03 at 7 13 30 AM

To Reproduce
Steps to reproduce the behavior:

  1. Create a nullable variable in a class
  2. Start typing to dereference that nullable class member
  3. Intellisense won't show the null postfix operator.

Expected behavior
Should show the null postfix operator like when you hover over it after typing it in.

Versions (please complete the following information):

Version: 1.53.0-exploration
Commit: 0c9e2dadd986d0bc085f1c5352245531eef65e84
Date: 2021-01-07T06:28:46.730Z (1 mo ago)
Electron: 11.1.0
Chrome: 87.0.4280.88
Node.js: 12.18.3
V8: 8.7.220.29-electron.0
OS: Darwin arm64 20.2.0
Dart code: 3.20.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions