SuduIDE/ideals

Incorrect completion for non-imported standard libraries

Opened this issue · 0 comments

Description

Incorrect completion for non-imported standard libraries.

To Reproduce

Steps to reproduce the behavior:

  1. Run Visual Studio Code extension.
  2. Write this code:
math.

# Same with all non-imported standard libraries e.g. sys

Expected behavior

Completion should correctly insert the name of the selected method.
Completion should import standart library. [enhancement]

import math

math.cos()

Actual behavior

Completion duplicate library name.
Library is not imported.

Visual proofs (screenshots, logs, images)
Before autocomplete
image
After autocomplete
image

Environment

OS: Windows 11 Pro 21H2
JDK: Amazon Coretto 18.0.2
Intellij IDEA: Build #IU-221.5921.22
Visual Studio Code: v1.70.1