dfinity / vscode-motoko

Motoko language support for VS Code.
Apache License 2.0
42 stars 15 forks source link

Autocomplete non-functional. #286

Open krishnansarkar opened 1 week ago

krishnansarkar commented 1 week ago

Issue Autocomplete does not work.

Steps to reproduce

OS: Windows 11 + WSL. Motoko plugin version: v0.16.4 DFX version: 0.20.1

  1. Connect VSCode to WSL.
  2. Open terminal.
  3. Create a new project with dfx new.
  4. Choose motoko for backend, anything for frontend, and no extra features.
  5. Open folder in VSCode.
  6. Paste the following code in main.mo:
import List "mo:base/List";

actor Bug {
  var testList = List.nil<Text>();

  testList.
};
  1. Try to get autocomplete to work with testList.
rvanasa commented 1 week ago

Hi, thanks for opening the issue! The extension currently only supports local variable and import autocompletion (e.g. completing List or testList). We will increase the priority of this feature based on your feedback.

krishnansarkar commented 1 week ago

Ah okay, thank you. Yes this kind of support would be super useful; maybe my memory is just bad, but i wouldn't have to flip to the docs as often.