Skip to content

Property completions broken if editing inside an expression #2622

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

Closed
EdwardBlair opened this issue Dec 8, 2024 · 1 comment
Closed

Property completions broken if editing inside an expression #2622

EdwardBlair opened this issue Dec 8, 2024 · 1 comment
Labels
limitation Constraints of the existing architecture make this hard to fix

Comments

@EdwardBlair
Copy link

EdwardBlair commented Dec 8, 2024

Describe the bug

Might be expected behaviour, intellisense breaks if editing on the lhs of an expression - I haven't tested any further cases.

Reproduction

Create svelte demo app go to a .svelte file which uses ActionData (e.g. src/routes/demo/lucia/login/+page.svelte)
Edit, e.g. {form?.message ?? ''}

  1. Delete `.message
  2. type .,
  3. intellisense is wrong
  4. press esc, press control+space
  5. intellisense is still wrong.

Incorrect:
image

One way to make it work is delete the rest of the expression.

image

Expected behaviour

Shows correct completions

System Info

  • OS: MacOS
  • IDE: VSCode

Which package is the issue about?

Svelte for VS Code extension

Additional Information, eg. Screenshots

No response

@EdwardBlair EdwardBlair added the bug Something isn't working label Dec 8, 2024
@jasonlyu123
Copy link
Member

Duplicate of #1302. This is a limitation of the virtual code generation behind the scene. See #1302 (comment) for the explanation.

@jasonlyu123 jasonlyu123 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 9, 2024
@jasonlyu123 jasonlyu123 added limitation Constraints of the existing architecture make this hard to fix and removed bug Something isn't working labels Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
limitation Constraints of the existing architecture make this hard to fix
Projects
None yet
Development

No branches or pull requests

2 participants