sveltejs / sveltejs/svelte.dev

Snippets issues in editor

Open
#614 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted playground (functionality)
Dominant language
Svelte
Stars
330
Forks
278
Avg merge
2d 2h
Merged PRs (30d)
29

Description

Highlighting is broken when using destructuring (same with @render and passing objects):

image

No autocomplete:

image

Doesn't auto-close when typing {/ in open snippet. This is how it works for {#if}, but this doesn't happen for snippets:

image

Severity:

mild at best, focus on other stuff first 🙂 great work with the release and the omnisite!
but I felt like in my issue reporting era so yea, put this as deep into the backlog as it can go

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. Reproduce the editor behavior with destructuring, @render object arguments, and an open snippet, then trace the relevant editor handling; done means correct highlighting, autocomplete, and {/} auto-closing for snippets.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.