Commit Graph
100 Commits
Author SHA1 Message Date
Arthur Ozga 8c88ce712b update baselines 2018-03-29 16:11:17 -07:00
Arthur Ozga 95a69cbeb4 Merge branch 'master' into dev/aozgaa/cSharpObjLiteralFormatting 2018-03-29 16:10:33 -07:00
Arthur Ozga 5fb5ff7bf3 add option for object literal indent 2018-03-29 15:40:23 -07:00
Arthur Ozga 1ced600efe pass in sourceFile and revert child to TextRangeOfKind 2018-03-26 17:53:50 -07:00
Arthur Ozga 6786d7473d fix test 2018-03-26 16:53:20 -07:00
Arthur Ozga b86b923aef Merge branch 'master' into dev/aozgaa/cSharpObjLiteralFormatting 2018-03-26 16:45:19 -07:00
Arthur Ozga d41070a966 more tests 2018-03-26 16:37:55 -07:00
Arthur Ozga 1ea2a52b69 test synthesized object literal formatting 2018-03-23 15:54:01 -07:00
Arthur Ozga 3fc480c0bd cSharp-style formatting for multi-line object literals 2018-03-23 15:38:03 -07:00
Arthur Ozga fcc822e879 test version request 2017-12-06 14:19:08 -08:00
Arthur Ozga 03e93d832e Merge branch 'master' into dev/aozgaa/tsserverVersion 2017-12-06 14:02:30 -08:00
Arthur Ozga 0e75c5cc2f update descriptions 2017-12-06 14:02:04 -08:00
Arthur Ozga e01c0be8e5 prefix top-level describe clauses in tsserverProjectSystem 2017-11-29 14:36:19 -08:00
Arthur Ozga b76ab59666 Merge branch 'master' into dev/aozgaa/tsserverProjectTestOrganization 2017-11-29 14:30:55 -08:00
Arthur Ozga 5dc8708261 revert 0a6a568d and 0e4b8196 2017-11-29 14:29:42 -08:00
Arthur Ozga 0a6a568d01 reindent 2017-11-27 15:14:55 -08:00
Arthur Ozga 0e4b8196f3 enable running all tsserverProjectSystem tests 2017-11-27 15:14:40 -08:00
Arthur Ozga d2cc4f15be test overriding Session.event 2017-11-17 19:48:57 -08:00
Arthur Ozga 890820b528 cleanup NodeTypingsInstaller 2017-11-16 19:19:05 -08:00
Arthur Ozga 8b0d3ab318 remove comments 2017-11-16 19:10:38 -08:00
Arthur Ozga c098a5cf83 type event callback correctly 2017-11-16 19:06:08 -08:00
Arthur Ozga cda486ad85 update baselines 2017-11-16 18:27:30 -08:00
Arthur Ozga 49d92d844b defer callback and remove handler object 2017-11-16 18:15:39 -08:00
Arthur Ozga 5c2fea4d4e make eventSender required for TypingsInstaller 2017-11-15 19:49:34 -08:00
Arthur Ozga 1fc1133377 baseline accept 2017-11-15 19:39:26 -08:00
Arthur Ozga a7822c550d expose just eventSender 2017-11-15 19:39:02 -08:00
Arthur Ozga d6c3a15ea6 Move event into IoSession 2017-11-15 18:51:25 -08:00
Arthur Ozga 005c86340f move socketSender to IOSession 2017-11-15 13:12:48 -08:00
Arthur Ozga 93ff7ba2c5 lint more 2017-11-14 22:27:01 -08:00
Arthur Ozga 930be75e0c lint 2017-11-14 18:14:15 -08:00
Arthur Ozga 6a910919ac use arrow to capture this 2017-11-14 18:09:32 -08:00
Arthur Ozga 0d3002c5f0 accept baselines 2017-11-08 22:17:05 -08:00
Arthur Ozga 23da1cf822 send all events through common stream 2017-11-08 21:59:44 -08:00
Arthur Ozga 5f3d6e753e update baselines 2017-10-09 14:43:51 -07:00
Arthur Ozga 932b1b038c better error message 2017-10-06 16:16:37 -07:00
Arthur Ozga 0afaadba3b add error for multiple tags 2017-10-06 15:56:39 -07:00
Arthur Ozga fbf8df66f0 accept baselines 2017-10-06 14:27:32 -07:00
Arthur Ozga 5ea3ca4ef9 Merge branch 'master' into dev/aozgaa/JsDocExtendsSupport 2017-10-06 14:25:31 -07:00
Arthur Ozga b21c46b9b5 support @extends in jsdoc 2017-09-22 16:21:31 -07:00
Arthur Ozga db78d5a587 add error message test 2017-09-21 18:10:45 -07:00
Arthur Ozga 4b464ebca8 add tests
* verified that new tests show no regressions against master
2017-09-19 17:56:34 -07:00
Arthur Ozga e3a720f863 explain changes and remove spurious assignment 2017-09-19 16:30:24 -07:00
Arthur Ozga 262d7bd53b revert method rename 2017-09-19 16:23:45 -07:00
Arthur Ozga 9f815e1974 Merge branch 'master' into fixIifeIndentation 2017-09-19 14:34:02 -07:00
Arthur Ozga e4e969a210 respond to comments 2017-08-17 20:06:46 -07:00
Arthur Ozga e7d2af0d72 remove duplicate verify 2017-08-17 20:06:34 -07:00
Arthur Ozga 1653d6eeaf Merge branch 'master' into fixIifeIndentation 2017-08-16 20:38:34 -07:00
Arthur Ozga bc0c9a440e Merge branch 'master' into formattingAfterParseError 2017-08-16 20:27:06 -07:00
Arthur Ozga 760ef44c36 test if onlyMultiLine flag changes answer 2017-08-16 18:48:27 -07:00
Arthur Ozga 6029b5cce8 cleanup 2017-08-16 18:12:28 -07:00
Arthur Ozga 19e2fa6fc5 Merge branch 'master' into isInMultiLineComment 2017-08-16 17:57:04 -07:00
Arthur Ozga b7bc7d889e clarify JsxText handling 2017-08-16 17:56:20 -07:00
Arthur Ozga 23ca368020 Use simpler indentation for comments
* When in a multi-line comment, we would have liked to use the start of
the comment as a reference point for the indentation inside the comment,
but determining the number of columns shifted for the comment start
woudl require determining the length w/r/t graphemes, which we do not
currently implement. We would like to avoid taking on a runtime
dependency on a grapheme-parsing library.

Instead, we look at the indentation level on the previoud line or start
of the comment as a reference point, and correct shift for lines
starting with an asterisk.
2017-08-16 17:51:29 -07:00
Arthur Ozga 62f16bee55 add tests 2017-08-16 17:36:50 -07:00
Arthur Ozga 4b9f5a0f8f rename tests 2017-08-16 17:36:39 -07:00
Arthur Ozga 70e4f346bb update test 2017-08-16 17:35:14 -07:00
Arthur Ozga 153b94aeb4 JsxText has no leading comments 2017-08-16 15:28:47 -07:00
Arthur Ozga ad9c29b928 add test 2017-08-15 12:44:21 -07:00
Arthur Ozga a08d18af57 consolidate isInComment and getRangeOfEnclosingComment 2017-08-15 12:09:43 -07:00
Arthur Ozga a209db7bb6 dont compute preceding token twice 2017-08-15 12:09:02 -07:00
Arthur Ozga f3e0cbbd52 findPrecedingToken handles EOF child more gracefully 2017-08-15 12:09:02 -07:00
Arthur Ozga 472ad9d313 findPrevious changes 2017-08-15 12:08:00 -07:00
Arthur Ozga b2188ad66c cleanup 2017-08-15 12:08:00 -07:00
Arthur Ozga de92e98770 fix end-of-file assert failure 2017-08-10 10:01:42 -07:00
Arthur Ozga 7c402d509d Merge branch 'master' into isInMultiLineComment 2017-08-09 10:49:12 -07:00
Arthur Ozga 2f5b1d3e18 Merge branch 'master' into isInMultiLineComment 2017-08-07 15:58:46 -07:00
Arthur Ozga 091376f46f supressFormatOnKeyInComments 2017-08-07 15:45:56 -07:00
Arthur Ozga dc08c5f241 Merge branch 'master' into caretPositionInFourslash 2017-07-06 10:44:59 -07:00
Arthur Ozga 86894f3a6f i++ 2017-07-05 14:26:59 -07:00
Arthur Ozga a200aa9329 non-default args 2017-07-05 12:54:42 -07:00
Arthur Ozga 2857bb9703 remove fixCaretPosition 2017-07-05 12:47:32 -07:00
Arthur Ozga b5e069816d consolidate function call 2017-06-30 19:50:09 -07:00
Arthur Ozga d661622e19 update tests 2017-06-30 19:41:09 -07:00
Arthur Ozga 5652b0677e update caret position based on edit range 2017-06-30 19:40:56 -07:00
Arthur Ozga 25abf8a9e8 respond ot comments 2017-06-29 17:31:41 -07:00
Arthur Ozga 60b78c618f only format open curly up to the open curly 2017-06-29 11:13:44 -07:00
Arthur Ozga eae234cab2 disable spaceBeforeOpenCurly if newline rule is enabled 2017-06-28 13:13:53 -07:00
Arthur Ozga a5c8a29fa4 only format opencurly if no intervening tokens 2017-06-28 12:48:14 -07:00
Arthur Ozga 1251668342 rename variables 2017-06-22 10:32:04 -07:00
Arthur Ozga 902d0f5018 cleanup 2017-06-21 17:04:39 -07:00
Arthur Ozga d1423739cd add test 2017-06-21 15:05:15 -07:00
Arthur Ozga 0bd3d8c2eb unspoof call expression start in iife 2017-06-21 15:03:20 -07:00
Arthur Ozga 0df66a5e6d format space before single-line blocks 2017-06-20 11:52:03 -07:00
Arthur Ozga 70bace78a0 respond to comments 2017-06-12 15:36:34 -07:00
Arthur Ozga cc880915d5 fix offsetting and tests 2017-06-09 21:19:29 -07:00
Arthur Ozga 798db1e884 Suppress brace completion of Quotes in Comments 2017-06-09 21:10:01 -07:00
Arthur Ozga 8fc3fd9a20 request returns span 2017-06-09 18:02:42 -07:00
Arthur Ozga b02963b238 make indent work with trailing comments 2017-06-09 14:43:28 -07:00
Arthur Ozga a6e8cd7bcb rename tests 2017-06-08 19:22:29 -07:00
Arthur Ozga 8a3aaefff4 add tests 2017-06-08 19:00:08 -07:00
Arthur Ozga ab8e0d53d0 revert test changes 2017-06-08 18:59:30 -07:00
Arthur Ozga b9885eed5a Only add underscore in
* for-in
* for-of
* parameters
2017-06-08 18:43:02 -07:00
Arthur Ozga 8f28a0264f indent block comments according to first line 2017-06-08 17:15:47 -07:00
Arthur Ozga a819e4ed17 isInMultiLineComment 2017-06-07 16:43:13 -07:00
Arthur Ozga 6b4cd0bd03 Merge branch 'isInMultiLineComment' of https://github.com/aozgaa/TypeScript into isInMultiLineComment 2017-06-07 14:35:45 -07:00
Arthur Ozga 35b16ab7a8 temp 2017-06-07 14:01:42 -07:00
Arthur Ozga 7282b9f0ce make internal 2017-05-03 14:12:24 -07:00
Arthur Ozga 0b68b934ef respond to comments 2017-05-03 13:30:53 -07:00
Arthur Ozga 5eff8c206b revert core changes 2017-05-03 13:29:24 -07:00
Arthur Ozga d38ee1eaf7 restore startsWith 2017-05-03 13:26:24 -07:00