diff --git a/editors/code/package.json b/editors/code/package.json index 026ef6842e..9433bd3d2c 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -24,7 +24,7 @@ "fix": "prettier **/*.{json,ts} --write && tslint --project . --fix", "lint": "tslint --project .", "prettier": "prettier **/*.{json,ts}", - "travis": "npm run compile && npm run lint && npm run prettier --list-different" + "travis": "npm run compile && npm run lint && npm run prettier -- --list-different" }, "prettier": { "tabWidth": 4, diff --git a/editors/code/src/commands/apply_source_change.ts b/editors/code/src/commands/apply_source_change.ts index 389061e3cd..dcd074b8bc 100644 --- a/editors/code/src/commands/apply_source_change.ts +++ b/editors/code/src/commands/apply_source_change.ts @@ -46,6 +46,9 @@ export async function handle(change: SourceChange) { return; } editor.selection = new vscode.Selection(position, position); - editor.revealRange(new vscode.Range(position, position), vscode.TextEditorRevealType.Default); + editor.revealRange( + new vscode.Range(position, position), + vscode.TextEditorRevealType.Default + ); } }