brackets-archive / bracketsIssues

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

[CLOSED] .brackets.json specified language.fileExtensions is not being applied for extension language upon startup #9022

Open core-ai-bot opened 2 years ago

core-ai-bot commented 2 years ago

Issue by liamjones Monday Dec 15, 2014 at 20:14 GMT Originally opened as https://github.com/adobe/brackets/issues/10177


Repro steps:

  1. Install Brackets fresh, no extensions
  2. Create a new project directory containing an index.html (contents doesn't matter)
  3. Open Brackets and point it at the project directory via open folder
  4. Open index.html and note it's selected HTML as the language (as expected)
  5. Install swig-brackets extension (https://github.com/abdelouahabb/swig-brackets/)
  6. Create and save a .brackets.json in the project directory containing:

    {
       "language.fileExtensions": {
           "html": "swig"
       }
    }
  7. Close and reopen Brackets
  8. Open index.html Expected behaviour: language for .html files in this project is now Swig Observed behaviour: language is still HTML
  9. In .brackets.json, change swig to something else, save then change it back to swig and save again
  10. Switch back to index.html and observe that it's now defaulting .html files to Swig formatting (this will persist until Brackets is restarted)
core-ai-bot commented 2 years ago

Comment by peterflynn Tuesday Jan 13, 2015 at 01:17 GMT


Looks like a timing issue with LanguageManager reading the preferences before extensions have finished loading.

core-ai-bot commented 2 years ago

Comment by MarcelGerber Friday Jun 12, 2015 at 12:12 GMT


Closing in favor of #11252. See https://github.com/adobe/brackets/issues/11252#issuecomment-111472993 for more info.