Sheetal Nandi
878b7a21ce
Fix incorrect event
2018-10-31 13:05:00 -07:00
Anders Hejlsberg
8e4b90da00
Merge pull request #28234 from Microsoft/genericSpread
...
Generic spread expressions in object literals
2018-10-31 12:52:16 -07:00
Leon Aves
09d5aa698a
Fix broken twitter link in README
...
Was using old hashbang style URL.
2018-10-31 18:05:43 +00:00
TypeScript Bot
6fd6a04f2e
Update user baselines ( #28249 )
2018-10-31 07:25:43 -07:00
bigaru
6b80047a05
Merge pull request #19 from D0nGiovanni/d-lambda-to-fn
...
lambda to fn
2018-10-31 14:33:54 +01:00
Giovanni Heilmann
8bc7f43665
Make conditions more expressive
2018-10-31 14:27:36 +01:00
BigAru
1c74d0eef4
rename testcases
2018-10-31 14:27:36 +01:00
BigAru
0fa2fadeca
add newline
2018-10-31 14:27:36 +01:00
BigAru
d97e07360c
apply feedback from pr
2018-10-31 14:27:36 +01:00
BigAru
595131868f
add testcase and apply feedback from pr
2018-10-31 14:27:36 +01:00
BigAru
649b53c8de
apply feedback from pr
2018-10-31 14:27:36 +01:00
BigAru
3e7dcad726
make guideline compliant
2018-10-31 14:27:36 +01:00
BigAru
6bd26cd2e5
extract creation of funcDeclaration
2018-10-31 14:27:36 +01:00
BigAru
a9cb623795
extract creation of block
2018-10-31 14:27:36 +01:00
BigAru
39c3928e5d
refactor small progress
2018-10-31 14:27:36 +01:00
BigAru
6922f6c4ca
refactor getInfo getAvailableActions
2018-10-31 14:27:36 +01:00
BigAru
152e362175
adapt one test case
2018-10-31 14:27:36 +01:00
BigAru
7c78cd5c6f
fix for tslint error
2018-10-31 14:27:36 +01:00
BigAru
c25726e764
add tests for modifiers
2018-10-31 14:27:36 +01:00
BigAru
62b9fccb98
fix bug modifiers by toNamed
2018-10-31 14:27:36 +01:00
BigAru
d771865894
add tests for ReturnType and available Arrow as FnParam
2018-10-31 14:27:36 +01:00
BigAru
05c44f123e
add tests for ToNamed and available anon
2018-10-31 14:27:36 +01:00
BigAru
cc07d68210
add tests for ToAnon, ToArrow and available arrow
2018-10-31 14:27:36 +01:00
BigAru
e697856a7d
change refactor name
2018-10-31 14:27:36 +01:00
BigAru
367f47e755
fix multi decl bug
2018-10-31 14:27:36 +01:00
BigAru
4c80de9078
add multi vardecl
2018-10-31 14:27:36 +01:00
BigAru
f558f2f6cd
add working getEditsForAction
2018-10-31 14:27:36 +01:00
BigAru
6cfbee7f30
add getAvailableActions
2018-10-31 14:27:36 +01:00
BigAru
8cb019d793
add skeleton
2018-10-31 14:27:36 +01:00
Andy
dce6668070
Change pathCompletions to stringCompletions, move more code there ( #28245 )
2018-10-30 22:01:31 -07:00
Sheetal Nandi
dcdda87258
Merge pull request #28243 from Microsoft/containerOnlyRef
...
Report error requiring references to have composite only if the program is not container only
2018-10-30 21:20:52 -07:00
Sheetal Nandi
305303cc0d
Fix test case for project reference with composite not true
2018-10-30 18:59:25 -07:00
Sheetal Nandi
4606a4b700
Merge pull request #28209 from Microsoft/ignorePathsStartingWithDotInNodeModules
...
Ignore any changes to file or folder that are in node_modules and start with "."
2018-10-30 18:06:00 -07:00
Andy
903e68164e
Redo resolution on ATA when previous resolution was to '.js' file ( #28236 )
...
* Redo resolution on ATA when previous resolution was to '.js' file
* Use a separate test case
2018-10-30 16:39:40 -07:00
Andy
3458360322
Prefer getValidSourceFile over Debug.assertDefined(program.getSourceFile(*)) ( #28242 )
2018-10-30 16:38:52 -07:00
Anders Hejlsberg
1577f9429d
Accept new baselines
2018-10-30 16:33:26 -07:00
Anders Hejlsberg
2ed627aaf1
Update tests
2018-10-30 16:33:14 -07:00
Anders Hejlsberg
3c36339955
Accept new baselines
2018-10-30 16:00:14 -07:00
Anders Hejlsberg
9d5e8fe89f
Continue to error on rest from generic source type
2018-10-30 16:00:05 -07:00
Sheetal Nandi
60801a261c
Report error requiring references to have composite only if the program is not container only
2018-10-30 15:22:00 -07:00
Wesley Wigham
65ba8d9fce
Accept baseline with correct additional span location ( #28238 )
2018-10-30 14:55:52 -07:00
Wesley Wigham
e2436f331a
Use constraint for default default value if possible ( #28222 )
2018-10-30 14:55:30 -07:00
Wesley Wigham
4cfff8962c
Fix declaration emit for cross-file enums ( #28237 )
2018-10-30 14:55:01 -07:00
Klaus Meinhardt
1397fed2ad
Only suggest adding to types if present in compilerOptions
...
Fixes: https://github.com/Microsoft/TypeScript/pull/28211#issuecomment-434438407
2018-10-30 21:31:22 +01:00
Nathan Shively-Sanders
0481d44501
Bad callsite inferences fall back to body usage ( #28235 )
...
For parameters, the infer-from-usage codefix uses a substantially
different codepath that previously only looked at call site uses. When
this resulted in no inferences, or bad inferences, for a single
parameter, the codefix would just use any. Only if no usages of a
function were found would the codefix use the body-inference
code.
This commit makes parameter inference fall back to body-inference code
for individual parameters when there is no inference or inference to
any.
2018-10-30 13:25:24 -07:00
Andy
437bc41e99
For path completions, include extension as a kindModifier ( #28148 )
2018-10-30 11:56:34 -07:00
Klaus Meinhardt
33568795e0
Suggest adding to tsconfig after installing @types ( #28211 )
...
Ref: https://github.com/Microsoft/TypeScript/pull/28168#issuecomment-433554228
2018-10-30 11:33:05 -07:00
Andy
176627c818
Support augmenting module with export as namespace ( #27281 )
...
* Support augmenting module with `export as namespace`
* Warn on use of merged symbol containing 'export as namespace'
2018-10-30 11:16:26 -07:00
Sheetal Nandi
c9fadf1f46
Ignore wild card directory watchers with node_modules file or folder starting with .
2018-10-30 11:06:13 -07:00
Andy
acc34bd95d
Miscellaneous code cleanup relating to module resolution ( #28092 )
...
* Miscellaneous code cleanup relating to module resolution
* Revert if condition
2018-10-30 10:15:01 -07:00