-
-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove unused functions in Trivia.fs. * Add first proof of concept of FormatSelection. * Use mkSynExprNode for toplevel SynExpr nodes. * WIP tree shape * Refactor TriviaNodeAssigner to tree structure. * Find node in selection using tree format. * Remove FileIndex check for rangeContainsRange. * Consider selection range when collecting trivia. * Slowly restoring trivia again via tree structure. * Fix some more unit tests. * Remove SynComponentInfo_ as actual parent node. * Remove SynValData_ as actual parent node. * Use full range for SynField. * Run the final continuation for Sequentials. * Combined get/set members in a single node. * Include leading comments in the file range. * Collect all comments on single line. * Use full range for ModuleOrNamespace. * Print trivia for SynExpr.Const. * Add trivia after last child if nothing fits before. * Restore block comment in PostfixList. * Don't collect blank lines from zero range source code. * Print trivia after infix app in NewlineInfixApp. * Stay within the boundaries of the source text. * Remove old test. * Correct full range of SynExprRecordField. * Use SynExpr_Const for synExprToFsAstType. * Include conditional directives in ParsedInput range. * Remove SynTypeDefnRepr_ObjectModel as node. * Use correct SynModuleOrNamespaceSig_ kinds. * Print trivia for AnonRecordFieldName. * Print trivia before anon record field at right column. * Use parsedData from SynExpr.Lambda in AstTransformer.fs. * Print after trivia for same infix application. * Combine NewlineInfixApps and SameInfixApps under a single parent node. * Add newline when attribute contains comment. * Print trivia for SynPat.Or. * Add children of valSig node to SynMemberSig.Member. * Remove duplicate SynType_Paren. * Duplicate with/and keyword in SynMemberDefn.Member. * Take the smallest possible trivia node for comment after source code. * Print leading newlines when formatting a selection. * Revisit trivia type names. * Clean up Trivia.fs. * Remove SynTypeDefnSigRepr_ObjectModel type. * Use last node inside SynExpr.App to assign trivia after to. * Update to SynAccess range commit from fork. * Print trivia for keyword in union and record declarations. * Take the smallest node after. * Update compiler to "Add arrow to SynType.Fun trivia". * Add trivia after arrow in SynType.Fun. Extend visitLastChildNode. * Add regression tests from dotnet/fsharp. * Trim the selection to the first code positions. Try and format that exact trimmed selection. * Format certain selections in signature files. * Correct typos and introduce signature file for Selection.fs * Reestablish format selection in Daemon. * Don't return option for FormatSelection API, try and be consistent with the FormatDocument. * Add documentation for selection api. * Clean up.
- Loading branch information
Showing
46 changed files
with
3,745 additions
and
2,588 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.