Closed ghost closed 3 years ago
language-source is the fallback for all languages, and provides some basic auto-indent rules. Looks like language-css doesn't provide its own, so the rules in language-source get used instead.
The easy way to fix this would just be to add specialized auto-indent rules to language-css, or even as a temporary workaround copy over the ones from language-source.
OK, that makes sense. In that case, I'd suggest (in addition to your suggestions) that a warning gets added to language-source
so people disabling it will know other languages might not work properly.
Prerequisites
Description
When Atom's core
language-source
package is disabled, auto indent in.css
files no longer works.Steps to Reproduce
test.css
..test {
in your CSS file, then press Enter on your keyboard.Auto indent
setting in the corelanguage-css
package).source
to locate the corelanguage-source
package. Disable it.Expected behavior:
The new line will start indented, as per step 5.
Actual behavior:
The new line is not indented.
Reproduces how often:
100%
Versions
This is clearly a bug, but I'm not sure in what way it's a bug... Either:
language-source
package is not required and should be able to be disabled without affecting other packages, orlanguage-source
package is required for other packages to work properly and should either not be disable-able, or should display a warning when disabling advising of potential issues.