GithubHelp home page GithubHelp logo

okitavera / vscode-nunjucks-formatter Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 246 KB

Formatter for Nunjucks template. Powered by Prettydiff2

Home Page: https://marketplace.visualstudio.com/items?itemName=okitavera.vscode-nunjucks-formatter

License: MIT License

JavaScript 100.00%
nunjucks vscode-extension vscode

vscode-nunjucks-formatter's Issues

Performance Issues Over Runtime

Hello!

This extension works exactly as it should in terms of formatting. However, after extended use (usually 15-20 minutes for me) it starts exhibiting performance issues. My entire VS Code slows to a halt, formatting stops happening entirely, etc.

Is this something that can be addressed? Am I the only one experiencing these issues? I am using this extension, along with this one in an 11ty project and I had to uninstall for the time being because it was making VS Code unusable.

I no longer experience the issue without the extension, so I think it's fairly safe to say it is the root cause. Let me know if you need anything from me to help!

No tabs support

The formatter should respect configured HTML format settings. When tabs are configured, the indentation indents using 4 tabs (!!)

Avoid format regexp

There are some situations like when using a r/ where is not desired the formatting. Is there any chance to disable through configuration?

example:

{% if r/\/\w+/.exec(page.url)[0] === "string" %}

becomes

{% if r / \ / \w + /.exec(page.url)[0] === "string" %}

Thanks in advance!

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.