VSCode "Format Code" causes tslint failure with (old-school) type assertions #10362
Labels
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
Preceded by https://github.com/Microsoft/vscode-tslint/issues/69 and microsoft/vscode#10296
TypeScript Version: 1.8.0
Code
If I have code like this:
and then "Format Code" in VSCode (alt-shift-F on Mac), I get this:
Expected behavior:
The spacing should not have been changed. (Note: without a specific setting, this causes a failure with tslint.)
Actual behavior:
The space after the old-school/bracket-style type assertion is removed, causing a tslint error.
The text was updated successfully, but these errors were encountered: