aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-01-15 12:10:37 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-01-15 12:10:37 +0000
commit2184f7f14250c888e37cc27475c085515ea63aa4 (patch)
treea8856fbc3179ca3f52f3b8ca00cf481954c6f351
parentf6f2e89e7ac9c4afbda11bade21f902c552fbba2 (diff)
parentcd21f0eadead4129bc2e91434e015c660e02c880 (diff)
Merge #545
545: Reveal the newly added source change in the editor. r=matklad a=kjeremy Fixes #543 Co-authored-by: Jeremy A. Kolb <[email protected]>
-rw-r--r--editors/code/src/commands/apply_source_change.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/editors/code/src/commands/apply_source_change.ts b/editors/code/src/commands/apply_source_change.ts
index 675a534c8..389061e3c 100644
--- a/editors/code/src/commands/apply_source_change.ts
+++ b/editors/code/src/commands/apply_source_change.ts
@@ -46,5 +46,6 @@ export async function handle(change: SourceChange) {
46 return; 46 return;
47 } 47 }
48 editor.selection = new vscode.Selection(position, position); 48 editor.selection = new vscode.Selection(position, position);
49 editor.revealRange(new vscode.Range(position, position), vscode.TextEditorRevealType.Default);
49 } 50 }
50} 51}