microsoft / microsoft/TypeScript
Auto-delete closing tag when opening tag becomes self-closed
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 132
Beschreibung
When I type a paired tag, for example:
```tsx
```
If I then add a slash at the end of the opening tag to make it self-closing:
```tsx
```
The editor leaves the redundant closing tag untouched, resulting in broken/invalid markup.
https://github.com/user-attachments/assets/b4335989-09ba-423c-a79e-3f6a69c0275f
**Expected behavior:**
```tsx
```
https://github.com/user-attachments/assets/b9a5a910-5927-48ff-bbbd-0036d96e03c1
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduce the issue with the TSX example in the report by adding a slash to the opening tag, then trace the editor behavior responsible for paired-tag handling. Done means converting to without leaving the redundant closing tag; add or run a regression test if the relevant test location is found.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 58/100