Skip to content

Commit

Permalink
fix: update all $state.frozen autocomplete sugestions to $state.raw (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiagolino8 authored Nov 26, 2024
1 parent a9367a4 commit d401d8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
> ```
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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(${})' },
Expand Down

0 comments on commit d401d8c

Please sign in to comment.