microsoft / microsoft/TypeScript

Opened file added to inferred project instead of configured project

Open
#42,625 4 comments 4 reactions 1 assignee View on GitHub

@rakatyal is already working on this.

Since Aug 10, 2021.

Needs Investigation Rescheduled
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

Bug Report

🔎 Search Terms

inferredproject
inferredproject1

🕗 Version & Regression Information

Observed in 4.1.4 and 3.1.2.

⏯ Playground Link

N/A

💻 Repro steps

Opened project in VS with tsconfig, observed a configured project being created successfully with one TS root file.
Then added another TS file to the project.

🙁 Actual behavior

New TS file was added to the inferred project.

🙂 Expected behavior

New TS file is added to the existing configured project.

Notes:

This issue reproduces inconsistently.

TS 4.1.4 Repro: tsslog-ConfiguredProject-2021_01_29-09_25_06.07_PM_UTC.ProjectHost.log

TS 3.1.2 Repro: tsslog-ConfiguredProject-2021_02_03-02_38_00.40_AM_UTC.ProjectHost.log

Contributor guide

Open the contributing guide

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.