mirror of https://github.com/microsoft/vscode.git
TypeScript restrict Comment onEnterRules inside comment body (#251692)
* TypeScript: Restrict Comment onEnterRules cursor inside comment body * TypeScript: Simply Comment onEnterRule * polish --------- Co-authored-by: Aiday Marlen Kyzy <amarlenkyzy@microsoft.com>
This commit is contained in:
parent
846585a0e0
commit
2b7ad1a13f
|
@ -230,12 +230,8 @@
|
||||||
},
|
},
|
||||||
// Add // when pressing enter from inside line comment
|
// Add // when pressing enter from inside line comment
|
||||||
{
|
{
|
||||||
"beforeText": {
|
"beforeText": "(?<!\\\\|\\w:)\/\/\\s*\\S",
|
||||||
"pattern": "(?<!\\\\)(?<!\\w:)\/\/.*"
|
"afterText": "^(?!\\s*$).+",
|
||||||
},
|
|
||||||
"afterText": {
|
|
||||||
"pattern": "^(?!\\s*$).+"
|
|
||||||
},
|
|
||||||
"action": {
|
"action": {
|
||||||
"indent": "none",
|
"indent": "none",
|
||||||
"appendText": "// "
|
"appendText": "// "
|
||||||
|
|
|
@ -248,12 +248,8 @@
|
||||||
},
|
},
|
||||||
// Add // when pressing enter from inside line comment
|
// Add // when pressing enter from inside line comment
|
||||||
{
|
{
|
||||||
"beforeText": {
|
"beforeText": "(?<!\\\\|\\w:)\/\/\\s*\\S",
|
||||||
"pattern": "(?<!\\\\)(?<!\\w:)\/\/.*"
|
"afterText": "^(?!\\s*$).+",
|
||||||
},
|
|
||||||
"afterText": {
|
|
||||||
"pattern": "^(?!\\s*$).+"
|
|
||||||
},
|
|
||||||
"action": {
|
"action": {
|
||||||
"indent": "none",
|
"indent": "none",
|
||||||
"appendText": "// "
|
"appendText": "// "
|
||||||
|
|
Loading…
Reference in New Issue