mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +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",
|
"fix": "prettier **/*.{json,ts} --write && tslint --project . --fix",
|
||||||
"lint": "tslint --project .",
|
"lint": "tslint --project .",
|
||||||
"prettier": "prettier **/*.{json,ts}",
|
"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": {
|
"prettier": {
|
||||||
"tabWidth": 4,
|
"tabWidth": 4,
|
||||||
|
@ -46,6 +46,9 @@ export async function handle(change: SourceChange) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
editor.selection = new vscode.Selection(position, position);
|
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…
x
Reference in New Issue
Block a user