Microsoft/vscode

[html] completions: better handle unclosed string literals

Open

#273226 opened on Oct 25, 2025

View on GitHub
 (11 comments) (0 reactions) (1 assignee)TypeScript (74,848 stars) (10,221 forks)batch import
bughelp wantedhtmlverification-found

Description

Type: Bug

Given the code

<th><input type="che</th> with the cursor after che, typing ctrl-space and then selecting "checkbox" deletes the text after, leaving just <th><input type="checkbox.

VS Code version: Code 1.105.1 (Universal) (7d842fb85a0275a4a8e4d7e040d2625abbf7f084, 2025-10-14T22:33:36.618Z) OS version: Darwin x64 21.6.0 Modes:

https://github.com/user-attachments/assets/27294571-9868-41d0-96c8-5293796fe331

Contributor guide