mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-16 02:56:37 +01:00
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:
co-authored by
Dmitriy Vasyura
parent
2b604e8b63
commit
05e29316e7
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user