Skip to content

Commit bd8d3d0

Browse files
committed
fix: declaring completion triggers as string array instead of const
1 parent 92aeda0 commit bd8d3d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/CompletionProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from './utils';
1212
import type {CamelCaseValues} from './utils';
1313

14-
export const COMPLETION_TRIGGERS = ['.', '[', '"', "'"] as const;
14+
export const COMPLETION_TRIGGERS = ['.', '[', '"', "'"];
1515

1616
type FieldOptions = {
1717
wrappingBracket: boolean;

src/connection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function createConnection(): lsp.Connection {
4747
/**
4848
* only invoke completion once `.` or `[` are pressed
4949
*/
50-
triggerCharacters: COMPLETION_TRIGGERS.slice(),
50+
triggerCharacters: COMPLETION_TRIGGERS,
5151
resolveProvider: true,
5252
},
5353
},

0 commit comments

Comments
 (0)