mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-04 02:54:00 +00:00
Merge #554
554: Fail Travis on Prettier formatting issues r=matklad a=alanhdu Co-authored-by: Alan Du <alanhdu@gmail.com>
This commit is contained in:
commit
05ed6c548a
@ -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,
|
||||
|
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user