terraform-autocomplete icon indicating copy to clipboard operation
terraform-autocomplete copied to clipboard

Holding Ctrl on a Terraform Resource Name will sometimes open a browser

Open walked opened this issue 7 years ago • 7 comments

Highlight an AWS resource (e.g. aws_eip), hold control (4-10sec). A browser window will sometimes open as if you had hit F12.

Weird!

I looked at the code and couldnt find an obvious cause but figured I'd let you know!

walked avatar Oct 21 '17 02:10 walked

Sometimes? Every time in my case.. I had it open over 20 tabs! Took me a few to identify this was the issue.

jpSimkins avatar Nov 02 '17 16:11 jpSimkins

@jpSimkins You're right; if I give it ample time it always happens. It's just frustrating enough to make the extension unusable :(

Maybe I'll run through the source again when I have some downtime.

walked avatar Nov 02 '17 17:11 walked

I'm experiencing the same thing, but haven't been able to look into the code yet to see if I can identify why.

dschaaff avatar Feb 08 '18 19:02 dschaaff

Is there a way to disable just that feature. I like the autocomplete but I use Dash.app for documentation.

kogent avatar Feb 26 '18 21:02 kogent

I had to disable the plugin. Been waiting for this to be updated before I install it again. I was going to try to work on it myself but I just don't have the time :(

jpSimkins avatar Feb 27 '18 21:02 jpSimkins

Sorry guys I didn't have my github notifications setup properly so I didn't notice any of this, there's no way to disable it right now without modifying the plugin, the functionality comes from the TerraformDefinitionProvider.ts file, I wanted "go to definition" functionality for the types because I was constantly looking them up on the site, unfortunately this is the only way I could figure out to get some sort of interaction like this. I'll look to making this an option

erd0s avatar Apr 01 '18 03:04 erd0s

This plugin has since added autocomplete and doesn’t have this behavior FYI https://marketplace.visualstudio.com/items?itemName=mauve.terraform

dschaaff avatar Apr 01 '18 04:04 dschaaff