Skip to content

Respect config in scheme when treesitter is disabled - #781

Merged
Olical merged 1 commit into
Olical:mainfrom
seamusriordan:scheme-valid-str-no-ts
Jul 24, 2026
Merged

Respect config in scheme when treesitter is disabled#781
Olical merged 1 commit into
Olical:mainfrom
seamusriordan:scheme-valid-str-no-ts

Conversation

@seamusriordan

Copy link
Copy Markdown
Contributor

Currently the scheme and guile clients will call tree-sitter facilities when validating a string to be evaluated by the repl even if #extract#tree_sitter#enabled is false in the config. Furthermore the treesitter completions will also call some facilities if it is disabled (this has been harmless due to failure checks) but should also respect the config.

Added a ts.enabled? guard around get-completions-at-cursor with tests

Added a ts.enabled? check around valid-str? which returns true of tree-sitter is disabled with tests

@russtoku

Copy link
Copy Markdown
Contributor

After a quick look, it seems to me that this should work fine.

@Olical
Olical merged commit 9d2a7f5 into Olical:main Jul 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants