linxkaa · GitHub

Describe the bug
Autocomplete on VSCode is not working, usually when i extract widget, there's a suggestion that located above VSCode that says "Enter a name for the widget (Press 'Enter' to confirm or 'Escape' to cancel)" now its just automatically extracted as "NewWidget" also when I want to write for example SizedBox, usually when i click the suggestions, it will include the (), but now when i click SizedB, it didn't autocomplete to 'SizedBox()'.

The same thing when i want to use a function. usually when i had list, then i press .map on suggestion, it will autocomplete to MyList.map((e) => null), but now it only become MyList.map even though i already press the 1st suggestion

Things i tried to fix the error

  1. Already uninstall VSCode
  2. Downgrade Dart & Flutter extensions
  3. Restart VSCode
  4. Restart my Mac
  5. Shutdown my Mac then turn it on again
  6. Modify my setting json into this:
"[dart]": {
    "editor.formatOnSave": true,
    "editor.formatOnType": true,
    "editor.rulers": [200],
    "editor.selectionHighlight": false,
    "editor.suggest.snippetsPreventQuickSuggestions": false,
    "editor.suggestSelection": "first",
    "editor.tabCompletion": "onlySnippets",
    "editor.wordBasedSuggestions": false,
    "files.insertFinalNewline": true
  },

Screenshots
Screen Shot 2021-01-26 at 10 44 27
⬆when i tried to extract the widget

Screen Shot 2021-01-26 at 10 45 11

⬆its still showing suggestion, but when i click the 1st suggestion, it will only become SizedBox, not SizedBox()

Versions:

  • VS Code version: 1.52.1
  • Dart extension version: 3.18.1
  • Dart/Flutter SDK version:
    Dart: 2.10.2
    Flutter SDK: 1.22.2

Please help, idk what to do, it really slows my progress to code.

Read the original on github.com ↗