microsoft / microsoft/TypeScript

Services in unopened projects

Open
#25,867 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Effort: Difficult In Discussion Suggestion
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

Some language services, such as findAllReferences, rename, navigateTo, and getEditsForFileRename, as well as refactors like moveToNewFile (which wants to update imports from external references), work best when they know about as many files as possible.
Currently we only keep projects open if at least one file is being viewed in the editor.
When we invoke a service that might need to know about unopened projects, we might consider walking up ancestor directories to look for a base tsconfig.json that references many projects, and opening those.

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.

Research direction

Start with the language services named in the issue and trace how projects are currently kept open only when an editor file is viewed. Then examine ancestor-directory discovery for a base tsconfig.json and define behavior so services and refactors can use relevant unopened projects.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.