Skip to content

Commit 37b5c33

Browse files
committed
fix file check, the types were a lie
1 parent 3493373 commit 37b5c33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/site-kit/src/lib/codemirror/autocompletionDataProvider.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ const is_bindable = (node, context) => {
577577
* @type {import("./types").Test}
578578
*/
579579
const is_props_id_call = (node, context, selected) => {
580-
if (selected.type !== 'svelte') return false;
580+
if (!selected.match(/\.svelte$/)) return false;
581581
if (!is_state_call(node, context, selected)) return false;
582582
if (node.parent?.parent?.name !== 'Script') return false;
583583
return true;
@@ -587,7 +587,7 @@ const is_props_id_call = (node, context, selected) => {
587587
* @type {import("./types").Test}
588588
*/
589589
const is_props_id = (node, context, selected) => {
590-
if (selected.type !== 'svelte') return false;
590+
if (!selected.match(/\.svelte$/)) return false;
591591
if (!is_state(node, context, selected)) return false;
592592
if (node.parent?.parent?.name !== 'Script') return false;
593593
return true;

0 commit comments

Comments
 (0)