Chris911 / Ask-Stack-Atom

Ask Stack Overflow for Atom
https://atom.io/packages/ask-stack
MIT License
124 stars 22 forks source link

Autofill language #28

Open ghost opened 9 years ago

ghost commented 9 years ago

It would be great if the language search field would be auto filled with the language the actual file uses. (based on the file extension e.g.)

So if you currently edit a .js file it should automatically fill in javascript in this box.

Chris911 commented 9 years ago

This feature already exists but I checked and apparently there's a bug because the setting is gone in the latest version. Probably due to an API update.

ghost commented 9 years ago

Ah okay. didn't know that...

hazrpg commented 8 years ago

I wanted to help fix this, but I don't truly understand what's fully going on. However, this seems to be the cause (I suspect):

'ask-stack.autoDetectLanguage' could not set the default. Attempted default: undefined; Schema: true /usr/share/atom/resources/app.asar/src/config.js:669

image