Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Turn tree-sitter on by default #17879

Merged
merged 11 commits into from
Sep 5, 2018
Prev Previous commit
Next Next commit
Disable useTreeSitterParsers in the TextMateLanguageMode specs.
  • Loading branch information
Ashi Krishnan authored and maxbrunsfeld committed Sep 4, 2018
commit e4248d13c89a55f451330ea612fbdbec7a0e7314
2 changes: 2 additions & 0 deletions spec/text-mate-language-mode-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ describe('TextMateLanguageMode', () => {

beforeEach(async () => {
config = atom.config
config.settings.core.useTreeSitterParsers = false
// enable async tokenization
TextMateLanguageMode.prototype.chunkSize = 5
jasmine.unspy(TextMateLanguageMode.prototype, 'tokenizeInBackground')
Expand All @@ -20,6 +21,7 @@ describe('TextMateLanguageMode', () => {
afterEach(() => {
buffer && buffer.destroy()
languageMode && languageMode.destroy()
config.settings.core.useTreeSitterParsers = true
})

describe('when the editor is constructed with the largeFileMode option set to true', () => {
Expand Down