microsoft / microsoft/vscode

Extra */ inserted on typing /** */

Open
#329,704 1 comment 0 reactions 1 assignee Claimed by @aiday-mar View on GitHub
bug editor-autoclosing
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Does this issue occur when all extensions are disabled?: Yes/No

- VS Code Version: 1.132.0
- OS Version: Sonoma 14.0 (23A344)

Steps to Reproduce:

1. Type `/* */`
2. Place cursor at the very beginning of the comment (before `/*`)
3. Type * to create `/** */`

**Actual**
```
/** */ */
```

https://github.com/user-attachments/assets/cfb63777-bcae-41f4-a988-ec11000560e4

**Expected**
```
/** */
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.