Skip to content

Add Svelte indexing support - #472

Open
eseliger wants to merge 5 commits into
local-symbol-informationfrom
svelte-indexing
Open

Add Svelte indexing support#472
eseliger wants to merge 5 commits into
local-symbol-informationfrom
svelte-indexing

Conversation

@eseliger

@eseliger eseliger commented Aug 22, 2026

Copy link
Copy Markdown
Member

This PR implements basic support for indexing Svelte projects with this indexer as well. It uses svelte2tsx and maps SCIP symbols and ranges back to the original .svelte source files via the source maps.

Verified against the Sourcegraph webapp, everything passes.

See the included snapshots for some example data.

This is likely not 100% perfect, but it's a solid start that we can build on more (just like scip-typescript itself).

@eseliger eseliger changed the title svelte indexing Add Svelte indexing support Aug 22, 2026
@eseliger
eseliger changed the base branch from modernize-dependencies to symbol-kinds August 22, 2026 20:32
@eseliger
eseliger changed the base branch from symbol-kinds to document-language August 22, 2026 20:52
@eseliger
eseliger force-pushed the svelte-indexing branch 2 times, most recently from 251d9b2 to 35d6f32 Compare August 22, 2026 21:08
@eseliger
eseliger changed the base branch from document-language to shorthand-properties August 22, 2026 21:08
@eseliger
eseliger changed the base branch from shorthand-properties to prototype-members August 22, 2026 21:34
@eseliger
eseliger changed the base branch from prototype-members to deduplicate-documents August 22, 2026 22:07
@eseliger
eseliger changed the base branch from deduplicate-documents to internal-symbol-information August 22, 2026 22:39
@eseliger
eseliger changed the base branch from internal-symbol-information to relationship-symbol-information August 22, 2026 22:57
@eseliger
eseliger changed the base branch from relationship-symbol-information to local-symbol-information August 22, 2026 23:20
@eseliger
eseliger marked this pull request as ready for review August 23, 2026 00:33
Transform Svelte components with svelte2tsx while mapping symbols and ranges back to the original source.

Cover runes, legacy and JavaScript components, imported stores, malformed files, modern module resolution, and cross-project prop identity.

Amp-Thread-ID: https://ampcode.com/threads/T-01a029e2-5095-710a-9cce-0c6d8645c173
Limit direct import-alias resolution to generated Svelte sources and imports from .svelte modules so ordinary TypeScript indexes remain byte-for-byte unchanged.

Amp-Thread-ID: https://ampcode.com/threads/T-01a029e2-5095-710a-9cce-0c6d8645c173
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant