brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

Can't change default languages for double-barrelled extensions "*.js.liquid" etc. #13829

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by ConduciveMammal Friday Apr 07, 2017 at 13:13 GMT Originally opened as https://github.com/adobe/brackets/issues/13281


Prerequisites

For more information on how to write a good bug report read here For more information on how to contribute read here

Description

Attempting to change my default language syntax highlighting for double-barrelled file extensions. I do a lot of Shopify development which uses it's own .liquid file extension, but when working on Liquid-powered JS/CSS/SCSS files, the extensions retain their old extension: *.js.liquid, *.css.liquid, *.scss.liquid.

So, using a plugin, *.liquid files are highlighted as Liquid files, but I want SCSS/JS/CSS-powered Liquid files to follow their original extension highlighting.

Here is everything that's in my brackets.json document. `{ "fonts.fontSize": "14px",

"fonts.fontFamily": "'SourceCodePro-Medium', MS ゴシック, 'MS Gothic', monospace",

"themes.theme": "brackets-material-dark-theme",

"bb.beautify.hideDialog": false,

"noDistractions": false,

"styleActiveLine": true,

"linting.collapsed": true,

"language.fileExtensions": {

    "scss.liquid": "scss"

},

"language.fileNames": {

    "js.liquid": "javascript"

    }
}`

Versions

Linux Ubuntu Brackets 1.9

core-ai-bot commented 3 years ago

Comment by haslam22 Monday Apr 10, 2017 at 16:45 GMT


I can't reproduce. Tried mapping *.scss.liquid and *.js.liquid to scss and javascript as default, reloaded, and both files with those extensions open in scss/javascript mode as expected.

Your preferences also seem wrong, put both mappings under languages.fileExtensions instead:

"language.fileExtensions": {
    "js.liquid": "javascript",
    "scss.liquid": "scss"
}