Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beautify on save isn't triggered with additional configured extensions #9

Closed
jayrosen1576 opened this issue Mar 14, 2016 · 2 comments
Closed

Comments

@jayrosen1576
Copy link

let refType = doc.languageId;

if (refType === 'javascript') refType = 'js';
if (['json', 'js', 'html', 'css'].indexOf(refType) === -1) return;

It looks like the above lines of code need to be altered to used the "beautify.HTMLfiles", "beautify.CSSfiles", "beautify.JSfiles" user settings. I have the following in my settings file but the saving the handlebars file does not run the beautifier:

"beautify.HTMLfiles": [
    "htm",
    "html",
    "hbs"
]
@jayrosen1576
Copy link
Author

Nice! works great!

On Mon, Mar 14, 2016 at 2:19 PM, HookyQR [email protected] wrote:

Closed #9 #9 via 1c6d47c
1c6d47c
.


Reply to this email directly or view it on GitHub
#9 (comment).

@HookyQR
Copy link
Owner

HookyQR commented Mar 15, 2016

It was ignoring these. Also it wouldn't have been loaded in situations where the file type wasn't recognised by VS Code. I've altered this so it loads always now, but runs only when saving the file types it can handle (or has been told to handle). Released version 0.1.1.

Thanks for staying involved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants