Skip to content

Support solution style tsconfig.json files #2612

@sapphi-red

Description

@sapphi-red

Description

solution style tsconfig.json files allows to apply different typescript settings to different directories. #2463 added support for project references, but it seems it doesn't work with solution style tsconfig.json files.

Proposed solution

Support solution style tsconfig.json files

Alternatives

No response

Additional Information, eg. Screenshots

Reproduction

  1. Open https://stackblitz.com/edit/vitejs-vite-7tpf5x?terminal=dev
  2. Download it from here image
  3. Open that directory in VSCode with Svelte extension enabled
  4. Open vite.config.ts
  5. Open tsconfig.json
  6. See the errors (Referenced project 'tsconfig.app.json' must have setting "composite": true., Referenced project 'tsconfig.app.json' may not disable emit.) happening
  7. Disable Svelte extension and close all files and reload window
  8. Open vite.config.ts
  9. Open tsconfig.json
  10. No errors happen

1.-3. (same with above)
4. Open src/App.svelte
5. See Cannot find module './assets/svelte.svg' or its corresponding type declarations. shown (I guess tsconfig.app.json is not used)

System Info

VSCode Information
Version: 1.95.3
Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
Date: 2024-11-13T14:50:04.152Z
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.95.3 Chrome/128.0.6613.186 Electron/32.2.1 Safari/537.36

Svelte Extension
v109.3.2

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy