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