Skip to content

Commit 05a489c

Browse files
authored
typo fix in DisagnosticsProvider (#2468)
Co-authored-by: Eric Muckley <[email protected]>
1 parent 719f17b commit 05a489c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/language-server/src/plugins/typescript/features/DiagnosticsProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,11 @@ function moveBindingErrorMessage(
211211
);
212212
diagnostic.message =
213213
"Cannot use 'bind:' with this property. It is declared as non-bindable inside the component.\n" +
214-
`To mark a property as bindable: 'let { ${propName} = $bindable() = $props()'`;
214+
`To mark a property as bindable: 'let { ${propName} = $bindable() } = $props()'`;
215215
} else {
216216
diagnostic.message =
217217
"Cannot use 'bind:' with this property. It is declared as non-bindable inside the component.\n" +
218-
`To mark a property as bindable: 'let { prop = $bindable() = $props()'\n\n` +
218+
`To mark a property as bindable: 'let { prop = $bindable() } = $props()'\n\n` +
219219
diagnostic.message;
220220
}
221221
diagnostic.range = {

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/bindings/expected_svelte_5.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"code": 2322,
4-
"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()'",
4+
"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()'",
55
"range": {
66
"end": {
77
"character": 20,
@@ -35,7 +35,7 @@
3535
},
3636
{
3737
"code": 2322,
38-
"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()'",
38+
"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()'",
3939
"range": {
4040
"end": {
4141
"character": 21,

0 commit comments

Comments
 (0)