Files
oak-gpui/crates
Smit Barmase 0355b9dfab editor: Fix line comments not extending when adding new line immediately after slash (#30824)
This PR fixes a bug where comments don't extend when cursor is right
next to the second slash. We added `// ` as a prefix character to
correctly position the cursor after a new line, but this broke comment
validation by including that trailing space, which it shouldn't.

Now both line comments and block comments (already handled in JSDoc PR)
can extend right after the prefix without needing an additional space.

Before:


https://github.com/user-attachments/assets/ca4d4c1b-b9b9-4f1b-b47a-56ae35776f41

After:


https://github.com/user-attachments/assets/b3408e1e-3efe-4787-ba68-d33cd2ea8563

Release Notes:

- Fixed issue where comments weren't extending when adding new line
immediately after comment prefix (`//`).
2025-05-16 19:11:37 +05:30
..
2025-05-15 22:28:52 +00:00
2025-05-14 18:29:28 +02:00
2025-05-14 18:29:28 +02:00
2025-05-07 23:11:09 +03:00
2025-04-23 20:54:09 +00:00
2025-05-07 15:37:06 +00:00
2025-05-15 22:28:52 +00:00
2025-05-14 18:29:28 +02:00
2025-05-15 22:28:52 +00:00
2025-05-15 22:28:52 +00:00
2025-05-15 22:28:52 +00:00
2025-05-14 18:29:28 +02:00
2025-05-15 22:28:52 +00:00
2025-05-14 18:29:28 +02:00
2025-05-14 18:29:28 +02:00
2025-05-01 19:24:14 +00:00
2025-05-14 18:29:28 +02:00