Commit Graph

7701 Commits

Author SHA1 Message Date
Mohamed Hegazy
6f9dc2f976 Merge pull request #23923 from Zzzen/master
Document highlights on async/await keywords should highlight other oc…
2018-05-09 09:51:04 -07:00
Nathan Shively-Sanders
e27fb0651b Fix crash in recursive declared type resolution (#23950)
When one type has a type parameter with a default
2018-05-09 09:25:00 -07:00
Zen
91a15dc609 improve performance 2018-05-09 22:42:44 +08:00
Andy
01ae7f1798 Rename test (#23978) 2018-05-08 15:07:55 -07:00
Andy
5725428f2d fixUnusedIdentifier: Handle destructure with all bindings unused (#23805)
* fixUnusedIdentifier: Handle destructure with all bindings unused

* Add parameters test

* Add test for 'for' loop
2018-05-08 13:33:55 -07:00
Anders Hejlsberg
40e0ab72d2 Merge pull request #23966 from Microsoft/fixIndexedAccessAnyConstraint
Fix indexed access with 'any' constraint
2018-05-08 12:21:00 -07:00
Andy
ccfd3bf603 Handle BindingElement in fixUnusedIdentifier (#23819)
* Handle BindingElement in fixUnusedIdentifier

* Add array destructure tests
2018-05-08 11:23:01 -07:00
Anders Hejlsberg
238177657f Add regression test 2018-05-08 09:42:21 -07:00
Andy
123ae530a7 convertToEs6Module: Replace 'module.exports =' with 'export default' without replacing nodes (#23948) 2018-05-07 15:45:43 -07:00
Andy
a50001c9da Treat 'import("")' as a module reference (#23949) 2018-05-07 15:42:36 -07:00
Sheetal Nandi
8fc4242097 Merge pull request #23915 from Microsoft/jsonCompletions
Suggest json files in completion when resolveJsonModule is set and module resolution is node
2018-05-07 12:53:09 -07:00
Andy
004a558125 Avoid unnecessary newline when inserting node at start of class (#23935) 2018-05-07 12:40:33 -07:00
Andy
2604bb4dd3 Add 'string' ScriptElementKind (#23821) 2018-05-07 12:39:00 -07:00
Mohamed Hegazy
e39e6fc780 Merge pull request #23894 from Microsoft/importOutlining
Add outlining spans for Import declarations
2018-05-07 12:08:11 -07:00
Andy
a05feed839 generateGetAccessorAndSetAccessor: Preserve a parameter property declaration (#23318) 2018-05-07 11:33:00 -07:00
Andy
d6701d3987 Replace verify.rangesReferenceEachOther with verify.singleReferenceGroup (#23933) 2018-05-07 11:06:21 -07:00
Andy
7fa5f70b9a Remove verify.referencesAre, verify.referencesOf, verify.rangesReferenceEachOther (#23900) 2018-05-07 10:08:38 -07:00
Zzzen
34323b69fb Document highlights on async/await keywords should highlight other occurrences in the same body fix #22944 2018-05-06 12:27:10 +08:00
Mohamed Hegazy
64d6b24c87 Code review comments 2018-05-05 13:22:48 -07:00
Mohamed Hegazy
12ed49bada Revert adding named import binding list outlining spans 2018-05-05 12:04:12 -07:00
Sheetal Nandi
e8cd6b1111 Suggest json files in completion when resolveJsonModule is set and module resolution is node
Fixes #23899
2018-05-04 17:10:48 -07:00
Andy
cecad27662 findAllReferences: Treat a nested property in a jsdoc type literal as a definition (#23901)
* findAllReferences: Treat a nested property in a jsdoc type literal as a definition

* Fix lint
2018-05-04 16:58:07 -07:00
Mohamed Hegazy
82381280cf Merge branch 'master' into importOutlining 2018-05-04 15:58:56 -07:00
Wesley Wigham
618da24d6a Look at simplified types when checking distributive conditional constraints (#23884) 2018-05-04 14:35:39 -07:00
Andy
df9e2621d2 Fix find-all-refs for import("mod").Foo where Foo is a typedef (#23881)
* Fix find-all-refs for import("mod").Foo where Foo is a typedef

* Add Debug.assertNever message

* Ensure SemanticMeaning is matched
2018-05-04 13:32:40 -07:00
Sheetal Nandi
5133c70e7e Merge pull request #22167 from Microsoft/requireJson
Resolve the modue names with "modulename.json" to json files when doing node module resolution
2018-05-04 12:42:10 -07:00
Mohamed Hegazy
a59ac8fd33 Update test 2018-05-04 11:29:54 -07:00
Mohamed Hegazy
2d725feb51 Add outlining span for named bindings in import declarations 2018-05-04 11:26:03 -07:00
Mohamed Hegazy
de13cc4692 Merge remote-tracking branch 'origin/master' into importOutlining 2018-05-04 10:40:58 -07:00
Mohamed Hegazy
f1713c92d3 Add outlining spans for import declarations 2018-05-04 10:39:47 -07:00
Mohamed Hegazy
1a320fcd5e Merge pull request #23883 from Microsoft/outliningSpanKind
Fix #22419: Add `kind` field to `OutliningSpan`
2018-05-04 09:16:01 -07:00
Ron Buckton
4c6e93b166 Merge pull request #23878 from Microsoft/vfsBaselines
New vfs baselines follow-up
2018-05-03 16:35:48 -07:00
Mohamed Hegazy
e52efb04f3 Fix #22419: Add kind field to OutliningSpan 2018-05-03 16:28:55 -07:00
Sheetal Nandi
15f9ea3d14 Merge branch 'master' into requireJson 2018-05-03 15:35:54 -07:00
Wesley Wigham
0d7d75ec64 Add formatting rule for import type import keyword and open paren (#23872) 2018-05-03 14:57:01 -07:00
Andy
406ca06e8e Fix bug: JSDocPropertyTag is a declaration (#23876) 2018-05-03 14:19:15 -07:00
Ron Buckton
f67afa098f Unpatch vfs resolver and default lib rename 2018-05-03 14:18:50 -07:00
Andy
38016f9300 Implement feedback on "Improve completions testing" (#23842) 2018-05-03 13:04:08 -07:00
Andy
bad3a44bb2 In insertNodeAfter, handle file with no trailing newline (#23814) 2018-05-03 12:58:42 -07:00
Wesley Wigham
eb80e9a51c node builder should strive to preserve mapped type keyofness (#23815) 2018-05-03 12:38:31 -07:00
Wesley Wigham
23b9a23455 Ensure properties with computed names are visited (#23787) 2018-05-03 11:21:29 -07:00
Wesley Wigham
19a985eb24 Dont consider global augmentation top-level members as having the export modifier (#23846)
* Dont consider global argumentation top-level members as having the export modifier

* Remove unneeded test parts from repro
2018-05-03 11:21:11 -07:00
Wesley Wigham
b467cd8a99 Move property errors to the name for the error span (#23865) 2018-05-03 10:55:44 -07:00
Wesley Wigham
41182c2f0b Stop using circularity-unchecked-caching (#23808)
* Stop using circularity-unchecked-caching

* Add comment
2018-05-03 10:44:17 -07:00
Ron Buckton
56648ad0f1 Merge pull request #20763 from Microsoft/vfs
Update harness to use single robust virtual file system for tests.
2018-05-03 10:25:20 -07:00
Andy
724e656acb Don't show a definition at a 'require' call (#23822) 2018-05-03 08:02:56 -07:00
Wesley Wigham
9c40d276ab Downlevel destructuring in module transformer if destructured variable has multiple names (#23832)
* Downlevel destructuring in module transformer if destructured variable has multiple names

* Alter indentation
2018-05-02 16:20:47 -07:00
Wesley Wigham
b5b7fc4f1d Flag default imports with named imports as needing importStar (#23795)
* Flag default imports with named imports as needing importStar

* Restructure helpers a bit, add double-default testcase
2018-05-02 16:20:34 -07:00
Andy
306418e171 fixAddMissingMember: Add a new PropertyDeclaration at the end of the first set (#23837) 2018-05-02 15:42:05 -07:00
Ron Buckton
66c11c527a Update completion order in test 2018-05-02 10:51:09 -07:00