Vscode-terraform: Broken highlighting with curly brackets

Created on 23 Aug 2020  ยท  9Comments  ยท  Source: hashicorp/vscode-terraform

Screen Shot 2020-08-23 at 10 16 02 am

You can see here below 'id' which should be a string, the highlighting persists as a string for the rest of the document.

bug syntax

Most helpful comment

It's a lot easier to just use the built in feature to install previous versions. Simply go to the extensions manager in VS Code, search for the extension, click the cog icon and select "Install another version"
image

All 9 comments

This is another example of broken syntax highlighting in a different scenario.

Screen Shot 2020-08-23 at 10 24 27 am

Downgrading to 2.1.1 fixes both problems.

I think this is a duplicate of #466 ?

I think this is a duplicate of #466 ?

Yes it is! Remove the equal sign after "query" and the highlighting would work instantly - though breaking the code.

These are similar and potentially related, thought this seems to be more about everything following the curly brackets (see the code for locals) while #466 is breaking already within the curly brakets.

Hi, I've had the same issue, and as pointed @queglay, downgrading to 2.1.1 fixed the issue (in my case because using /* as a suffix in the ARN).

The steps that I followed to downgrade (I followed this guide):

  1. Download the 2.1.1 manually (click on the link) https://hashicorp.gallery.vsassets.io/_apis/public/gallery/publisher/hashicorp/extension/terraform/2.1.1/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage
  2. Rename the file to use the file extension VSIX only (without Package).
  3. In VS Code, open the Command Menu (Cmd + Shift + P on Mac OS X), and search for Install from VSIX and select the file that was downloaded/renamed.

I hope that this helps someone :)

It's a lot easier to just use the built in feature to install previous versions. Simply go to the extensions manager in VS Code, search for the extension, click the cog icon and select "Install another version"
image

Oh, thanks @ruankr!

I didn't know about this way (actually, it was the first time I needed to install a non-the-last version), but this is pretty easier!

I think this is the same as #466, going to merge them together. We are currently investigating the syntax issues and plan to publish a hotfix once resolved.

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the context necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vfab picture vfab  ยท  4Comments

LogicNinja picture LogicNinja  ยท  3Comments

QuinnStevens picture QuinnStevens  ยท  6Comments

brodster2 picture brodster2  ยท  5Comments

vazkarvishal picture vazkarvishal  ยท  5Comments