Code Monkey home page Code Monkey logo

Comments (10)

ralish avatar ralish commented on June 21, 2024 2

A quick workaround is to add the following to your VS Code settings:
"[sls]": { "editor.autoClosingBrackets": "never" }

from vscode-saltstack.

Rossn2 avatar Rossn2 commented on June 21, 2024 1

This is actually because autocomplete is configured for a single { , thus giving you an extra } bracket if trying to use others such as {{, {%, {#.

If you want to fix this and still use autocomplete brackets for everything else:

  1. Open: jinja.configuration.json
  2. change: ["{", "}"]
  3. to: ["{{", "}}"]

from vscode-saltstack.

heschlie avatar heschlie commented on June 21, 2024 1

@marek-obuchowicz It seems to have fixed it for me

from vscode-saltstack.

ralish avatar ralish commented on June 21, 2024 1

Nevermind, I've got it now and can confirm it looks to have fixed the issue.

I note that a changelog entry hasn't been published with the new version which may have been the cause of my confusion? Not sure if the update genuinely wasn't available at the time or I looked at the changelog in VS Code and just assumed it wasn't yet published after I'd manually checked for updates.

from vscode-saltstack.

heschlie avatar heschlie commented on June 21, 2024

Seeing the same thing.

I think what might be happening is both the saltstack plugin and VSCode are putting in the last } which gets us double.

from vscode-saltstack.

ralish avatar ralish commented on June 21, 2024

Ditto. Super annoying as you can easily forget to remove the extra bracket and then get parsing errors.

from vscode-saltstack.

kevinlong206 avatar kevinlong206 commented on June 21, 2024

Seeing the same, thanks @ralish for the workaround .

from vscode-saltstack.

marek-obuchowicz avatar marek-obuchowicz commented on June 21, 2024

Does latest issue of vscode plugin fix it for you?

from vscode-saltstack.

ralish avatar ralish commented on June 21, 2024

The new v0.0.6 release doesn't appear to be published yet to the VS Code marketplace?

from vscode-saltstack.

marek-obuchowicz avatar marek-obuchowicz commented on June 21, 2024

@ralish you are right, my bad - i didn't add the change to changelog.md before pushing it to Marketplace. At the moment marketplace doesn't allow to push 0.0.6 again - changelog will be published correctly with next release.

from vscode-saltstack.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.