-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterThe issue relates to the built-in formatterFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do this
Milestone
Description
TypeScript Version: 2.1.1, 2.0.9, nightly (2.2.0-dev.20161114)
VS Code: 1.8.0 - Insider
Code
// A *self-contained* demonstration of the problem follows...
class C {
// three spaces separate the tokens readonly and property
readonly property = {};
}
Expected behavior:
After applying the format command via VS Code (default shift + alt + f
) the extra whitespace between readonly
and property is removed just as it is with modifiers such as public
, private
, and protected
Actual behavior:
The extra whitespace between readonly
and property
is retained. Note that this does not occur for other modifiers such as public
and only occurs when readonly
is the last modifier (
readonly public
works correctly is correctly a syntax error).
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterThe issue relates to the built-in formatterFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do this