VladRassokhin / intellij-hcl

HCL language support for IntelliJ platform based IDEs
Apache License 2.0
244 stars 47 forks source link

Autocompletion/suggestion for variables , outputs #259

Open ahaffar opened 5 years ago

ahaffar commented 5 years ago

Autocompletion/suggestion for variables, output and Interpolation Syntax not working on 0.7.6 on Windows, i had to downgrade to 0.7.5 version

Prerequisites

Installation details

Expected Behavior

autocompletion/suggestion for reousce_names should appear

Actual Behavior

I have to manually write the full resource names along with attribute references

Steps to Reproduce

1- create an output variable and see if the autocompletion/suggestion will work while entering the value field

VladRassokhin commented 5 years ago

Please attach some code example

ahaffar commented 5 years ago

the below snippets are from the same project but using different versions.

Version 7.6

as you can see there are no suggestions image

Version 7.5

image

ahaffar commented 5 years ago

appreciate any help

ethanquix commented 5 years ago

It doesn't work for me either on 0.7.6 on Linux. Autocompletion appear for a nanosecond then disappear

VladRassokhin commented 5 years ago

In 0.7.6 I've improved filtering, now resource type is not in completion list if there's no resource of such type in module. You can have previous experience by invoking completion (pressing Ctrl+Space) one more time.

michal-kubicki commented 4 years ago

You can have previous experience by invoking completion (pressing Ctrl+Space) one more time.

This does not work in 0.7.7. Is there another workaround? Could you please explain how is this an improvement? So far it causes only problems.

VladRassokhin commented 4 years ago

Two fast Ctrl+Space, aka Ctrl+Space+Space (like Shift-Shift) works on my machine with 0.7.8 though.

Could you please explain how is this an improvement?

Yep, reducing noise in simple completion.