|
|
|
@ -205,15 +205,20 @@
|
|
|
|
|
return {
|
|
|
|
|
from: word.from - 1,
|
|
|
|
|
options: [
|
|
|
|
|
{ label: '$state', type: 'keyword', boost: 5 },
|
|
|
|
|
{ label: '$props', type: 'keyword', boost: 4 },
|
|
|
|
|
{ label: '$derived', type: 'keyword', boost: 3 },
|
|
|
|
|
snip('$effect(() => {\n\t${}\n});', { label: '$effect', type: 'keyword', boost: 2 }),
|
|
|
|
|
{ label: '$state', type: 'keyword', boost: 10 },
|
|
|
|
|
{ label: '$props', type: 'keyword', boost: 9 },
|
|
|
|
|
{ label: '$derived', type: 'keyword', boost: 8 },
|
|
|
|
|
snip('$effect(() => {\n\t${}\n});', { label: '$effect', type: 'keyword', boost: 7 }),
|
|
|
|
|
snip('$effect.pre(() => {\n\t${}\n});', {
|
|
|
|
|
label: '$effect.pre',
|
|
|
|
|
type: 'keyword',
|
|
|
|
|
boost: 1
|
|
|
|
|
})
|
|
|
|
|
boost: 6
|
|
|
|
|
});
|
|
|
|
|
{ label: '$effect.active', type: 'keyword', boost: 5 },
|
|
|
|
|
{ label: '$log', type: 'keyword', boost: 4 },
|
|
|
|
|
{ label: '$log.break', type: 'keyword', boost: 3 },
|
|
|
|
|
{ label: '$log.trace', type: 'keyword', boost: 2 },
|
|
|
|
|
{ label: '$log.table', type: 'keyword', boost: 1 },
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|