mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-08-16 14:40:23 +03:00
Prefer a more graceful solution
This commit is contained in:
parent
14e3562330
commit
11ebeeab61
@ -1695,11 +1695,12 @@ describe('WASMTreeSitterLanguageMode', () => {
|
||||
});
|
||||
|
||||
describe('.suggestedIndentForBufferRows', () => {
|
||||
beforeEach(async () => {
|
||||
await atom.packages.activatePackage('language-javascript');
|
||||
})
|
||||
|
||||
it('works correctly when straddling an injection boundary', async () => {
|
||||
|
||||
atom.config.set('language-javascript.indentation.indentBraces', true);
|
||||
atom.config.set('language-javascript.indentation.indentBrackets', true);
|
||||
atom.config.set('language-javascript.indentation.indentParentheses', true);
|
||||
const jsGrammar = new WASMTreeSitterGrammar(atom.grammars, jsGrammarPath, jsConfig);
|
||||
|
||||
jsGrammar.addInjectionPoint(HTML_TEMPLATE_LITERAL_INJECTION_POINT);
|
||||
|
Loading…
Reference in New Issue
Block a user