Commit Graph

22935 Commits

Author SHA1 Message Date
csigs
d7d220d16a LEGO: Merge pull request 23748
LEGO: Merge pull request 23748
2018-04-27 15:11:23 -07:00
csigs
5756c34457 LEGO: check in for master to temporary branch. 2018-04-27 22:11:01 +00:00
Nathan Shively-Sanders
3631af6486 Remove readonly from object rest properties (#23746)
* Remove readonly from object rest properties

Works the same as removing it from object spread properties

* Fix bug number in test
2018-04-27 14:54:59 -07:00
Wesley Wigham
d5ef1174bd Copy consistient valueDeclarations on union/intersection symbols (#23190) 2018-04-27 13:12:35 -07:00
Anders Hejlsberg
d25a6ec9ad Remove redundant primitive types from intersections with literal types 2018-04-27 10:40:16 -07:00
Andy
bcb5599bf2 Fix typo (#23725) 2018-04-26 16:18:47 -07:00
Nathan Shively-Sanders
1595f7fe83 Add prettier user test and fix associated crash (#23715)
* Add prettier and fix crash bug

Name resolution would crash when resolving a type name inside a
typedef's property tag.

* Update tsconfig and thefore prettier baseline
2018-04-26 14:03:18 -07:00
Alexander T
f04a18ae5b Add tests 2018-04-26 20:18:24 +03:00
Nathan Shively-Sanders
1541599ea0 Check base type for special property declarations (#23671)
If the base type has a property by that name, add it to the list
constructor types to make it as authoritative as special assignments
found in the constructor.
2018-04-26 08:14:22 -07:00
Andy
aa102435b3 Fix insertNodeAtClassStart for empty class with comment (#23342) 2018-04-26 08:00:38 -07:00
Daniel Rosenwasser
9672116d8c Merge remote-tracking branch 'origin/master' into importDotMeta 2018-04-25 22:21:56 -07:00
csigs
76e7d91a26 LEGO: Merge pull request 23699
LEGO: Merge pull request 23699
2018-04-25 21:10:40 -07:00
csigs
096f65c05d LEGO: check in for master to temporary branch. 2018-04-26 04:10:18 +00:00
Ken703
d9bc436788 Auto format: no space between closing parenthesis and string template 2018-04-25 21:10:35 -04:00
Andy
cdfd92b90d Don't add import completion from a re-export in "./index" (#23623)
* Don't add import completion from a re-export in "./index"

* Simpler heuristic
2018-04-25 16:15:49 -07:00
Andy
4a379d66d4 Use @types/travis-fold (#23694) 2018-04-25 16:15:06 -07:00
Wesley Wigham
4a6888a850 There exist type parameters with symbols but without TypeParameterDeclaration nodes (#23690)
* There exist type parameters with symbols but without TypeParameterDeclaration nodes

* Add test
2018-04-25 15:53:06 -07:00
Andy
4dc4b8d777 Remove unused property 'referencedDiagnostics' (#23688) 2018-04-25 15:24:36 -07:00
Nathan Shively-Sanders
b2bfccfce4 Prototype-property assignment:fix name resolution crash (#23680) 2018-04-25 13:59:40 -07:00
Andy
9b05bd5cd7 Remove unnecessary check for ElementAccessExpression#argumentExpression being defined (#23685) 2018-04-25 13:30:34 -07:00
Andy
3ebcbd4d44 Handle diagnostic with unknown file (#23681) 2018-04-25 13:11:35 -07:00
Wesley Wigham
ec05f29632 Make signature help node building cancellable (#23543)
* Make token building cancellable

* Scope cancellation token, make find all refs and quickinfo cancellable

* Make completion entry details cancellable

* Actually accept public API update

* Add test verifying cancellations within checker for select language service operations

* Document runWithCancellationToken a bit more

* Add post-cancellation verification to test
2018-04-25 11:44:13 -07:00
Anders Hejlsberg
bbcb1bb25a Accept new baselines 2018-04-25 11:03:39 -07:00
Anders Hejlsberg
8442a45bb6 Add additional tests 2018-04-25 11:03:25 -07:00
Anders Hejlsberg
8a7c2031fd Accept new baselines 2018-04-25 10:58:20 -07:00
Anders Hejlsberg
3707f7dfbe Handle more situations involving combined constraints of intersections 2018-04-25 10:58:08 -07:00
Andy
583bcea603 Always parse an argument for an ElementAccessExpression (#23683) 2018-04-25 10:08:35 -07:00
Andy
5280d23b63 importNameCodeFix: consistently put fixes to use existing imports before fixes for existing imports (#23663) 2018-04-25 08:04:20 -07:00
csigs
1f59e6f77a LEGO: Merge pull request 23674
LEGO: Merge pull request 23674
2018-04-24 21:10:41 -07:00
csigs
16c24bd57c LEGO: check in for master to temporary branch. 2018-04-25 04:10:19 +00:00
Anders Hejlsberg
b78054d9c3 Accept new baselines 2018-04-24 15:57:26 -07:00
Anders Hejlsberg
50c7ff79d0 Add tests 2018-04-24 15:57:17 -07:00
Anders Hejlsberg
e091e350bb Accept new baselines 2018-04-24 15:56:46 -07:00
Anders Hejlsberg
d90d6b9277 Remove more intersections with empty value domains from union types 2018-04-24 15:55:15 -07:00
csigs
f7a0e0cb42 LEGO: Merge pull request 23668
LEGO: Merge pull request 23668
2018-04-24 15:11:36 -07:00
csigs
dfbc842164 LEGO: check in for master to temporary branch. 2018-04-24 22:11:15 +00:00
Anders Hejlsberg
ef8d5094b4 Properly check relationships for intersections with union constraints 2018-04-24 14:57:27 -07:00
Daniel Rosenwasser
28f8d7532f Accepted baselines. 2018-04-24 12:39:41 -07:00
Daniel Rosenwasser
a55febda77 Make 'ImportMeta' more minimal. 2018-04-24 12:38:42 -07:00
Sheetal Nandi
d6dfd9a217 Do not remove inferred project immediately and try to reuse it on next file open 2018-04-24 11:53:36 -07:00
Sheetal Nandi
616458261c Detach the removed typing files from the project 2018-04-24 11:53:36 -07:00
Sheetal Nandi
13d993b954 Helper for getting string comparer 2018-04-24 11:53:36 -07:00
Sheetal Nandi
4b19d12e0e Rearrange code such that project Root path of open file is always used in watching and removing the config file watches 2018-04-24 11:53:35 -07:00
Alexader
a20e59cae4 Add warn that user can not use --strictPropertyInitialization without --strictNullChecks 2018-04-24 21:48:46 +03:00
Sheetal Nandi
ce5d5d8f72 Merge pull request #23636 from Microsoft/getErrWithInferredProject
Fix the crash when reporting errors of file that was referenced by inferred project root, is opened right after closing the root file
2018-04-24 11:33:29 -07:00
Anders Hejlsberg
ad4f83a281 Merge branch 'master' into fixIndexTypeTargetConstraint
# Conflicts:
#	tests/baselines/reference/keyofAndIndexedAccess.js
#	tests/baselines/reference/keyofAndIndexedAccess.symbols
#	tests/baselines/reference/keyofAndIndexedAccess.types
#	tests/cases/conformance/types/keyof/keyofAndIndexedAccess.ts
2018-04-24 11:08:08 -07:00
Anders Hejlsberg
5d67f8ef68 Merge pull request #23645 from Microsoft/distributeKeyofUnion2
Distribute 'keyof' union types (take 2)
2018-04-24 10:09:45 -07:00
Anders Hejlsberg
08c288d4f9 Accept new baselines 2018-04-24 10:02:54 -07:00
Anders Hejlsberg
57ef618120 Add regression test 2018-04-24 10:02:47 -07:00
Anders Hejlsberg
e71afc32ad Reinstate type simplification for 'keyof T[K]' as target in relation 2018-04-24 10:02:34 -07:00