GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — List position based formatting by saschanaz · Pull Request #13574 · microsoft/TypeScript Conversation
|
| if ((<TypeReferenceNode>node).typeArguments === list) { | ||
| return SyntaxKind.LessThanToken; | ||
| } | ||
| case SyntaxKind.TypeLiteral: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is this an intended fallthrough?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
No, fixed now.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| */ | ||
| interface DynamicIndentation { | ||
| getIndentationForToken(tokenLine: number, tokenKind: SyntaxKind, container: Node): number; | ||
| getIndentationForToken(tokenLine: number, tokenKind: SyntaxKind, container: Node, suppressDelta: boolean): number; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment for the "suppressDelta" parameter, including examples of when would that be set to true? So it would be easier to read
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I added now 👍
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| consumeTokenAndAdvanceScanner(tokenInfo, parent, parentDynamicIndentation, parent); | ||
|
|
||
| if (indentationOnLastIndentedLine !== Constants.Unknown) { | ||
| indentationOnListStartToken = indentationOnLastIndentedLine; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment here explaining the relationship between indentationOnLastIndentedLine and indentationOnListStartToken? It looks like they are related somehow
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Also added 👍
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Test fails on codeFixClassImplementInterfaceComputedPropertyNameWellKnownSymbols because of a strange NodeArray object with the form |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
BTW I think the fix for codeFixClassImplementInterfaceComputedPropertyNameWellKnownSymbols is out of scope of this PR, a simple workaround may be enough? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
1e4358f to
8971bc7
Compare
... and add explicit delta suppressor for list end tokens
8971bc7 to
cd2acf5
Compare
|
Rebased and squashed for easier review. Sorry for previous mess 😅 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
What is the status of this PR? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I think it's mature enough, time to merge conflicts anyway... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for your contribution. This PR has not been updated in a while and cannot be automatically merged at the time being. For housekeeping purposes we are closing stale PRs. If you'd still like to continue working on this PR, please leave a message and one of the maintainers can reopen it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Andy (Andrewkraft) (@Andy-MS) can you refresh this PR |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note for myself: downgrade to TS 2.4.x, gulp-typescript 3.0.x, and mocha 3.5.x to build this. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Solved by #18284 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Indentation issues on multiline call expressions unexpected chained "then" method indentation formatting problem with an object literal as an inlined result type of a function angle brackets formatting problem fluent api style method chain formatting problem
There was an error while loading. Please reload this page.