diff --git a/apps/svelte.dev/content/tutorial/01-svelte/03-props/03-spread-props/index.md b/apps/svelte.dev/content/tutorial/01-svelte/03-props/03-spread-props/index.md index 37ab21c61..adfcaacb6 100644 --- a/apps/svelte.dev/content/tutorial/01-svelte/03-props/03-spread-props/index.md +++ b/apps/svelte.dev/content/tutorial/01-svelte/03-props/03-spread-props/index.md @@ -38,5 +38,5 @@ We _could_ fix it by adding the prop... > ...in which case you can access the properties by their object paths: > > ```js -> console.log(stuff.name, stuff.version, stuff.description, stuff.website) +> console.log(stuff.name, stuff.version, stuff.description, stuff.website); > ``` diff --git a/packages/site-kit/src/lib/codemirror/autocompletionDataProvider.js b/packages/site-kit/src/lib/codemirror/autocompletionDataProvider.js index 8cf10cea4..3954def5d 100644 --- a/packages/site-kit/src/lib/codemirror/autocompletionDataProvider.js +++ b/packages/site-kit/src/lib/codemirror/autocompletionDataProvider.js @@ -493,7 +493,7 @@ const is_state = (node) => { /** * Returns `true` if we're already in a valid call expression, e.g. - * changing an existing `$state()` to `$state.frozen()` + * changing an existing `$state()` to `$state.raw()` * @type {import("./types").Test} */ const is_state_call = (node) => { @@ -583,8 +583,8 @@ export const runes = [ { snippet: '$derived.by', test: is_state_call }, { snippet: '$effect(() => {\n\t${}\n});', test: is_statement }, { snippet: '$effect.pre(() => {\n\t${}\n});', test: is_statement }, - { snippet: '$state.frozen(${});', test: is_state }, - { snippet: '$state.frozen', test: is_state_call }, + { snippet: '$state.raw(${});', test: is_state }, + { snippet: '$state.raw', test: is_state_call }, { snippet: '$bindable()', test: is_bindable }, { snippet: '$effect.root(() => {\n\t${}\n})' }, { snippet: '$state.snapshot(${})' },