Ask-Stack-Atom icon indicating copy to clipboard operation
Ask-Stack-Atom copied to clipboard

Autofill language

Open ghost opened this issue 10 years ago • 3 comments

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.

ghost avatar Jul 31 '15 21:07 ghost

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.

Chris911 avatar Jul 31 '15 21:07 Chris911

Ah okay. didn't know that...

ghost avatar Jul 31 '15 21:07 ghost

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

hazrpg avatar Feb 21 '16 22:02 hazrpg