-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply consistent block style to all nested blocks
- Loading branch information
Showing
4 changed files
with
114 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
test/expectations/code_action_resolve/nested_oneline_blocks.exp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"params": { | ||
"kind": "refactor.rewrite", | ||
"title": "Refactor: Switch block style", | ||
"data": { | ||
"range": { | ||
"start": { | ||
"line": 0, | ||
"character": 0 | ||
}, | ||
"end": { | ||
"line": 0, | ||
"character": 74 | ||
} | ||
}, | ||
"uri": "file:///fake" | ||
} | ||
}, | ||
"result": { | ||
"title": "Refactor: Switch block style", | ||
"edit": { | ||
"documentChanges": [ | ||
{ | ||
"textDocument": { | ||
"uri": "file:///fake", | ||
"version": null | ||
}, | ||
"edits": [ | ||
{ | ||
"range": { | ||
"start": { | ||
"line": 0, | ||
"character": 29 | ||
}, | ||
"end": { | ||
"line": 0, | ||
"character": 74 | ||
} | ||
}, | ||
"newText": "do |a|\n nested_call(fourth_call).each do |b|\n \n end\nend" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
method_call(other_call).each { |a| nested_call(fourth_call).each { |b| } } |