Skip to content

Commit

Permalink
typo fix in DisagnosticsProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmuckley committed Aug 19, 2024
1 parent 719f17b commit 39f08a1
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 @@ -211,11 +211,11 @@ function moveBindingErrorMessage(
);
diagnostic.message =
"Cannot use 'bind:' with this property. It is declared as non-bindable inside the component.\n" +
`To mark a property as bindable: 'let { ${propName} = $bindable() = $props()'`;
`To mark a property as bindable: 'let { ${propName} = $bindable() } = $props()'`;
} else {
diagnostic.message =
"Cannot use 'bind:' with this property. It is declared as non-bindable inside the component.\n" +
`To mark a property as bindable: 'let { prop = $bindable() = $props()'\n\n` +
`To mark a property as bindable: 'let { prop = $bindable() } = $props()'\n\n` +
diagnostic.message;
}
diagnostic.range = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"code": 2322,
"message": "Cannot use 'bind:' with this property. It is declared as non-bindable inside the component.\nTo mark a property as bindable: 'let { readonly = $bindable() = $props()'",
"message": "Cannot use 'bind:' with this property. It is declared as non-bindable inside the component.\nTo mark a property as bindable: 'let { readonly = $bindable() } = $props()'",
"range": {
"end": {
"character": 20,
Expand Down Expand Up @@ -35,7 +35,7 @@
},
{
"code": 2322,
"message": "Cannot use 'bind:' with this property. It is declared as non-bindable inside the component.\nTo mark a property as bindable: 'let { only_bind = $bindable() = $props()'",
"message": "Cannot use 'bind:' with this property. It is declared as non-bindable inside the component.\nTo mark a property as bindable: 'let { only_bind = $bindable() } = $props()'",
"range": {
"end": {
"character": 21,
Expand Down

0 comments on commit 39f08a1

Please sign in to comment.