[language-sass] Force the TextMate grammar when running SassDoc specs

This commit is contained in:
Andrew Dupont 2024-04-14 15:28:31 -07:00
parent da1912d1a7
commit 5472e32e21

View File

@ -3,6 +3,10 @@ describe('SassDoc grammar', function() {
let grammar = null;
beforeEach(function () {
// There isn't a Tree-sitter grammar for SassDoc that I'm aware of. Users
// who expect thorough highlighting of SassDoc can add a scope-specific
// override to prefer the TextMate-style SCSS grammar.
atom.config.set('core.useTreeSitterParsers', false)
waitsForPromise(() => atom.packages.activatePackage('language-sass'));
runs(() => grammar = atom.grammars.grammarForScopeName('source.css.scss'));