Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{#await p catch e} is not supported in VSCode. #1283

Closed
extremegf opened this issue Dec 15, 2021 · 0 comments
Closed

{#await p catch e} is not supported in VSCode. #1283

extremegf opened this issue Dec 15, 2021 · 0 comments
Labels
bug Something isn't working Fixed Fixed in master branch. Pending production release.

Comments

@extremegf
Copy link

Describe the bug

{#await p catch e}is not supported in VSCode.

To Reproduce

npm init svelte@next my-app # Select defaults
cd my-app
npm install
code .

Create src/lib/Example.svelte

{#await p catch e}
{/await}

Observe failure.

Expected behavior

{#await p catch e} is as valid svelte construct as {#await p then e}. See Svelte Doc

Screenshots
Screenshot from 2021-12-15 14-52-49

System (please complete the following information):

  • OS: Ubuntu 20.04
  • IDE: VSCode
  • Plugin/Package: Svelte for VS Code v105.7.0
@extremegf extremegf added the bug Something isn't working label Dec 15, 2021
dummdidumm added a commit that referenced this issue Dec 17, 2021
#1283
Added in Svelte 3.41

Required some adjustments in completion code because there's a check in Svelte now which errors when someone writes something like on: (: last without a letter afterwards). We should probably try to implement some kind of more forgiving AST traversal mode in Svelte in the long run
@dummdidumm dummdidumm added the Fixed Fixed in master branch. Pending production release. label Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed Fixed in master branch. Pending production release.
Projects
None yet
Development

No branches or pull requests

2 participants