microsoft / microsoft/TypeScript

Tsserver never picks up a new file

Offen
#61,663 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Needs More Info
Vorherrschende Sprache
Go
Sterne
111k
Forks
14.3k
Ø Merge
2 T. 4 Std.
Gemergte PRs (30 T.)
132

Beschreibung

### 🔎 Search Terms

"tsserver does not pick up new files"

### 🕗 Version & Regression Information

This has been an issue for as long as I can remember.

### ⏯ Playground Link

_No response_

### 💻 Code

_No response_

### 🙁 Actual behavior

I have an issue where tsserver (using code-server ide) refuses to pick up a new file in a node_modules for the purpose of intellisense / automatic imports. It picks up every other file in the same project and even the same folder, they all work fine with intellisense and automatic imports, but it will not pick up this one new file. Looking through the logs there is a relevant line for every other file in this project, but not the one I want. Not a single result in 50000 lines of logs if I ctrl+f the file name.

Manually typing in the import statement does work - the file is definitely there and valid and the ide recognizes it and picks up the correct types if I put it in manually.

Also restarting tsserver makes no difference no matter how many times I do it.

### 🙂 Expected behavior

Tsserver should pick up everything in node_modules.

### Additional information about the issue

I just don't even know how to begin to debug this.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Es wird keine Quelldatei, kein Test und kein reproduzierbares Projekt bereitgestellt. Beginne damit, die tsserver-Logs zu untersuchen, während du die neue Datei in node_modules erstellst, und vergleiche sie mit Dateien, die bereits intellisense- und automatic-import-Einträge erhalten. Als erledigt gilt die Aufgabe, wenn die neue Datei entdeckt und für automatische Importe angeboten wird, ohne den Import manuell zu schreiben oder tsserver neu zu starten.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
devtools
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.