Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 859d5c8

Browse files
committed
Ensure autocomplete works with tree-sitter grammars
1 parent dd72b82 commit 859d5c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/auto-languageclient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ export default class AutoLanguageClient {
437437
public provideAutocomplete(): AutocompleteProvider {
438438
return {
439439
selector: this.getGrammarScopes()
440-
.map((g) => '.' + g)
440+
.map((g) => g.includes('.') ? '.' + g : g)
441441
.join(', '),
442442
inclusionPriority: 1,
443443
suggestionPriority: 2,

0 commit comments

Comments
 (0)