Skip to content

Commit

Permalink
Merge pull request #274 from kasecato/#248/formatSelection
Browse files Browse the repository at this point in the history
Fixed #248 that is Reformat selected code is not work
  • Loading branch information
kasecato authored Sep 19, 2022
2 parents 3214b01 + b289463 commit d6e85ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,14 @@
"key": "ctrl+alt+l",
"mac": "cmd+alt+l",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor",
"intellij": "Reformat code"
},
{
"key": "ctrl+alt+l",
"mac": "cmd+alt+l",
"command": "editor.action.formatSelection",
"when": "editorHasDocumentFormattingProvider && editorHasSelection && editorTextFocus && !editorReadonly",
"when": "editorHasDocumentSelectionFormattingProvider && editorTextFocus && !editorReadonly",
"intellij": "Reformat selected code"
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/package-with-comment.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,14 @@
"key": "ctrl+alt+l",
"mac": "cmd+alt+l",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor",
"intellij": "Reformat code"
},
{
"key": "ctrl+alt+l",
"mac": "cmd+alt+l",
"command": "editor.action.formatSelection",
"when": "editorHasDocumentFormattingProvider && editorHasSelection && editorTextFocus && !editorReadonly",
"when": "editorHasDocumentSelectionFormattingProvider && editorTextFocus && !editorReadonly",
"intellij": "Reformat selected code"
},
{
Expand Down

0 comments on commit d6e85ef

Please sign in to comment.