csigs
fd96b81130
LEGO: check in for master to temporary branch.
2018-01-07 23:10:50 +00:00
Mohamed Hegazy
902d3b7055
Add release-2.7 to covered branches
2018-01-06 23:11:40 -08:00
csigs
28a818f6ee
LEGO: Merge pull request 21054
...
LEGO: Merge pull request 21054
2018-01-06 21:10:35 -08:00
csigs
c7c88140be
LEGO: check in for master to temporary branch.
2018-01-07 05:10:17 +00:00
Daniel Rosenwasser
1041f09c27
Merge pull request #20941 from mariusschulz/stringCompletionsForIndexedAccessTypes
...
Return string completions for indexed access types
2018-01-06 21:07:00 -08:00
csigs
966fa167f5
LEGO: Merge pull request 21047
...
LEGO: Merge pull request 21047
2018-01-06 03:10:36 -08:00
csigs
0875916afb
LEGO: check in for master to temporary branch.
2018-01-06 11:10:13 +00:00
Andrew Casey
1957dfef8e
Merge pull request #20991 from amcasey/GH18794
...
Refine extends-to-implements code fix
2018-01-05 17:52:22 -08:00
Andrew Casey
4437476856
Merge pull request #21042 from amcasey/cannotFindModule
...
Make fixCannotFindModule return an empty array if there is no code action
2018-01-05 17:51:49 -08:00
Klaus Meinhardt
bc2983def9
API: fix types to undefined union ( #20909 )
2018-01-05 17:36:33 -08:00
Andy
e35585b938
Fix conflict between formatting rules ( #21038 )
2018-01-05 17:33:29 -08:00
Andrew Casey
47aad0b8fd
Switch to block-bodied lambda
2018-01-05 16:12:12 -08:00
Nathan Shively-Sanders
e78ac47208
Merge pull request #20711 from Microsoft/defer-inference-for-recursive-mapped-types
...
Defer inference for homomorphic mapped types
2018-01-05 16:01:26 -08:00
Nathan Shively-Sanders
f8c86552bc
Better name for deferred mapped type:ReverseMapped
2018-01-05 15:44:38 -08:00
Andrew Casey
ded788e560
Slightly simplify getCodeActions
2018-01-05 14:54:59 -08:00
Andrew Casey
8f5a76d48b
Make fixCannotFindModule return an empty array if there is no code action
2018-01-05 14:24:40 -08:00
Andy
c6e4373403
In checkAndAggregateReturnExpressionTypes, treat MethodDeclaration in an object literal same as a FunctionExpression ( #20052 )
...
* In checkAndAggregateReturnExpressionTypes, treat MethodDeclaration in an object literal same as a FunctionExpression
* Add original test case
2018-01-05 12:34:01 -08:00
Benjamin Lichtman
5bd477e441
Merge pull request #20924 from uniqueiniquity/jsxSpreadAttributeFormatting
...
Jsx spread attribute formatting
2018-01-05 10:27:47 -08:00
Marius Schulz
25c5e57091
Return string completions for indexed access types
2018-01-05 18:14:06 +01:00
Andy
f6dc0ad707
Check for unused getter/setter in classes ( #21013 )
...
* Check for unused getter/setter in classes
* Write-only use of setter is still a reference; and don't error on setter if getter exists
2018-01-05 09:10:58 -08:00
Andrew Casey
a961d7aa04
Only replace implements
with a comma if the heritage clauses are sensible
2018-01-04 18:05:58 -08:00
Andrew Casey
afae97ce6e
Refine extends-to-implements code fix
...
1. Retain surrounding trivia when swapping the keyword.
2. Insert commas at the full-starts, rather than starts, of existing
keywords when merging with existing implements clauses.
Fixes #18794
2018-01-04 17:55:12 -08:00
Mohamed Hegazy
4eb633e0d9
Fix version of @types/node to 8.5.5 ( #21019 )
2018-01-04 17:46:09 -08:00
Ron Buckton
ed5e62442f
Merge pull request #20883 from HerringtonDarkholme/relax-type-constraint
...
fix #20018 , allow skip constraint when merging interfaces
2018-01-04 17:09:45 -08:00
Herrington Darkholme
67eabb98bc
fix #20449 , insert space between decorators ( #20491 )
2018-01-04 16:57:27 -08:00
Klaus Meinhardt
7ef541ca1f
findConfigFile can return undefined ( #20556 )
2018-01-04 16:56:29 -08:00
Josh Goldberg
131cf4714c
Allowed trailing commas in type parameter/argument lists ( #20599 )
...
This change is only one source file and one error file... there must be something I'm missing!?
2018-01-04 16:54:51 -08:00
Josh Goldberg
85b32ed221
Added localization instructions to CONTRIBUTING.md ( #20451 )
...
* Added localization instructions to CONTRIBUTING.md
Fixes #20418
* Corrected mention of generated ts file
* Mentioned coding guidelines
2018-01-04 16:52:32 -08:00
uniqueiniquity
624f68a8e1
Simplify marker names
2018-01-04 16:51:19 -08:00
Orta
5865494453
Switch the pretty output to use colons to separate file:line:char so that lines are clickable in terminals ( #20736 )
2018-01-04 16:38:52 -08:00
Matt Bierner
12d5063e4c
Add kindModifier to mark if a completion item is for an optional field ( #20839 )
...
* Add kindModifier to mark if a completion item is for an optional field
For #12458
Adds a new KindModifier for completion items to mark when a property is optional. This can be used by editors to either change the item icon or add a `?` to the item text
* Add method test
* Baseline-accept
2018-01-04 16:36:31 -08:00
benbraou
b36d614b56
bug(esnext): add definition for promise.finally ( #20511 )
...
Fixes #20411
2018-01-04 15:31:59 -08:00
Benjamin Lichtman
96530719ac
Merge pull request #20912 from uniqueiniquity/jsxFragmentFormatting
...
Fix formatting for JSX fragment tags
2018-01-04 15:27:36 -08:00
Matt Bierner
8ed4e666e8
Log TS Server version and process args ( #20847 )
...
* Print TS Server version and args in logs
Fixes #18867
Adds basic logging of the version of tsserver being run and the full command line arguments used to run it
* Don't check log level for logging versions/args
2018-01-04 15:18:41 -08:00
Matt Bierner
3f577b8617
Fix quick info for require template string ( #20851 )
...
* Fix quick info for require template string
Fixes #20850
* Add path completions tests
2018-01-04 15:17:40 -08:00
Nathan Shively-Sanders
0834732cd1
Update fourslash baselines too
2018-01-04 12:53:03 -08:00
Wenlu Wang
2ea5f58d60
quick fix of indexed access type ( #20956 )
2018-01-04 12:45:16 -08:00
Nathan Shively-Sanders
5e7ce21a9e
Print inferred mapped property types as any not {}
...
This makes them compatible in d.ts and slightly less misleading in
services.
2018-01-04 12:34:01 -08:00
Andy
0427d0a72b
Use 'mapDefined' array helper ( #21006 )
2018-01-04 12:25:00 -08:00
Andy
aab5c262c2
Remove unnecessary existence check ( #21005 )
2018-01-04 12:24:41 -08:00
Andy
db82a5604a
Improve find-all-references for redeclared property in a derived interface ( #21002 )
2018-01-04 10:58:14 -08:00
Nathan Shively-Sanders
cc7710c71c
Add fourslash tests and update missed baselines
2018-01-04 10:55:41 -08:00
Martin Hiller
e3a20e7f0a
Do not redefine __asyncValues if it already exists ( #20460 )
...
The emitted declaration for the __asyncValues variable checked for the
global property __asyncIterable instead of its actual declared name
__asyncValues.
Now the __asyncValues variable is not redefined if it is already
present as global variable.
This commit fixes issue #20408 .
2018-01-03 17:18:15 -08:00
Nathan Shively-Sanders
b9fb4cce88
Fix quickinfo display of deferred mapped types
2018-01-03 16:26:23 -08:00
Nathan Shively-Sanders
9aa5443bbc
Fix printing of deferred mapped types' index signatures
2018-01-03 16:10:26 -08:00
Nathan Shively-Sanders
81a601bb49
Test:deferred mapped types
2018-01-03 15:54:43 -08:00
Nathan Shively-Sanders
8616170060
Fix printing of deferred mapped types
...
A deferred mapped type with a source that has an index signature now
prints {} as the type of the index signature. This avoids an infinite
recursion.
2018-01-03 15:49:09 -08:00
Andy
7de8c6bcaa
For export default foo
, use 'foo' for the completion identifier name, not the module name ( #20987 )
2018-01-03 14:56:59 -08:00
Nathan Shively-Sanders
a43adad080
Simplify DeferredMappedType construction
2018-01-03 14:44:34 -08:00
Nathan Shively-Sanders
35244230d5
Add deferred mapped types
...
This allows index signature inference to be inferred as well.
2018-01-03 14:20:14 -08:00