Add Svelte indexing support - #472
Open
eseliger wants to merge 5 commits into
Open
Conversation
eseliger
force-pushed
the
svelte-indexing
branch
from
August 22, 2026 20:30
9545980 to
dff3651
Compare
eseliger
force-pushed
the
svelte-indexing
branch
from
August 22, 2026 20:51
dff3651 to
0ab243c
Compare
eseliger
force-pushed
the
svelte-indexing
branch
2 times, most recently
from
August 22, 2026 21:08
251d9b2 to
35d6f32
Compare
eseliger
changed the base branch from
document-language
to
shorthand-properties
August 22, 2026 21:08
eseliger
force-pushed
the
svelte-indexing
branch
from
August 22, 2026 21:33
35d6f32 to
793f62b
Compare
eseliger
changed the base branch from
shorthand-properties
to
prototype-members
August 22, 2026 21:34
eseliger
force-pushed
the
svelte-indexing
branch
from
August 22, 2026 22:07
793f62b to
b2e99a4
Compare
eseliger
changed the base branch from
prototype-members
to
deduplicate-documents
August 22, 2026 22:07
eseliger
force-pushed
the
svelte-indexing
branch
from
August 22, 2026 22:39
b2e99a4 to
ac499ae
Compare
eseliger
changed the base branch from
deduplicate-documents
to
internal-symbol-information
August 22, 2026 22:39
eseliger
force-pushed
the
svelte-indexing
branch
from
August 22, 2026 22:56
ac499ae to
995c4f4
Compare
eseliger
changed the base branch from
internal-symbol-information
to
relationship-symbol-information
August 22, 2026 22:57
eseliger
force-pushed
the
svelte-indexing
branch
from
August 22, 2026 23:20
995c4f4 to
5df6925
Compare
eseliger
changed the base branch from
relationship-symbol-information
to
local-symbol-information
August 22, 2026 23:20
eseliger
force-pushed
the
svelte-indexing
branch
from
August 23, 2026 00:09
5df6925 to
a726db1
Compare
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
eseliger
force-pushed
the
svelte-indexing
branch
from
August 23, 2026 00:50
a726db1 to
ca6eca1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements basic support for indexing Svelte projects with this indexer as well. It uses
svelte2tsxand maps SCIP symbols and ranges back to the original.sveltesource 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).