Daniel Rosenwasser
5d648efbb6
Basic groundwork for suggestioning removing non-null assertions.
2018-04-24 12:14:59 -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
Andy
59765e2d86
goToDefinition: Also add definitions for symbol if it does not match the signature symbol ( #23657 )
2018-04-24 09:41:47 -07:00
csigs
ac519804e0
LEGO: Merge pull request 23658
...
LEGO: Merge pull request 23658
2018-04-24 09:10:52 -07:00
csigs
b72abdb120
LEGO: check in for master to temporary branch.
2018-04-24 16:10:31 +00:00
Andy
969aa45ea5
Improve error message for unused type ( #23633 )
2018-04-24 08:54:42 -07:00
Andy
eca17ac243
Support import fix even when the error is that a type is used as a value ( #23655 )
2018-04-24 08:54:14 -07:00
csigs
b1baca565b
LEGO: Merge pull request 23650
...
LEGO: Merge pull request 23650
2018-04-24 03:11:07 -07:00
csigs
0e5ea2c8f6
LEGO: check in for master to temporary branch.
2018-04-24 10:10:45 +00:00
csigs
054a6ff354
LEGO: Merge pull request 23644
...
LEGO: Merge pull request 23644
2018-04-23 21:10:42 -07:00
csigs
90500e88df
LEGO: check in for master to temporary branch.
2018-04-24 04:10:22 +00:00
Anders Hejlsberg
f0c3291976
Accept new baselines
2018-04-23 21:09:56 -07:00
Anders Hejlsberg
7befd35009
Add tests
2018-04-23 21:09:49 -07:00
Anders Hejlsberg
2911d5d7d7
Accept new baselines
2018-04-23 20:57:20 -07:00
Anders Hejlsberg
09590bc041
Transform 'keyof (A | B)' to 'keyof A & keyof B'
2018-04-23 20:57:11 -07:00
Andy
fc30bd10e3
Suggestion to convert to ES6 module should only trigger in projects which express some intent to use ES6 ( #23576 )
2018-04-23 16:05:37 -07:00
Nathan Shively-Sanders
905f9a02ad
module.exports = Entity is an alias, just like export = Entity (#23570 )
...
* Make `module.export =` an alias like `export=` is
This breaks a couple of tests for previous workarounds. Fix in upcoming
commits.
* Basically fixes all the breaks, but needs cleanup
* More notes to myself
* Clean up TODOs
* Call mergeSymbolTable and delete export= afterward
instead of basically copying the code myself.
* More cleanup
* Remove unnecessary check in import type checking
* Revert to DIY code.
It is more correct and will go away in a few days.
* Exported class expressions can be used as type
In both JS and TS
* Do not require named class expressions
2018-04-23 15:24:31 -07:00
csigs
ef8af93329
LEGO: Merge pull request 23635
...
LEGO: Merge pull request 23635
2018-04-23 15:11:08 -07:00
csigs
1f753b3962
LEGO: check in for master to temporary branch.
2018-04-23 22:10:46 +00:00
Andy
222f35d927
Make symbol display at ExportSpecifier use 'export', not 'import' ( #23629 )
2018-04-23 13:29:14 -07:00
Anders Hejlsberg
0179d97403
Merge pull request #23592 from Microsoft/improveIndexTypes
...
Support number and symbol named properties with keyof and mapped types
2018-04-23 13:22:56 -07:00
Andy
645258cc7d
Allow getting import completion details with misspelled name ( #23624 )
2018-04-23 11:24:51 -07:00
Andy
2e78d1ef21
getEditsForFileRename: Update tsconfig "files" ( #23625 )
2018-04-23 11:11:06 -07:00
Wesley Wigham
eb112ab492
Deduplicate declarations in combined type/value symbols ( #23593 )
2018-04-21 12:50:05 -07:00
Mohamed Hegazy
7f34340dcf
Merge pull request #21476 from Kingwl/concat-string-in-enum-member
...
allow string concat in enum member declaration
2018-04-21 12:42:10 -07:00
Anders Hejlsberg
c7f55be90c
Accept new baselines
2018-04-21 09:32:54 -07:00
Anders Hejlsberg
652e4932f6
Address CR feedback
2018-04-21 09:32:46 -07:00
csigs
2faad97c6c
LEGO: Merge pull request 23604
...
LEGO: Merge pull request 23604
2018-04-21 03:10:53 -07:00
csigs
cb96e3fad5
LEGO: check in for master to temporary branch.
2018-04-21 10:10:32 +00:00
csigs
8b0fd95ae5
LEGO: Merge pull request 23599
...
LEGO: Merge pull request 23599
2018-04-20 21:10:44 -07:00
csigs
5b2f4ac380
LEGO: check in for master to temporary branch.
2018-04-21 04:10:23 +00:00
kingwl
1e1b72892c
accept baseline
2018-04-21 12:06:29 +08:00
csigs
bd84da6a98
LEGO: Merge pull request 23590
...
LEGO: Merge pull request 23590
2018-04-20 15:11:07 -07:00
csigs
ec0e04f853
LEGO: check in for master to temporary branch.
2018-04-20 22:10:46 +00:00
Andy
699ea246ff
Skip arrow functions in checkAndReportErrorForMissingPrefix ( #23584 )
2018-04-20 15:02:18 -07:00
Andy
5c94bef0e1
Add 'renameFile' command to services ( #23573 )
...
* Add 'renameFile' command to services
* renameFile -> getEditsForFileRename
* Support `<reference path>` directives
2018-04-20 13:43:09 -07:00
Nathan Shively-Sanders
e65681a2b7
Fix assert in getjsdochost ( #23575 )
...
* Fix assert in getJSDocHost
* Update public API to add wider type
* Remove now-unnecessary type assertion
2018-04-20 10:41:58 -07:00
Andy
22f2b118b7
Add 'triggerCharacter' option for completions requests ( #23491 )
...
* Add 'triggerCharacter' option for completions requests
* mhegazy code review
* More code review
* Handle '<' in comment
2018-04-20 10:25:58 -07:00
Mohamed Hegazy
2826bc72b8
Merge pull request #23470 from JoshuaKGoldberg/standardized-non-pretty-newlines
...
Adjusted newlines in non-pretty output for consistency
2018-04-20 10:01:03 -07:00
Anders Hejlsberg
b38e42e41e
Accept new baselines
2018-04-20 09:56:07 -07:00
Anders Hejlsberg
eb7bbfb28e
Properties with numeric names have numeric literal types in keyof T
2018-04-20 09:55:59 -07:00
Andy
18c3f5ffa0
Use getFirstConstructorWithBody in one more place, and simplify other class members iteration ( #23567 )
2018-04-20 09:43:38 -07:00
Andy
94cc59ca60
Support getting JSDoc comment starting at a FunctionType node ( #23546 )
...
* Support getting JSDoc comment starting at a FunctionType node
* Move || to end of line
2018-04-20 09:43:20 -07:00
Mohamed Hegazy
c8e4b7ba50
Merge pull request #23566 from ajafff/generator-cfa
...
binder: don't inline control flow of generator function
2018-04-20 09:11:50 -07:00
csigs
8ae065e214
LEGO: Merge pull request 23568
...
LEGO: Merge pull request 23568
2018-04-20 09:10:54 -07:00
csigs
760f8b85ab
LEGO: check in for master to temporary branch.
2018-04-20 16:10:25 +00:00
Klaus Meinhardt
f57ba59a77
resolveEntityName: don't return false ( #23563 )
...
Fixes : #23562
2018-04-20 08:42:29 -07:00
Klaus Meinhardt
8e565fb4a6
avoid generated helpers in baseline
2018-04-20 16:39:37 +02:00
Klaus Meinhardt
4827728b16
binder: don't inline generator function's control flow
...
Fixes : #23565
2018-04-20 16:26:53 +02:00
csigs
9a9d3abe5e
LEGO: Merge pull request 23561
...
LEGO: Merge pull request 23561
2018-04-20 03:10:58 -07:00