554: Fail Travis on Prettier formatting issues r=matklad a=alanhdu



Co-authored-by: Alan Du <alanhdu@gmail.com>
This commit is contained in:
bors[bot] 2019-01-15 16:27:23 +00:00
commit 05ed6c548a
2 changed files with 5 additions and 2 deletions

View File

@ -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,

View File

@ -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
);
}
}