Skip to content

Add support for typescript "Build-Free Editing with Project References" #2262

Closed as not planned
@mamidenn

Description

@mamidenn

Description

In a monorepo with multiple typescript packages the typescript language server can automagically resolve imports between packages directly to the source file (presumably via in-memory transpilation). This means I don't have to build a package every time I change something in it in order to have those changes (at least the typings) reflected in the dependent packages.
Unfortunately this does not work when importing into .svelte files.

This is how it looks when I did not transpile @module-resolution-repro/lib:

ts-lsp
svelte-ts-lsp

Something appears to get lost in translation when the svelte language server uses the typescript language server 😞 .

Proposed solution

Please look into whether it is possible to support this as it would make monorepos with mixed Svelte and typescript packages much more pleasant to work with.

This is specifically not asking to support this for imports of .svelte files (I gather this would be way more involved). "Just" to enable imports of typescript modules into .svelte files to be resolved as the current typescript language server does it when importing into .ts files.

Alternatives

Run tsc -b -w in referenced typescript packages.

Additional Information, eg. Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions