fix: bug in Restrict continue comment (#322668)

* fix: Restrict continue comment to whitespace separated slashes

* fix: bug introduced in #321230

---------

Co-authored-by: Dmitriy Vasyura <dmitriv@microsoft.com>
This commit is contained in:
RedCMD
2026-07-29 00:47:49 +00:00
committed by GitHub
co-authored by Dmitriy Vasyura
parent 2b604e8b63
commit 05e29316e7
13 changed files with 13 additions and 13 deletions
@@ -242,7 +242,7 @@
},
// Add // when pressing enter from inside line comment
{
"beforeText": "^\\s*//|\\s//\\s",
"beforeText": "^\\s*//\\s*\\S|\\s//\\s+\\S",
"afterText": "^(?!\\s*$)",
"action": {
"indent": "none",